{
  "openapi": "3.0.4",
  "info": {
    "title": "Cerebro.Api",
    "description": "Cerebro Capital's Central Api",
    "contact": {
      "name": "Cerebro Capital",
      "url": "https://www.cerebrocapital.com"
    },
    "version": "v1"
  },
  "paths": {
    "/api/Auth/Login": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Sign in with a username and password.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed in, a second factor is needed, or single sign-on is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LoginResponse"
                }
              }
            }
          },
          "401": {
            "description": "The credentials were not accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Auth/Verify": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Verify a user's second factor of authentication (Mfa) [Policies]",
        "description": "<h3>Policies</h3>\n<p>The following authorization policies apply to calls made to this endpoint.</p>\n<ul>\n* Accessible Without Mfa\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifySecondFactorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifySecondFactorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifySecondFactorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification was successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LoginResponse"
                }
              }
            }
          },
          "400": {
            "description": "Verification was unsuccessful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [
              "Accessible Without Mfa"
            ]
          }
        ]
      }
    },
    "/api/Auth/MfaBypass": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Unlock a temporarily locked account by proving possession of the second factor.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MfaBypassRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MfaBypassRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MfaBypassRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/SendCodeOverSms": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Sends a Totp code to the user's Mfa Phone Number over SMS. (Mfa) [Policies]",
        "description": "<h3>Policies</h3>\n<p>The following authorization policies apply to calls made to this endpoint.</p>\n<ul>\n* Accessible Without Mfa\n</ul>\n",
        "responses": {
          "200": {
            "description": "SMS Sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.SendTotpCodeOverSmsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Something went wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.SendTotpCodeOverSmsResponse"
                }
              }
            }
          },
          "502": {
            "description": "The SMS could not be sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.SendTotpCodeOverSmsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [
              "Accessible Without Mfa"
            ]
          }
        ]
      }
    },
    "/api/Auth/Session": {
      "get": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "The signed-in user, their MFA/terms state and what to do next. [Policies]",
        "description": "<h3>Policies</h3>\n<p>The following authorization policies apply to calls made to this endpoint.</p>\n<ul>\n* Accessible Without Mfa\n</ul>\n",
        "parameters": [
          {
            "name": "returnUrl",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skipMfa",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.SessionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [
              "Accessible Without Mfa"
            ]
          }
        ]
      }
    },
    "/api/Auth/Logout": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Sign out: revoke the session and clear the cookies.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LogoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LogoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.LogoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/AcceptTerms": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Accept the supplemental terms of use.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AcceptTermsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AcceptTermsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AcceptTermsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Auth/ForgotPassword": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Request a password reset (or account set up) e-mail. The answer is the same for every well-formed email.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ForgotPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ForgotPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ForgotPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request was accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          },
          "400": {
            "description": "The email address is malformed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Auth/ResetPassword": {
      "get": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Validate a password reset link and say what the reset page needs.",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The link is valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.PasswordResetInfoResponse"
                }
              }
            }
          },
          "404": {
            "description": "The link is unknown, malformed or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Set a new password with the code of a reset link. Does not sign the user in.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The password was changed; sign in next.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
                }
              }
            }
          },
          "400": {
            "description": "The password or the terms were not accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.ResetPasswordErrorsResponse"
                }
              }
            }
          },
          "404": {
            "description": "The link is unknown, malformed, expired or already used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Auth/VerifyUser": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Verify the user of an e-mail verification link. A POST because it changes state: a link scanner that only opens the page verifies nothing.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifyUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifyUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifyUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The user is verified; resetCode is set when they never logged in.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.VerifyUserResponse"
                }
              }
            }
          },
          "404": {
            "description": "The code is unknown, missing, malformed or already used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MessageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Auth/Authenticate": {
      "post": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Authenticates an Api Consumer and returns a Json Web Token (JWT) for subsequent requests.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AuthenticateApiRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AuthenticateApiRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.AuthenticateApiRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authentication was successfull",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.TokenModel"
                }
              }
            }
          },
          "400": {
            "description": "Something went wrong"
          }
        }
      }
    },
    "/api/Auth/RefreshedToken": {
      "get": {
        "tags": [
          "Authentication / Authorization"
        ],
        "summary": "Refreshes the expiration of the Json Web Token (JWT) for the user making the request.",
        "responses": {
          "200": {
            "description": "Token was successfully refreshed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.TokenModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/FormHelper": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get the collection of helpers lists for a profile form. [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "Form List Helper Collections",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.ProfileFormHelperDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Bank Deal Profile [Roles]",
        "description": "Will get a bank deal profile and the child details of the profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/PostalCodes": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Bank Deal Profile Postal Codes [Roles]",
        "description": "Will get a bank deal profile postal codes defined for the profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Add Bank Deal Profile Postal Codes [Roles]",
        "description": "Will create a target postal code for a bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/PostalCodes/{postalCodeGuid}": {
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Bank Deal Profile Postal Codes [Roles]",
        "description": "Will update the details of an existing target postal code for a bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "postalCodeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Delete Bank Deal Profile Postal Code [Roles]",
        "description": "Will delete a target postal code from a bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "postalCodeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/Start": {
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Start Bank Deal Profile Update [Roles]",
        "description": "Will start the profile update process for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.StartProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.StartProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.StartProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/Flag": {
      "patch": {
        "tags": [
          "Bank Deal Profile"
        ],
        "summary": "Flag Bank Contact [Roles]",
        "description": "<p>Update the details for flagging a lender and updating the details associated to why they are being flagged.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.FlagBankContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.FlagBankContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.FlagBankContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/Exclude": {
      "patch": {
        "tags": [
          "Bank Deal Profile"
        ],
        "summary": "Toggle Exclude From Deals [Roles]",
        "description": "<p>Will toggle the exclude from deals setting for a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/Complete": {
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Complete Bank Deal Profile CHanges [Roles]",
        "description": "Will complete the process of making changes to the bank deal profile and notify Cerebro Capital for review.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/General": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get General Bank Deal Profile [Roles]",
        "description": "Will get the general criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update General Bank Deal Profile [Roles]",
        "description": "Will update a section of the general criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/Sba": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get SBA Bank Deal Profile [Roles]",
        "description": "Will get the SBA criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update SBA Bank Deal Profile [Roles]",
        "description": "Will update a section of the SBA criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/VentureDebt": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Venture Debt Bank Deal Profile [Roles]",
        "description": "Will get the venture debt criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Venture Debt Bank Deal Profile [Roles]",
        "description": "Will update a section of the venture debt criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/EquityInvestment": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Venture Debt Bank Deal Profile [Roles]",
        "description": "Will get the equity investment criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Venture Debt Bank Deal Profile [Roles]",
        "description": "Will update a section of the equity investment criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/SeniorCashFlow": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Senior Cash Flow Bank Deal Profile [Roles]",
        "description": "Will get the senior cash flow criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Senior Cash Flow Bank Deal Profile [Roles]",
        "description": "Will update a section of the senior cash flow criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/JuniorCashFlow": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Junior Cash Flow Bank Deal Profile [Roles]",
        "description": "Will get the junior cash flow criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Junior Cash Flow Bank Deal Profile [Roles]",
        "description": "Will update a section of the junior cash flow criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/AssetBased": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Asset-Based Bank Deal Profile [Roles]",
        "description": "Will get the asset-based criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Asset-Based Bank Deal Profile [Roles]",
        "description": "Will update a section of the asset-based criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/RealEstate/Senior": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Senior Real Estate Bank Deal Profile [Roles]",
        "description": "Will get the senior real estate criteria section for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorRealEstateProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/RealEstate/Junior": {
      "get": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Get Junior Real Estate Bank Deal Profile [Roles]",
        "description": "Will get the junior real estate criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.SeniorRealEstateProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/RealEstate": {
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Real Estate Bank Deal Profile [Roles]",
        "description": "Will update a section of the senior and junior criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankDealProfiles/{id}/RealEstate/{guid}": {
      "patch": {
        "tags": [
          "Bank Deal Profiles"
        ],
        "summary": "Update Real Estate Type Bank Deal Profile [Roles]",
        "description": "Will update a section of the senior or junior real estate type criteria for the bank deal profile.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateProfileFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateProfileFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.RealEstateProfileFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileRealEstateDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Banks/{id}/ActionsTaken": {
      "get": {
        "tags": [
          "Banks",
          "Lookups"
        ],
        "summary": "Get Bank Actions Taken [Roles]",
        "description": "<p>Gets a list of bank action taken notes.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.ActionTakenDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Banks/Partials": {
      "get": {
        "tags": [
          "Banks",
          "Lookups"
        ],
        "summary": "Get Bank Partials [Roles] [Controlled Objects]",
        "description": "<p>Gets a list of partial bank models.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>Employee</li>\n<li>Consultant</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "activeOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.PartialBank"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Banks/FinderFees/{id}": {
      "get": {
        "tags": [
          "Banks"
        ],
        "summary": "Get Finder Fee Agreements for a Lender [Roles]",
        "description": "Gets all finders fee agreements for a lender.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.FinderFeeAgreementDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Banks/{bankGuid}/BankContacts/{bankContactGuid}/BankDealProfile": {
      "get": {
        "tags": [
          "Bank Deal Profile",
          "Banks"
        ],
        "summary": "Get Bank Deal Profile [Roles]",
        "description": "<p>Gets bank deal profile for a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.BankDealProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Banks/{bankGuid}/BankOverviewSummary": {
      "post": {
        "tags": [
          "Banks"
        ],
        "summary": "Update Bank Overview Summary [Roles]",
        "description": "<p>Gets bank overview summary for a bank via OpenAPI and updates bank with changes.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Company [Roles]",
        "description": "<p>Gets a company by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Companies"
        ],
        "summary": "Update Company [Roles]",
        "description": "<p>Updates a company by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Ndas/{ndaGuid}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Gets single NDAs for a Company by Guid [Roles]",
        "description": "<p>Gets CompanyNdaDto record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Ndas/{ndaGuid}/Download": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Gets single company NDA's PDF file from S3. [Roles]",
        "description": "<p>Gets S3 File for a Company NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/Ndas/Blank": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Blank Company NDA. [Roles]",
        "description": "<p>Gets a blank version of the Company NDA File.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Ndas": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Gets all NDAs for a Company [Roles]",
        "description": "<p>Gets all CompanyNdaDto records for a given company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a new NDA for a Company [Roles]",
        "description": "<p>Creates a CompanyNda for a given company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Ndas/Active": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Gets the active NDA for a Company [Roles]",
        "description": "<p>Gets the active CompanyNdaDto for a given company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Ndas/Upload": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Uploads NDA for a Company [Roles]",
        "description": "<p>Employee user action to upload signed NDA for company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "CompanyGuid": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                },
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "CompanyGuid": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{companyGuid}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Company Contacts for Company [Roles]",
        "description": "<p>Gets all company contacts by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/DataRoom/{dataRoomGuid}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Company Contacts for Data Room [Roles]",
        "description": "<p>Gets all company contacts for a data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.BorrowerParticipantsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/DataRoom/{dataRoomGuid}/Contact": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Get Company Contact for Data Room [Roles]",
        "description": "<p>Gets a single company contact for a data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{companyGuid}/AddContactAndDataRoomAccess/{dataRoomGuid}": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Add Company Contact to Data Room [Roles]",
        "description": "<p>Adds a company contact to company and data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactAndDataRoomDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactAndDataRoomDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactAndDataRoomDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{companyGuid}/AddExistingDataRoomAccess": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Add Existing Company to Data Room [Roles]",
        "description": "<p>Adds an existing company contact to a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactDataRoomDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactDataRoomDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyContactDataRoomDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{companyGuid}/UpdateExistingDataRoomAccess/{contactGuid}": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Update Company Contact Access to Data Room [Roles]",
        "description": "<p>Updates access permissions for company contact to a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyContactDataRoomDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyContactDataRoomDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyContactDataRoomDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{companyGuid}/GetPasswordResetLink/{contactGuid}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Gets a new password reset url [Roles]",
        "description": "<p>Gets a new password reset url or an existing on if not expired.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CompanyContacts/{dealGuid}/UpdateLastAccessed/{personId}": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Update Company Contact Last Accessed [Roles]",
        "description": "<p>Updates company contacts last access date.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{guid}/Subscriptions": {
      "get": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Get Company Subscriptions [Roles]",
        "description": "Gets all company subscriptions for a specific company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Contract/Generate": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Company Subscription Contract PDF [Roles] [Scopes]",
        "description": "Generates a company subscription contract pdf document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>GenerateSubscriptionContractPdfs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}": {
      "get": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Get Company Subscription By Guid [Roles]",
        "description": "Gets a specific company subscription for a company by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Update Company Subscription [Roles]",
        "description": "Updates a specific company subscription identified by company and subscription Guids.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Delete Company Subscription [Roles]",
        "description": "Will delete a company subscription and any product subscriptions and invoices for subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Agreement": {
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Upload Company Subscription Agreement [Roles]",
        "description": "Will upload the company subscription agreement and update the record.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "SignedOn": {
                    "type": "string",
                    "format": "date"
                  },
                  "SignedBy": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "SignedOn": {
                  "style": "form"
                },
                "SignedBy": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Download": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Download Product Subscription File [Roles]",
        "description": "Will return the company subscription agreement document for download<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/SuccessFeeTiers": {
      "get": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Get Company Subscription Success Fee Tiers [Roles]",
        "description": "Returns all company subscription success fee tier for a company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessFeeTierDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Create Company Subscription Success Fee Tier [Roles]",
        "description": "Will create a company subscription success fee tier.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/SuccessFeeTiers/{tierGuid}": {
      "patch": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Update Company Subscription Success Fee Tier [Roles]",
        "description": "Will update a company subscription success fee tier.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Delete Company Subscription Success Fee Tier [Roles]",
        "description": "Will delete a company subscription success fee tier.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/PaymentTerms": {
      "get": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Get Company Subscription Payment Terms [Roles]",
        "description": "Returns all company subscription payment terms for a company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Create Company Subscription PaymentTerm [Roles]",
        "description": "Will create a company subscription payment term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/PaymentTerms/{paymentTermGuid}": {
      "patch": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Update Company Subscription Payment Term [Roles]",
        "description": "Will update a company subscription payment term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentTermGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Delete Company Subscription Payment Term [Roles]",
        "description": "Will delete a company subscription payment term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentTermGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/CreateInvoice": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Create Subscription Invoice [Roles]",
        "description": "Will delete the deal subscription and any child records as long as there are no invoice payments.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Contract/SendForSigning": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals",
          "Document E-Sign"
        ],
        "summary": "Send Contract For E-Sign [Roles]",
        "description": "Sends Contract For E-Signing<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Cancel": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Cancel Company Subscription Contract [Roles]",
        "description": "Cancels pending E-Sign document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Agreement/{agreementId}/Reminders": {
      "patch": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Update Company Subscription Contract Reminder [Roles]",
        "description": "Updates (active) E-Sign document reminder frequency.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Contract/{agreementId}/Status": {
      "get": {
        "tags": [
          "Company Subscriptions",
          "Deals",
          "Document E-Sign"
        ],
        "summary": "Agreement Status [Roles]",
        "description": "Check current status of an agreement out for signing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/UploadContract": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Upload Company Subscription Contract [Roles]",
        "description": "Uploads a modified company subscription contract.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Hubspot/{hubspotGuid}": {
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Sync Company Subscription with Hubspot [Roles] [Scopes]",
        "description": "Takes a hubspot company subscription object and calls the hubspot helper to sync the hubspot details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>SyncWithHubspot</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Portfolio Companies [Roles] [Scopes]",
        "description": "<p>Gets a list of related companies by the parent company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/Events": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Company Events [Roles] [Scopes]",
        "description": "<p>Gets a list of company events for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/EventOccurrences": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Company Event Occurrences [Roles] [Scopes]",
        "description": "<p>Gets a list of company events occurrences for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventOccurrenceDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/Documents": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Company Documents [Roles] [Scopes]",
        "description": "<p>Gets a list of company documents for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyDocumentDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LineItemTypes": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Line Item Types [Roles] [Scopes]",
        "description": "<p>Gets a list of company line item types for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLineItemTypeDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreements": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreements [Roles] [Scopes]",
        "description": "<p>Gets a list of company line item types for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{companyGuid}/LoanAgreements/Reports/LoanDetail": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Detailed Report of a Company's Loans [Roles] [Scopes]",
        "description": "<p>Gets a row of details for each loan agreement for a company, including loan agreements for any childen companies.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An object containing the report details, and extracts (if applicable)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.LoanReport"
                }
              }
            }
          },
          "401": {
            "description": "You are not authorizied to access this endpoint or the specified company's data",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "A company could not be found for the given guid.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{companyGuid}/LoanAgreements/Reports/HedgeDetail": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Detailed Report of a Company's Loans [Roles] [Scopes]",
        "description": "<p>Gets a row of details for each loan agreement for a company, including loan agreements for any childen companies.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An object containing the report details, and extracts (if applicable)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.HedgeReportDetail"
                  }
                }
              }
            }
          },
          "401": {
            "description": "You are not authorizied to access this endpoint or the specified company's data",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "A company could not be found for the given guid.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreements/{loanAgreementGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Single Loan Agreement [Roles] [Scopes]",
        "description": "<p>Gets a single loan agreement by identifier that has child records associated to it.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "loanAgreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceSingleLoanAgreementDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementProviders": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Providers [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement providers for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementProviderDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementAdditionalBorrowers": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Additional Borrowers [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement additional borrowers for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementAdditionalBorrowerDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementGuarantors": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Guarantors [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement guarantors for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementGuarantorDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementHolders": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Holders [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement holders for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementHolderDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementInvestorGuarantors": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Investor Guarantors [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement investor guarantors for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementInvestorGuarantorDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/LoanAgreementAmendments": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Loan Agreement Amendments [Roles] [Scopes]",
        "description": "<p>Gets a list of loan agreement amendments for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceAmendmentDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CreditFacilities": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Credit Facilities [Roles] [Scopes]",
        "description": "<p>Gets a list of credit facilities for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CreditFacilities/{facilityGuid}/CreditFacilityHedges/{hedgeGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Hedge [Roles] [Scopes]",
        "description": "<p>Allows updates to all properties for a give Credit Facility Hedge.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hedgeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityUpdateHedgeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityUpdateHedgeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityUpdateHedgeDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityUpdateHedgeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CreditFacilities/{facilityGuid}/CreditFacilityHedges": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Create Credit Facility Hedge [Roles] [Scopes]",
        "description": "<p>Creates a new Credit Facility Hedge for the given Credit Facility. The response includes the Guid of the new hedge, which can be used to update it later.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityCreateHedgeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityCreateHedgeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityCreateHedgeDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityCreatedHedgeDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CreditFacilities/{facilityGuid}/OutstandingBalanceHistory": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Credit Facility Outstanding Balance History [Roles] [Scopes]",
        "description": "<p>Gets a history of the changing outstanding balance of a credit facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityFinancialStatementOutstandingBalanceHistoryDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CreditFacilityExtensionOptions": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Credit Facility Extension Options [Roles] [Scopes]",
        "description": "<p>Gets a list of credit facility extension options for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityExtensionOptionDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/FinancialCovenants": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Financial Covenants [Roles] [Scopes]",
        "description": "<p>Gets a list of financial covenants for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceFinancialCovenantDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/CovenantTargets": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Covenant Targets [Roles] [Scopes]",
        "description": "<p>Gets a list of covenant targets for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCovenantTargetDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/NonFinancialCovenants": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Non-Financial Covenants [Roles] [Scopes]",
        "description": "<p>Gets a list of non-financial covenants for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.PagingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Customers/Compliance/Companies/{guid}/NonFinancialCovenantResults": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Non-Financial Covenant Results [Roles] [Scopes]",
        "description": "<p>Gets a list of non-financial covenant results for the provided company identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>Compliance</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CovenantFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantResultDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Invoices": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Invoices [Roles]",
        "description": "Gets the approved invoices of the company for the billing page, newest first. isUnpaid (status is not Paid) and isPaid (balance due is zero) are the legacy split and are independent flags.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingInvoiceDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/PaymentMethod": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Payment Method [Roles]",
        "description": "Gets the payment method of the company from Stripe with what the payment method form needs (customer, client secret, failed payment, whether invoices have a balance). Same payload as the credit explorer payment method page.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Billing Payment Method [Roles]",
        "description": "Replaces the payment method of the company. The body only carries the new Stripe payment method id; the Stripe customer, the organization and the method to delete are derived from the company. Same answer as the credit explorer payment method update.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPaymentMethodDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPaymentMethodDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPaymentMethodDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Invoices/{invoiceGuid}/Pay": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Pay Company Billing Invoice [Roles]",
        "description": "Pays an approved invoice of the company with the payment method on file. The amount charged is always the balance due; a posted amount that differs is a 400. 409 when a payment of the invoice is already being processed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPayInvoiceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPayInvoiceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingPayInvoiceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Invoices/{invoiceGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Company Billing Invoice [Roles]",
        "description": "Downloads the PDF of an approved invoice of the company. Read only.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Subscriptions [Roles] [Controlled Objects]",
        "description": "Gets the compliance navigator subscriptions of the company (read only): active first, then newest agreement first, each with its loan agreement slots and approved invoices. Subscriptions of related companies are not included.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSubscriptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Start Company Billing Subscription [Roles] [Controlled Objects]",
        "description": "Starts a Compliance Navigator subscription of the company (employees only): the chosen product gives the prices and term, the slots, the schedule PDF and the subscription invoice are created. 201.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/Agreement": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Company Billing Subscription Agreement [Roles] [Controlled Objects]",
        "description": "Returns a 5 minute presigned download URL of the signed agreement of a navigator subscription of the company. 404 when the subscription is not one of the company, 400 when it has no agreement file or the file is missing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/LoanAgreements/{slotGuid}/Options": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Subscription Slot Options [Roles] [Controlled Objects]",
        "description": "The loan agreements a slot of a navigator subscription may be assigned to (active loans of the company and its related companies that no other slot of the subscription holds) plus the implementation price. 409 when the subscription is not active.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "slotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotOptionsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/LoanAgreements/{slotGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Billing Subscription Slot [Roles] [Controlled Objects]",
        "description": "Assigns or unassigns the loan agreement of a slot of a navigator subscription and optionally buys the implementation of the slot. Buying creates the approved setup fee invoice (PDF and e-mail to the billing contacts) exactly once, in one transaction with the flag; it can not be undone. 400 invalid loan / no loan to buy for / bad body, 409 loan already on another slot, subscription not active or implementation already purchased.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "slotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdatedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Company Billing Subscription Slot [Roles] [Controlled Objects]",
        "description": "Removes a loan agreement slot of a navigator subscription (the legacy remove): only slots that are not original, only on an active subscription of the company; no refund and no invoice. 409 for an original slot or an inactive subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "slotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/ReadyForApproval": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Mark Compliance Report Ready For Approval [Roles] [Controlled Objects]",
        "description": "Marks a compliance report ready for approval, which enables the approval. Idempotent: a report that already is ready answers 200 and writes nothing. A 409 when the report is approved (it is locked) or a financial covenant of the loan is being calculated. Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportReadyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Approve": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Approve Compliance Report [Roles] [Controlled Objects]",
        "description": "Approves a compliance report with the typed full name of the signer (required, at most 128 characters) and the consent to sign digitally (must be true; a 400 on approverName and consent). The report must be marked ready, not approved and not being generated (409 otherwise). The approval is saved first and then the generation that prints the signature is queued: when the queue fails the approval stays and the answer says queue \"failed\" (use Generate to retry). The job title of the signature is the one of the approving user. Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ApproveCertificateReportDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ApproveCertificateReportDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ApproveCertificateReportDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportApprovedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Generate": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Generate Compliance Report [Roles] [Controlled Objects]",
        "description": "Queues the generation of the compliance report PDF (or the regeneration, which overwrites the previous file). Answers 202 with the generation status (queue \"queued\"); the page then polls Status. A 409 for an uploaded report, an approved report (except the retry of one whose generation failed or never produced a file), a report whose template was deleted, a generation that is already running and a covenant target that is pending calculation; a 502 when the queue call fails (the previous status is restored). Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Status": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Status [Roles] [Controlled Objects]",
        "description": "Gets the generation status of a compliance report, polled every 3 seconds by the page while a generation runs: the progress (read from the column the worker updates at every step) with its text, whether a file exists, the last generated and modified instants, whether a financial covenant is being calculated and whether a target is pending calculation. Read only and light. Open to every authorized contact (third party included) and to employees once the covenants are approved (403 for everyone but employees before that).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportStatusDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Logo": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Set Compliance Report Logo [Roles] [Controlled Objects]",
        "description": "Sets whether the logo of the company is included at the top of the compliance report (a report based on a text template). An unchanged value writes nothing and queues nothing; a change is saved and the report is queued for generation (the answer says queued or failed: a queue failure never undoes the change). Needs an employee or a contact with covenant entry or approval, approved covenants (403 for everyone but employees), a report that is not approved or based on a deleted template (409) and not a PDF template (409).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetCertificateReportLogoDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetCertificateReportLogoDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetCertificateReportLogoDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Text": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Text [Roles] [Controlled Objects]",
        "description": "Gets the report text of a compliance report: for a standard report the stored plain text (the textarea) and for a report that uses the report template text the contents page as segments of plain text, page breaks and editable sections (the whole stored text only for employees). #reportDate is replaced by the date of the period end. Plain text only: the app shows it as text, never as HTML. Needs an employee or a contact with covenant entry or approval and approved covenants (403); 409 for a PDF template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportTextContentDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Compliance Report Text [Roles] [Controlled Objects]",
        "description": "Saves the whole text of a compliance report and queues a generation. THE TEXT IS PLAIN TEXT: a contact may not type markup (a < followed by a letter, /, ! or ?; 400 on text), an employee may use what the Loans templates allow (no script, iframe, object, embed or javascript:); line ends are normalized to CRLF and at most 100,000 characters are stored. A contact on a report that uses the report template text gets a 403 (it edits the sections); an employee may edit the raw text (E1). 409 for an approved report, a deleted template or a PDF template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportTextDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportTextDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportTextDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/TextSections/{number}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Section [Roles] [Controlled Objects]",
        "description": "Gets the content of one optional section of a report that uses the report template text (the text between its markers). 404 for a section that is not in the text, 409 for a PDF template or a report that does not use the template text. Needs an employee or a contact with covenant entry or approval and approved covenants (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportSectionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Compliance Report Section [Roles] [Controlled Objects]",
        "description": "Replaces the content of one optional section of a report that uses the report template text (plain text, the markup rules of the report text, the whole text at most 100,000 characters). Nothing is queued: use Generate to refresh the report. 404 for a section that is not in the text; 409 for an approved report, a deleted template, a PDF template or a report that does not use the template text.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportSectionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportSectionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportSectionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Clear Compliance Report Section [Roles] [Controlled Objects]",
        "description": "Clears one optional section of a report that uses the report template text (the content between its markers becomes empty, so the section does not appear in the generated report). Nothing is queued. Same gates as the section save.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Attachments": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Compliance Report Attachment [Roles] [Controlled Objects]",
        "description": "Adds a PDF attachment to a compliance report (multipart: file, title, pageHeader, reportTag, order). The file must be a PDF of at most 50 MB; the title is required (250), the page header optional (250), the reportTag blank (end of the report) or one of the #file_ tags of the report text, the order a whole number 1-9999. A PDF that is protected with a password or other encryption is stored and flagged (isProtected) but never merged and no generation is queued (queue: skippedProtected); otherwise a generation is queued. 409 for an approved report or a deleted template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "description": "The PDF to merge into the report.",
                    "format": "binary"
                  },
                  "Title": {
                    "type": "string"
                  },
                  "PageHeader": {
                    "type": "string"
                  },
                  "ReportTag": {
                    "type": "string",
                    "description": "One of the \"#file_...\" tags of the report text, or empty for the end of the report."
                  },
                  "Order": {
                    "type": "string",
                    "description": "The position number, a whole number 1-9999."
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                },
                "Title": {
                  "style": "form"
                },
                "PageHeader": {
                  "style": "form"
                },
                "ReportTag": {
                  "style": "form"
                },
                "Order": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateAttachmentSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Attachments/{attachmentGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Compliance Report Attachment [Roles] [Controlled Objects]",
        "description": "Edits the title, page header, position tag and order of an attachment (a full replace of the four values; the covenant details placeholder keeps its title and tag). The page header is kept and editable. An edit that changes nothing writes nothing; nothing is queued (use Generate). 404 for an attachment of another report; 409 for an approved report or a deleted template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachmentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateCertificateAttachmentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateCertificateAttachmentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateCertificateAttachmentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportAttachmentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Compliance Report Attachment [Roles] [Controlled Objects]",
        "description": "Deletes an attachment of a compliance report: the stored file first (not for the covenant details placeholder), then the row; a storage failure keeps the row and is a 500. Nothing is queued. 404 for an attachment of another report; 409 for an approved report or a deleted template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachmentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Attachments/{attachmentGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Attachment File [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (5 minutes) presigned download URL of an attachment, named after its title. A 404 when the attachment is the covenant details placeholder or the file is gone from the bucket (the row is never deleted). Open to every authorized contact (third party included) and to employees once the covenants are approved (403 for everyone but employees before that).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachmentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Fields/{fieldGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Field [Roles] [Controlled Objects]",
        "description": "Gets one custom field of a compliance report: the description, prompt, value and the context as safe HTML (the strict allow list, images of the company folder re-signed; null when empty). The field name (the PDF form field name) is returned to employees only. 404 for a field of another report. Needs an employee or a contact with covenant entry or approval and approved covenants (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fieldGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportFieldDetailDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Compliance Report Field Value [Roles] [Controlled Objects]",
        "description": "Saves the value of one custom field of a compliance report (at most 10,000 characters; empty is stored as an empty text) and queues a generation. 404 for a field of another report; 409 for an approved report or a deleted template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fieldGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportFieldValueDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportFieldValueDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCertificateReportFieldValueDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/ReferenceDocuments": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Compliance Report Reference Document [Roles] [Controlled Objects]",
        "description": "Adds a reference document to a compliance report (multipart: file and a required title of at most 150 characters). Reference documents are kept for review and are never merged into the generated report. The file is one of doc, docx, pdf, xls, xlsx, csv, ppt, pptx, mp4, m4a, 7z, zip, rar, zipx, wmv or avi, at most 50 MB. Nothing is queued. 409 for an approved report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  },
                  "Title": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                },
                "Title": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportReferenceDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/ReferenceDocuments/{referenceGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Reference Document File [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (5 minutes) presigned download URL of a reference document, named after its title. A 404 when the file is gone from the bucket (the row is never deleted). Open to every authorized contact (third party included) and to employees once the covenants are approved (403 for everyone but employees before that).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/ReferenceDocuments/{referenceGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Compliance Report Reference Document [Roles] [Controlled Objects]",
        "description": "Deletes a reference document of a compliance report: the stored file first, then the row; a storage failure keeps the row and is a 500. Allowed after the report is approved and for a deleted template. 404 for a reference document of another report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Compliance Report [Roles] [Controlled Objects]",
        "description": "Deletes a compliance report (approved and uploaded ones too) with its custom field values, attachments, reference documents, messages and e-mail records; the report file, the attachment files and the reference document files are deleted from storage (the files of the messages are kept). The database delete is one transaction and runs first; the storage delete is best effort afterwards (a failure is logged, the answer stays 204). Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees). A running generation does not block the delete. 500 with the legacy text when the database delete failed (nothing is deleted).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report [Roles] [Controlled Objects]",
        "description": "Gets the editor shell of a compliance report: the template, the period, the approval state, the generation status, the text information, the attachments, the reference documents, the custom field values (the field names for employees only), the loan summary, what the user may do and the limits. Read only. Needs an employee or a contact with covenant entry or approval (403, third party contacts never; a viewer opens the report file instead) and approved covenants (403 for everyone but employees). A report of another agreement or company is a 404.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportEditorDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Start Compliance Report [Roles] [Controlled Objects]",
        "description": "Starts a compliance report (the compliance certificate) for a report template, year and period of the loan agreement. The year and period must be ones the Compliance Reports tab offers and the template one of the agreement's templates (a 400 on its field otherwise). An existing report of that template and period that is not an uploaded one is reused (200, created: false, nothing is written); an uploaded one is a 409 with the legacy text. A new report copies the template custom fields and, when a covenant is flagged for the details pages, adds the covenant details placeholder attachment; nothing is queued for generation. Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StartCertificateReportDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StartCertificateReportDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StartCertificateReportDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportStartedDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportStartedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportConflictDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report File [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (5 minutes) presigned download URL of the file of a compliance report, named \"{agreement} Compliance Report {period}\" with the extension of the stored file. A 404 when the report has not been generated yet (or is being regenerated) or the file is gone from the bucket. Open to every authorized contact (third party included) and to employees once the covenants are approved (403 for everyone but employees before that).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Emails/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Email Form [Roles] [Controlled Objects]",
        "description": "Gets the e-mail drawer of a compliance report, prefilled for the mode (recipients: the sender, with the agreement recipients in blind copy; lenders: the active lender contacts of the agreement; general or no mode: nobody): the sender (an employee sends from the user name, everybody else from the compliance address with the user as the reply-to), the lists, the subject (Regarding {report} Compliance Report - {agreement}), the legacy body, the company documents that can be attached, the limits and the report file (name, size and tooLarge when it is above the 7 MB attachment total; absent when the report has no file). A mode that cannot be prefilled (or sme, or anything unknown) is a 400 on mode. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportEmailFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Emails": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Compliance Report Email [Roles] [Controlled Objects]",
        "description": "Sends an e-mail about a compliance report (multipart form: to, cc, bcc (repeated; each value may hold several addresses separated by semicolons or commas), subject, body, companyDocumentGuids (repeated), files (repeated) and includeReport (default true: attach the report file)). The addresses are normalized (lower case, no duplicates), the body is HTML and sanitized, at most 50 addresses, 10 attachments (documents and archives only) and 7 MB in total including the report file. includeReport with a report that has no file or whose file is too large is a 400 on includeReport. A failed send is a 502 and records nothing; a sent e-mail is recorded with the sender and linked to the report (the record guid is absent when only the record could not be saved). Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "IncludeReport": {
                    "type": "boolean"
                  },
                  "To": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Bcc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Subject": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string",
                    "description": "HTML; sanitized on the server."
                  },
                  "CompanyDocumentGuids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "IncludeReport": {
                  "style": "form"
                },
                "To": {
                  "style": "form"
                },
                "Cc": {
                  "style": "form"
                },
                "Bcc": {
                  "style": "form"
                },
                "Subject": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "CompanyDocumentGuids": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/EmailRecords": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Compliance Report Email Records [Roles] [Controlled Objects]",
        "description": "Lists the e-mails sent about a compliance report, newest first, at most 200 with the total count: sent on (UTC), sent by (absent for a legacy record), subject, the recipients as stored and how many financial covenants, non-financial covenants and compliance reports each e-mail is linked to. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportEmailRecordsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/EmailRecords/{emailRecordGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Read Compliance Report Email Record [Roles] [Controlled Objects]",
        "description": "Gets one e-mail sent about a compliance report: sent on, sent by, subject, to, cc, bcc, the body (sanitized HTML) and the names of the covenants the e-mail is linked to. A record of another report is a 404. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailRecordGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a compliance report: the people that can be written to (contacts of the company and its parent, the active lender contacts of THIS loan agreement, the account managers) and the limits. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Compliance Report Message [Roles] [Controlled Objects]",
        "description": "Sends a message about a compliance report to one or more of the allowed people (a conversation with one message). Visibility Public: everybody who may see the report messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent, the recipients see it in their message center and unread digest. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Compliance Report Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a compliance report the user may see (public ones and the ones the user takes part in; not the messages about the loan agreement or its covenants), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Report Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about a compliance report (messages made in the legacy message center). Open to every authorized contact once the covenants are approved (employees always).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReports/{reportGuid}/Upload": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Compliance Report File [Roles] [Controlled Objects]",
        "description": "Uploads a finished (signed) compliance report in place of a generated one (multipart, field \"file\"; the 12 types of the legacy form: doc, docx, pdf, xls, xlsx, csv, ppt, pptx, 7z, zip, rar, zipx; at most 50 MB; the content must match the type, a 400 on file otherwise). The report must be marked ready, not approved or uploaded and not being generated (409 otherwise). Uploading approves the report with the name of the user and replaces the generated file (which is deleted); nothing is queued. Needs an employee or a contact with covenant entry or approval (403, third party contacts never) and approved covenants (403 for everyone but employees).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportUploadedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/ReferenceText": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Read Covenant Reference Text [Roles] [Controlled Objects]",
        "description": "Gets the document reference text of a financial or non-financial covenant (type financial or nonfinancial; a support calculation is a financial covenant) as sanitized HTML. Images are re-signed for 60 minutes and only kept when they are in the folder of this company. No text is a 200 with no html. A non employee leaves a View Reference Text stat. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantReferenceTextDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Covenant Loan Document Text [Roles] [Controlled Objects]",
        "description": "Saves the loan document text of a covenant (HTML). It is sanitized (images are kept only when they are in the folder of this company), loses its leading line breaks and may be at most 100000 characters (400 on html). Text without content (no text, link or image) removes the loan document text. The covenant modified date and version are not changed and nothing is logged in the audit history; the last write wins. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCovenantTextDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCovenantTextDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCovenantTextDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantTextSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/AuditHistory": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Covenant Audit History [Roles] [Controlled Objects]",
        "description": "Lists the audit history of a covenant, newest first, at most 500 rows with the total count: date (UTC), action, old and new value (typed as text or date, always with the stored text) and changed by (the system when empty). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantAuditHistoryDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a covenant: the people that can be written to (contacts of the company and its parent, the active lender contacts of the agreement, the account managers) and the limits. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Covenant Message [Roles] [Controlled Objects]",
        "description": "Sends a message about a covenant to one or more of the allowed people (a conversation with one message). Visibility Public: everybody who may see the covenant messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent, the recipients see it in their message center and unread digest. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Covenant Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a covenant the user may see (public ones and the ones the user takes part in), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about a covenant (messages made in the legacy message center). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Emails/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Email Form [Roles] [Controlled Objects]",
        "description": "Gets the e-mail drawer of a covenant, prefilled for the mode (sme: the SMEs of the covenant; recipients: the SMEs, or the sender when there is none, with the agreement recipients in blind copy; lenders: the active lender contacts; general: nobody): the sender (an employee sends from the user name, everybody else from the compliance address with the user as the reply-to), the lists, the subject (the agreement name), the body, the company documents that can be attached and the limits. A mode that cannot be prefilled is a 400 on mode. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Emails": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Covenant Email [Roles] [Controlled Objects]",
        "description": "Sends an e-mail about a covenant (multipart form: to, cc, bcc (repeated; each value may hold several addresses separated by semicolons or commas), subject, body, companyDocumentGuids (repeated) and files (repeated)). The addresses are normalized (lower case, no duplicates), the body is HTML and sanitized, at most 50 addresses, 10 attachments (documents and archives only) and 7 MB in total. A failed send is a 502 and records nothing; a sent e-mail is recorded with the sender (the record guid is absent when only the record could not be saved). Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "To": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Bcc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Subject": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string",
                    "description": "HTML; sanitized on the server."
                  },
                  "CompanyDocumentGuids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "To": {
                  "style": "form"
                },
                "Cc": {
                  "style": "form"
                },
                "Bcc": {
                  "style": "form"
                },
                "Subject": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "CompanyDocumentGuids": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/EmailRecords": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Covenant Email Records [Roles] [Controlled Objects]",
        "description": "Lists the e-mails sent about a covenant, newest first, at most 200 with the total count: sent on (UTC), sent by (absent for a legacy record), subject, the recipients as stored and how many covenants each e-mail is linked to. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/EmailRecords/{emailRecordGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Read Covenant Email Record [Roles] [Controlled Objects]",
        "description": "Gets one e-mail sent about a covenant: sent on, sent by, subject, to, cc, bcc, the body (sanitized HTML) and the names of the covenants the e-mail is linked to. A record of another covenant is a 404. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailRecordGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/AssignSme/{scope}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Assign SME Form [Roles] [Controlled Objects]",
        "description": "Gets the Assign SME drawer of the financial covenants (scope financial), the support calculations (scope support) or the non-financial covenants (scope nonfinancial) of an agreement: the contacts that can be assigned (the active, non third party contacts of the company, or of its parent when it has one), the covenants a save affects with their current SMEs, and the three actions. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/AssignSme/{scope}": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Assign Covenant SMEs [Roles] [Controlled Objects]",
        "description": "Assigns, replaces or removes the SMEs of every covenant of the scope (financial, support or nonfinancial): add (the selected contacts join the SMEs of each covenant), replace (each covenant gets exactly the selected contacts, also the ones that had none) or removeAll (every SME is deactivated). The contacts must be the ones of the form (400 otherwise); a covenant whose SMEs do not change gets no audit row. An approved agreement is a 409. No e-mail or notification is sent. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Approve": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Approve Loan Covenants [Roles] [Controlled Objects]",
        "description": "Approves the loan covenants as the next approver of the chain: raises the approval level, or, for the final approver, approves the covenants. 403 when it is not the turn of the user, 409 when already approved or the company has no approvers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantApprovalResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Reset": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Reset Loan Covenants [Roles] [Controlled Objects]",
        "description": "Resets the approval of the loan covenants (the legacy Reset Loan Covenants) so they can be edited again: approved back to false, level 0, approval date and approver cleared. Final approver or employee only. 403 for anybody else, 409 when the covenants are not approved.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantApprovalResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/CovenantCalendar": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Calendar [Roles] [Controlled Objects]",
        "description": "Gets the Covenant Calendar of the company: the financial covenant targets (not support calculations) and the non-financial covenant results of the company and of the related companies the user may see whose due date is between from and to (yyyy-MM-dd, both inclusive, at most 100 days), with the legacy title and description of every item, filtered by company, SME (an active assignment), and frequency. Items without a stored due date are not listed. Needs a company that manages debt or financials (403 otherwise); more than 5000 items is a 400.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalendarPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Covenant Add Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of a financial or non-financial covenant (type financial or nonfinancial; a support calculation is a financial covenant): the defaults (no frequency, format or target chosen, Event of Default, Borrower, 15 empty operators and 14 empty values, the agreement dates prefilled), the choices, the limits. tracking=true presets the supporting calculation switch. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tracking",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Covenant Edit Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of a financial or non-financial covenant: the stored values (a legacy covenant with fewer items or junk operators is padded and normalized to 15 operators and 14 values), the choices (the SME contacts include the ones that hold an active assignment), the limits, the version to echo back on the PATCH and the target counts (total, calculated, approved, with their own formula). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Financial Covenant [Roles] [Controlled Objects]",
        "description": "Adds a financial covenant (or a support calculation, isTrackingCovenant) to the agreement. Nothing is created when anything is invalid (400 with every error at once); every line item, custom value, guarantor and SME contact must belong to the company and agreement. The covenant, its 14 value items, its SMEs, its optional loan document text and its Created audit row are saved together; then the targets of every active period are created and sent for calculation (covenantPeriods; a failed period step leaves the covenant saved and says so). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Financial Covenant [Roles] [Controlled Objects]",
        "description": "Edits a financial covenant: the values, the formula (the 14 value items are replaced) and the SMEs. The version of the form must be echoed (409 with the current version when someone else changed the covenant); a changed test frequency deletes and recreates every target, so it needs confirmTargetReset when calculated or approved targets exist (409 with the counts). An edit with no difference writes nothing (changed false). Only what feeds a number is recalculated (the formula, the value format, or the default target with updateExistingPeriods); the response says what happened to the periods (covenantPeriods). A loan document text in the body is a 400 (use Edit Loan Document Text). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Financial Covenant [Roles] [Controlled Objects]",
        "description": "Deletes a financial or non-financial covenant and everything below it in one transaction: its targets with their results and approvals, conversations and messages, SME assignments, loan document text, e-mail record links (the e-mails stay), custom report columns and audit history. No audit row or stat is left (a log line records the delete). An approved agreement is a 409; a failed delete changes nothing (500). Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/Check": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Check Financial Covenant Formula [Roles] [Controlled Objects]",
        "description": "Checks a covenant form without saving it: the same validation as a save (every field, the same keys and messages as a 400) and the text of the posted formula as the page shows it (with the posted frequency). Always a 200 with the errors inside, plus warnings that do not make it invalid (a formula without a line item or custom value cannot be calculated). covenantGuid is the covenant being edited (404 when unknown). An approved agreement is a 409. Writes nothing. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantCheckDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/DeleteImpact": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Covenant Delete Impact [Roles] [Controlled Objects]",
        "description": "Gets what deleting a financial or non-financial covenant takes with it, for the confirmation dialog: the targets (total, calculated, approved, with their own formula), the conversations about the covenant or its targets, the e-mail record links (the e-mails stay), the custom report columns, the audit history and the active SMEs. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantDeleteImpactDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/ReferenceText/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Loan Document Text Form [Roles] [Controlled Objects]",
        "description": "Gets the Edit Loan Document Text form of a covenant: the covenant name and the stored text as sanitized HTML with the images of the company folder re-signed for 60 minutes (no text is a 200 with no html and hasText false). Unlike the read route of the View drawer it writes no stat. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantTextFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/ReferenceTextImages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Reference Text Image [Roles] [Controlled Objects]",
        "description": "Uploads an image for a reference text editor (multipart form, one file field named file): a png, jpg, jpeg or gif of at most 5 MB whose content matches its extension (400 on file). It is stored in the folder of the company under a new name and logged; the answer is the file name and a presigned URL valid for 60 minutes that the editor inserts. The image is not tied to a covenant. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "description": "The image (multipart field `file`: png, jpg, jpeg or gif, at most 5 MB).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReferenceTextImageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantPeriods/Reset": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Reset Loan Covenant Periods [Roles] [Controlled Objects]",
        "description": "Resets the covenant results and targets of a loan agreement: periods that are no longer covered by the agreement or covenant dates are deleted together with their answers, approvals and calculated values (the counts are returned), missing periods are created and the new targets, plus the agreement's pending or error targets, are sent for calculation. Employees with the Reset Covenants permission only. 409 while another reset or date change of the same agreement is running; 500 when the regeneration failed (nothing was changed).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Edit Shell [Roles] [Controlled Objects]",
        "description": "Gets what the Edit Credit Facility page needs before any section: the header (label, status, agreement, company, currency), the version of the facility row, the limits, the option lists and the navigation (which sections are built). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEditShellDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Summary": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Summary [Roles] [Controlled Objects]",
        "description": "Gets the Summary section of a credit facility: name, type, purpose, amounts, dates, sublimits, interest only, term, amortization, payment and the outstanding amount source. Carries the version a save must echo. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Summary [Roles] [Controlled Objects]",
        "description": "Saves the Summary section of a credit facility. The posted version must be the one the form was loaded with, otherwise 409 and nothing is written. Hidden values are cleared; the maximum facility amount is whole dollars (the column cannot hold cents). Audit rows for the changed amounts and dates, the covenant expiry dates follow a changed maturity, and the response says when the covenant periods were not recalculated. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummarySavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Economics": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Economics [Roles] [Controlled Objects]",
        "description": "Gets the Economics section of a credit facility: index rate, floor and cap, interest and PIK rate, fees, security deposit, hedge requirement, and the read only status of the dynamic pricing fields. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Economics [Roles] [Controlled Objects]",
        "description": "Saves the Economics section of a credit facility. The posted version must be the current one (409 otherwise). A dynamic pricing field keeps its computed value; the only change accepted for it is dynamic to manual. Fees, the security deposit and the hedge details that the switches hide are cleared. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Collateral": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Collateral [Roles] [Controlled Objects]",
        "description": "Gets the Collateral section of a credit facility: secured, borrowing base lien, general details and the credit support with its guarantees and caps. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Collateral [Roles] [Controlled Objects]",
        "description": "Saves the Collateral section of a credit facility. The posted version must be the current one (409 otherwise). Without credit support every guarantee, cap and cap amount is cleared; a cap that is off loses its amount. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/EquityCompensation": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Equity Compensation [Roles] [Controlled Objects]",
        "description": "Gets the Equity Compensation section of a credit facility: preferred shares, options and warrants with their counts, strike prices and dates. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Equity Compensation [Roles] [Controlled Objects]",
        "description": "Saves the Equity Compensation section of a credit facility. The posted version must be the current one (409 otherwise). Without equity compensation every equity value is cleared and each switch clears its own values. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquitySavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/PrepaymentPenalties": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Prepayment Penalties [Roles] [Controlled Objects]",
        "description": "Gets the Pre-Payment Penalties section of a credit facility: the six periods with their percent and details. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Prepayment Penalties [Roles] [Controlled Objects]",
        "description": "Saves the Pre-Payment Penalties section of a credit facility. The posted version must be the current one (409 otherwise). Without prepayment penalties every period is cleared. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Status": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Status [Roles] [Controlled Objects]",
        "description": "Gets the Loan Status section of a credit facility: active and, for employees, mark as deleted. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Status [Roles] [Controlled Objects]",
        "description": "Saves the Loan Status section of a credit facility: active and, for employees only, mark as deleted (ignored for contacts). The posted version must be the current one (409 otherwise). One audit row per changed flag; a changed active flag moves the covenant expiry dates and the response says when the covenant periods were not recalculated. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Credit Facility [Roles] [Controlled Objects]",
        "description": "Soft deletes a credit facility (it disappears for contacts; employees still find it). Documents, hedges, extension options and covenants are untouched. Deleting a deleted facility is a no-op for employees. Needs covenant entry. A hard delete is not available.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Details [Roles] [Controlled Objects]",
        "description": "Gets everything the panel of one credit facility shows (summary, economics, hedges, collateral, equity compensation, prepayment penalties) in one call. A deleted facility is a 404 for everyone but employees. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreditFacilityDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Credit Facility Form [Roles] [Controlled Objects]",
        "description": "Gets what the Add Credit Facility drawer needs: the agreement and company headers, the facility type and purpose lists, the limits (name, amount, up to 10 documents of 50 MB) and whether the upload option is offered. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NewFacilityFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Credit Facility [Roles] [Controlled Objects]",
        "description": "Adds a credit facility to the agreement with the four basics (the self-service option): name, type, purpose (and its text for Other) and the maximum facility amount in whole dollars. One audit row; the other values get the legacy defaults and are entered on the Edit page. Nothing is created when anything is invalid. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFacilityDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFacilityDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFacilityDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCreatedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/Express": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Credit Facility With Files [Roles] [Controlled Objects]",
        "description": "Adds a credit facility and its loan documents (the upload option; multipart: facilityName, facilityType, maximumFacilityAmount and 1 to 10 files in the repeated field documents). Everything is validated first and nothing is stored or created when anything is invalid; the files are stored before the rows and removed again when the save fails. The documents are saved as Loan Documents in Processing for the platform staff to load; a company user's upload is mailed to compliance. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "FacilityName": {
                    "type": "string"
                  },
                  "FacilityType": {
                    "type": "string",
                    "description": "An integer as text."
                  },
                  "MaximumFacilityAmount": {
                    "type": "string",
                    "description": "A whole number as text (invariant culture)."
                  },
                  "Documents": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "1 to 10 files (the repeated field `documents`)."
                  }
                }
              },
              "encoding": {
                "FacilityName": {
                  "style": "form"
                },
                "FacilityType": {
                  "style": "form"
                },
                "MaximumFacilityAmount": {
                  "style": "form"
                },
                "Documents": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExpressCreatedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Hedges": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Hedges [Roles] [Controlled Objects]",
        "description": "Gets the hedge details of a credit facility with the limits and the hedge types: required, in place, Chatham, ticker, type, level or collar levels, notional, the percent hedged (a fraction of the outstanding amount), dates, entity, counterparty and requirement. In the Phase 1 order (expiration date, none last). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Credit Facility Hedge [Roles] [Controlled Objects]",
        "description": "Adds a hedge detail to a credit facility. Collar levels are only kept for the Collar Option and the level is cleared for it; blank texts are stored empty. Audited (the legacy wrote no audit row for an add). The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeRowDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Hedges/{hedgeGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Hedge [Roles] [Controlled Objects]",
        "description": "Edits a hedge detail. The hedge must belong to the facility of the route. A save without a change writes nothing; otherwise the modification date and one audit row (the JSON before and after) are written. The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hedgeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeRowDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Credit Facility Hedge [Roles] [Controlled Objects]",
        "description": "Deletes a hedge detail (a hard delete) and writes the audit row. The hedge must belong to the facility of the route. The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hedgeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ExtensionOptions": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Extension Options [Roles] [Controlled Objects]",
        "description": "Gets the extension options of a credit facility with the facility version (exercise and undo must echo it), the initial, current and potential maturity dates and, per option, whether it can be exercised and why not. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Credit Facility Extension Option [Roles] [Controlled Objects]",
        "description": "Adds an extension option (details and a length of 1 to 3650 days) to a credit facility. Two audit rows are written. The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ExtensionOptions/{optionGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Credit Facility Extension Option [Roles] [Controlled Objects]",
        "description": "Edits an extension option that was not exercised (409 alreadyExercised otherwise: undo it first). One audit row per changed field. The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "optionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionStateDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Credit Facility Extension Option [Roles] [Controlled Objects]",
        "description": "Deletes an extension option that was not exercised (409 alreadyExercised otherwise: undo it first) and writes the audit row. The facility version does not change. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "optionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionStateDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ExtensionOptions/{optionGuid}/Exercise": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Exercise Credit Facility Extension Option [Roles] [Controlled Objects]",
        "description": "Exercises an extension option: the current maturity date of the facility moves by the days of the option, the covenant periods of the agreement are regenerated when its expiry moved and the new targets are sent for calculation. The body carries the facility version the page loaded (400 when missing, 409 FacilityStaleDto when it differs; nothing is written); the answer carries the NEW version. 409 ExtensionOptionStateDto when the option was already exercised, the facility has no current maturity date or the new date would be after 2100-12-31. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "optionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionChangedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ExtensionOptions/{optionGuid}/Reset": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Reset Credit Facility Extension Option [Roles] [Controlled Objects]",
        "description": "Undoes an exercised extension option: the days come off the current maturity date of the facility, the covenant periods of the agreement are regenerated when its expiry moved (periods after the new date are removed with their results, answers, approvals and calculated values) and the new targets are sent for calculation. The body carries the facility version the page loaded (400 when missing, 409 FacilityStaleDto when it differs; nothing is written); the answer carries the NEW version. 409 ExtensionOptionStateDto when the option is not exercised or the new date would be before 1900-01-01. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "optionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExtensionOptionChangedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStaleDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Pricing/{field}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Pricing [Roles] [Controlled Objects]",
        "description": "Gets the dynamic pricing grid of one field of a credit facility: the 1st and 2nd value (a line item or custom value of the company), the default value and the rules in the order they are processed, whether the field is priced with it, and the options for the pickers. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "field",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Credit Facility Pricing [Roles] [Controlled Objects]",
        "description": "Saves the dynamic pricing grid of one field of a credit facility (the header and the ordered rules replace the stored ones). The 1st and 2nd value must belong to the company, the operators are >, >=, <, <=, a rule needs its threshold and result (a result of 0 is kept). When the field is dynamic its value is recomputed. The facility version does not change; the field becomes dynamic through the Economics save. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "field",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Pricing/{field}/History": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Pricing History [Roles] [Controlled Objects]",
        "description": "Gets the dynamic pricing history and projections of one field of a credit facility: the rules and the computed result for the three periods before the latest completed one, that period and the three after it (the forecast rows only for users who may see forecasts), at the report frequency of the agreement. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "field",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingHistoryDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ReferenceText/{category}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Reference Text Form [Roles] [Controlled Objects]",
        "description": "Gets the editor form of one reference text topic of a credit facility (main, loanCosts, collateral, equityComp or prepayment; any case): the label and the stored text as sanitized HTML with the images of the company folder re-signed for 60 minutes (no text is a 200 with no html and hasText false). Unlike the read route of the View drawer it writes no stat. Needs covenant entry or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ReferenceText/{category}": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Credit Facility Reference Text [Roles] [Controlled Objects]",
        "description": "Saves one reference text topic of a credit facility (HTML; main, loanCosts, collateral, equityComp or prepayment; any case). It is sanitized (images are kept only when they are in the folder of this company), loses its leading line breaks and may be at most 100000 characters (400 on html). Text without content (no text, link or image) clears that topic only. The other topics, the facility modified date and its version are not changed and nothing is logged in the audit history; the last write wins. Needs covenant entry or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFacilityReferenceTextDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFacilityReferenceTextDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFacilityReferenceTextDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Read Credit Facility Reference Text [Roles] [Controlled Objects]",
        "description": "Gets one reference text topic of a credit facility (main, loanCosts, collateral, equityComp or prepayment; any case) as sanitized HTML. Images are re-signed for 60 minutes and only kept when they are in the folder of this company. No text for the topic is a 200 with no html. A non employee leaves a View Reference Text stat. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/ReferenceTextImages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Credit Facility Reference Text Image [Roles] [Controlled Objects]",
        "description": "Uploads an image for a credit facility reference text editor (multipart form, one file field named file): a png, jpg, jpeg or gif of at most 5 MB whose content matches its extension (400 on file). It is stored in the folder of the company under a new name and logged; the answer is the file name and a presigned URL valid for 60 minutes that the editor inserts. The image is not tied to a topic. Needs covenant entry or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "description": "The image (multipart field `file`: png, jpg, jpeg or gif, at most 5 MB).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReferenceTextImageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/AuditHistory": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Credit Facility Audit History [Roles] [Controlled Objects]",
        "description": "Lists the audit history of a credit facility, newest first, at most 500 rows with the total count: date (UTC), action, old and new value (typed as text, date, amount or fields, always with the stored text), changed by (the system when empty) and whether the customer API wrote it. Needs covenant entry, covenant approval or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAuditHistoryDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/OutstandingBalanceHistory": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Credit Facility Outstanding Balance History [Roles] [Controlled Objects]",
        "description": "Lists the outstanding balance history of a credit facility in the company currency, newest first. A facility that takes its balance from financial statements shows one row per statement period (the line items and custom values summed across the statements of the period; a custom value that cannot be calculated is null), at most 100 periods; any other facility shows the values entered for it (as of the UTC date of the change), at most 500. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityBalanceHistoryDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a credit facility: the people that can be written to (contacts of the company and its parent, the active lender contacts of the agreement of the facility, the account managers) and the limits. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Credit Facility Message [Roles] [Controlled Objects]",
        "description": "Sends a message about a credit facility to one or more of the allowed people (a conversation with one message). Visibility Public: everybody who may see the facility messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent, the recipients see it in their message center and unread digest. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeFacilityMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeFacilityMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeFacilityMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Credit Facility Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a credit facility the user may see (public ones and the ones the user takes part in), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Credit Facility Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about a credit facility (messages made in the legacy message center). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Overview": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Overview [Roles] [Controlled Objects]",
        "description": "Gets the overview of a company: its type, industry, fiscal year end, billing and reporting settings, and its NDAs.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyOverviewDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Overview [Roles] [Controlled Objects]",
        "description": "Updates the company overview (and its logo) and returns the updated overview. Only the fields of the edit form can change.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Logo": {
                    "type": "string",
                    "format": "binary"
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "CompanyTypeId": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "IndustryId": {
                    "type": "integer",
                    "description": "-1 is \"Other\".",
                    "format": "int64"
                  },
                  "OtherIndustry": {
                    "type": "string"
                  },
                  "FiscalEndMonth": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FiscalEndDay": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "BillingEmailAddress": {
                    "type": "string"
                  },
                  "CompanyOverview": {
                    "type": "string"
                  },
                  "StatusId": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "Currency": {
                    "type": "string",
                    "description": "#14838: the currency code; null or blank leaves the stored one, and it is ignored when the user may not change it."
                  },
                  "InternalCodeId": {
                    "type": "integer",
                    "description": "-1 creates Cerebro.Api.Features.Compliance.Models.UpdateCompanyOverviewValuesDto.NewInternalCodeValue; null clears the code.",
                    "format": "int64"
                  },
                  "NewInternalCodeValue": {
                    "type": "string"
                  },
                  "SecurityId": {
                    "type": "string"
                  },
                  "RequiresFinancialApproval": {
                    "type": "boolean"
                  },
                  "RequiresCovenantApproval": {
                    "type": "boolean"
                  },
                  "ReminderWeekly": {
                    "type": "boolean"
                  },
                  "Reminder30Days": {
                    "type": "boolean"
                  },
                  "Reminder15Days": {
                    "type": "boolean"
                  },
                  "Reminder10Days": {
                    "type": "boolean"
                  },
                  "Reminder7Days": {
                    "type": "boolean"
                  },
                  "Reminder3Days": {
                    "type": "boolean"
                  },
                  "ReminderOnDueDate": {
                    "type": "boolean"
                  },
                  "ReminderDayAfterDueDate": {
                    "type": "boolean"
                  },
                  "ReminderDailyUntilComplete": {
                    "type": "boolean"
                  },
                  "IsManagingDebt": {
                    "type": "boolean",
                    "description": "The company manages debt (covenants). At least one of the two management flags must stay on."
                  },
                  "IsManagingFinancials": {
                    "type": "boolean",
                    "description": "The company manages financials. At least one of the two management flags must stay on."
                  },
                  "CanAccessRelatedCompanies": {
                    "type": "boolean",
                    "description": "The company can see and manage related (child) companies."
                  },
                  "BypassSupplementalTerms": {
                    "type": "boolean",
                    "description": "Supplemental terms are not required for the company."
                  },
                  "RestrictedAccess": {
                    "type": "boolean",
                    "description": "Only employees with the restricted companies permission see the company."
                  },
                  "IsTestCompany": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "Logo": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "CompanyTypeId": {
                  "style": "form"
                },
                "IndustryId": {
                  "style": "form"
                },
                "OtherIndustry": {
                  "style": "form"
                },
                "FiscalEndMonth": {
                  "style": "form"
                },
                "FiscalEndDay": {
                  "style": "form"
                },
                "BillingEmailAddress": {
                  "style": "form"
                },
                "CompanyOverview": {
                  "style": "form"
                },
                "StatusId": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "InternalCodeId": {
                  "style": "form"
                },
                "NewInternalCodeValue": {
                  "style": "form"
                },
                "SecurityId": {
                  "style": "form"
                },
                "RequiresFinancialApproval": {
                  "style": "form"
                },
                "RequiresCovenantApproval": {
                  "style": "form"
                },
                "ReminderWeekly": {
                  "style": "form"
                },
                "Reminder30Days": {
                  "style": "form"
                },
                "Reminder15Days": {
                  "style": "form"
                },
                "Reminder10Days": {
                  "style": "form"
                },
                "Reminder7Days": {
                  "style": "form"
                },
                "Reminder3Days": {
                  "style": "form"
                },
                "ReminderOnDueDate": {
                  "style": "form"
                },
                "ReminderDayAfterDueDate": {
                  "style": "form"
                },
                "ReminderDailyUntilComplete": {
                  "style": "form"
                },
                "IsManagingDebt": {
                  "style": "form"
                },
                "IsManagingFinancials": {
                  "style": "form"
                },
                "CanAccessRelatedCompanies": {
                  "style": "form"
                },
                "BypassSupplementalTerms": {
                  "style": "form"
                },
                "RestrictedAccess": {
                  "style": "form"
                },
                "IsTestCompany": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyOverviewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Overview/EditForm": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Overview Edit Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of the company overview: the values, the logo, the limits, the sections that apply and the choices.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Overview/Logo": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Company Logo [Roles] [Controlled Objects]",
        "description": "Deletes the logo of a company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Contacts [Roles] [Controlled Objects]",
        "description": "Gets the people of a company with what the user may do with each. Filters: status (active, inactive, any) and team member (yes for company account users, no for third party contacts, any) and name (part of the first and last name, case insensitive). A third party contact only sees the contacts they created.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "teamMember",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactsPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Company Contact [Roles] [Controlled Objects]",
        "description": "Adds a company contact. A person who has no user gets one; a company user of another company is attached; the welcome email is sent.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Company Contact Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of a company contact with its defaults. Only the admins of a company that is not a related company may add contacts.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyContactFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/{contactGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Contact Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of a company contact of the company: the values, what the form shows and the choices.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyContactFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/{contactGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Contact [Roles] [Controlled Objects]",
        "description": "Updates a company contact of the company: the person, the email, the office, the access, the internal codes and the covenant assignment.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/{contactGuid}/Invite": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Contact Invite [Roles] [Controlled Objects]",
        "description": "Gets the invite email of a contact: the recipient, the subject and the welcome template with the placeholder #passwordLink. It creates and changes no password reset key.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SendInviteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Company Contact Invite [Roles] [Controlled Objects]",
        "description": "Sends the invite email to a contact. The recipient, the sign-in link and the sender are decided by the server; the body must contain #passwordLink.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SendInviteRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SendInviteRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SendInviteRequestDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/UserSummary": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get User Summary Report [Roles] [Controlled Objects]",
        "description": "Gets the user summary of a company: every contact with its access. For the admins of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UserSummaryReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/UserSummary/Excel": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download User Summary Report [Roles] [Controlled Objects]",
        "description": "Downloads the user summary of a company as an Excel file. For the admins of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/UserAudit": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get User Audit Report [Roles] [Controlled Objects]",
        "description": "Gets one page of the user audit report of a company: who changed which property of which user between two dates. For the admins of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UserAuditReportPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Contacts/UserAudit/Excel": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download User Audit Report [Roles] [Controlled Objects]",
        "description": "Downloads the user audit report of a company between two dates as an Excel file. For the admins of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Locations": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Locations [Roles] [Controlled Objects]",
        "description": "Gets the locations (offices) of a company, ordered by name, with whether the user may add and edit them. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Company Location [Roles] [Controlled Objects]",
        "description": "Adds a location (office) to the company. The first office of a company becomes the office of all its contacts.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Locations/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Company Location Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of a company location with its defaults. For the users who may edit the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Locations/{locationGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Location Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of a location of the company: its saved values, the choices and the limits. For the users who may edit the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "locationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Locations/{locationGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Location [Roles] [Controlled Objects]",
        "description": "Updates a location (office) of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "locationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Documents [Roles] [Controlled Objects]",
        "description": "Gets one folder of the documents of a company: the breadcrumbs, the visible sub-folders and the visible documents of that folder only (the root when no folder is given), with what the user may do. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyDocumentsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/All": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get All Company Documents [Roles] [Controlled Objects]",
        "description": "Gets every visible document of a company across the visible folders, with the folder and its path (the Show All drawer). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyDocumentsAllDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/Folders": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Document Folder Tree [Roles] [Controlled Objects]",
        "description": "Gets the visible folder tree of a company from the root down, for choosing the folder to move a document to.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentFolderNodeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Document Folder [Roles] [Controlled Objects]",
        "description": "Adds a folder under a folder of the company. The name is required, at most 150 characters and unique in the parent folder.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateDocumentFolderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateDocumentFolderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateDocumentFolderDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentFolderSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/Folders/{folderGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Rename Document Folder [Roles] [Controlled Objects]",
        "description": "Renames a folder that users created. The root and the system folders cannot be renamed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RenameDocumentFolderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RenameDocumentFolderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RenameDocumentFolderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentFolderSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Document Folder [Roles] [Controlled Objects]",
        "description": "Deletes a folder that users created. The folder must be empty: no documents and no sub-folders. The root and the system folders cannot be deleted.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/Folders/{folderGuid}/Files": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Company Documents [Roles] [Controlled Objects]",
        "description": "Adds files (up to 10 of 50 MB) to a folder of the company. Some files can be added while others are rejected: the result lists both; it is a 400 when no file was added.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "DocumentDate": {
                    "type": "string",
                    "description": "yyyy-MM-dd."
                  },
                  "NotifyCerebro": {
                    "type": "boolean",
                    "description": "Email the compliance team; only company users, ignored for employees."
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "DocumentDate": {
                  "style": "form"
                },
                "NotifyCerebro": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UploadDocumentsResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/{documentGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Document [Roles] [Controlled Objects]",
        "description": "Changes the title and the type of a document of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateDocumentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentRowDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Company Document [Roles] [Controlled Objects]",
        "description": "Deletes a document of the company: the stored file first, then the document. When the file cannot be deleted the document stays.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/{documentGuid}/Move": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Move Company Document [Roles] [Controlled Objects]",
        "description": "Moves a document of the company to another folder of the company. Moving it to the folder it is in changes nothing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MoveDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MoveDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MoveDocumentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentRowDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/{documentGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Document Download [Roles] [Controlled Objects]",
        "description": "Gets the download link of a document: a presigned URL that is valid for five minutes, and the file name. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Documents/Folders/{folderGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Document Folder [Roles] [Controlled Objects]",
        "description": "Downloads a folder and its visible sub-folders as a zip file. Documents the user may not see are left out. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Financials [Roles] [Controlled Objects]",
        "description": "Gets the financial statements of a company: the filters, one page of six columns (oldest on the left) with the sections, the line item rows and the cells, in the currency of the user. Filters: year, period, category (1 actual, 2 forecast, 3 budget, 4 YTD), usedIn (1 to 4, hides rows only), typeId (echoed back) and page. Open to every authorized contact; forecast statements need the forecast permission and a third party contact of a company that requires approval only sees approved statements.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "usedIn",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "typeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyFinancialsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Company Financials [Roles] [Controlled Objects]",
        "description": "Downloads the financial statements of a company as an Excel file: every statement the user may see that matches the year, period and category filters, a sheet per statement type. Open to every authorized contact; the access flags come from the contact, never from the query.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Custom Reports [Roles] [Controlled Objects]",
        "description": "Gets the custom reports of the company (every report, whoever owns it, in database order) with what the user may do. Open to every authorized contact; the links and Add need an employee or a contact that is not a multi-company user. A 403 for a company that only shows the credit explorer.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Create Custom Report [Roles] [Controlled Objects]",
        "description": "Adds a custom report to the company; the signed-in user becomes its owner. The name is required, the years are within five years of today, the period range must produce at least one column and every line item, custom value and covenant must belong to the company (at most 200 items). The report and its lines (in the legacy order) are saved in one transaction. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Custom Report Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of a custom report: the defaults, the choices (report types, years, periods, the line items of every statement type, the custom values and the covenants of active loan agreements) and the limits. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Report Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of a custom report of the company: the stored values (the line items in stored order) and the same choices and limits. A covenant of an agreement that is no longer active is offered only because the report holds it. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Custom Report [Roles] [Controlled Objects]",
        "description": "Updates a custom report of the company: name, type, years and periods are replaced (the trend type only for a trend report), the owner and the notes never change, and the lines are replaced in the same transaction in the legacy order. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Custom Report [Roles] [Controlled Objects]",
        "description": "Deletes a custom report of the company with its lines and its messages. Only the owner of the report may delete it (a 403 with the legacy text); a report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Report [Roles] [Controlled Objects]",
        "description": "Runs a custom report of the company and returns it as a table (the layout, the period columns, the lines in stored order and one cell per line and period; amounts are raw decimals, the app formats them). The numbers come from dbo.spGetCompanyCustomReportData, so a long monthly range can take many seconds. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportViewDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Custom Report [Roles] [Controlled Objects]",
        "description": "Downloads a custom report of the company as an Excel workbook (one sheet per layout): the same table the page shows, written by the same code, with the currency symbol of the company. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Notes": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Custom Report Notes [Roles] [Controlled Objects]",
        "description": "Replaces the notes of a custom report of the company (plain text, at most 10,000 characters; empty text clears them). Anyone who may open reports may edit the notes of any report of the company. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCustomReportNotesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCustomReportNotesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveCustomReportNotesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportNotesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Report Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a custom report: the people that can be written to (the active contacts of the company and of its parent, the active lender contacts of every loan agreement of the company, the account managers; never the caller) and the limits. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Custom Report Message [Roles] [Controlled Objects]",
        "description": "Sends the first message of a conversation about a custom report: ONE message with the caller as sender and the chosen people as recipients, saved in one transaction. The recipients must be among the people of the compose form (400 on recipientUserGuids otherwise), at least one is required, the body is sanitized. No e-mail is sent. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Custom Report Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a custom report, newest first (at most 200): a message shows when it is public or the caller takes part in it (employees get no exception). Opening the list marks the messages the caller received as read. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/Custom/{reportGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Report Message File [Roles] [Controlled Objects]",
        "description": "Gets a short-lived (five minutes) download URL of a file attached to a message about a custom report (messages made in the legacy message center). The message must be visible to the caller and the file must belong to it; a file missing in the bucket is a 404 and nothing is deleted. A report of another company is a 404. Needs an employee or a contact that is not a multi-company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Custom Values [Roles] [Controlled Objects]",
        "description": "Gets the custom values of a company, ordered by name, with the formula text, where each is used and what the user may do. Open to every authorized contact; the report tag is for employees only.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyCustomValuesPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Create Custom Value [Roles] [Controlled Objects]",
        "description": "Adds a custom value to the company. The name is required and unique, every line item and custom value of the formula must belong to the company, the formula must be a valid expression and the value and its 14 formula items are saved together. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Custom Value Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of a custom value: the defaults (15 operators and 14 empty values), the choices and the limits. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues/{customValueGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Value Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of a custom value of the company: its stored formula padded to 15 operators and 14 values, the choices (the other custom values minus every value that depends on this one) and the limits. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customValueGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues/{customValueGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Custom Value [Roles] [Controlled Objects]",
        "description": "Updates a custom value of the company: the name, the type, the EBITDA flag and the formula. The 14 formula items are replaced in one transaction. When the formula changed, the covenant targets that use the value (also as a dynamic limit) are recalculated; the response says what happened. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customValueGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Custom Value [Roles] [Controlled Objects]",
        "description": "Deletes a custom value. A value that covenants, other custom values, credit facilities or pricing use cannot be deleted (400 with the counts); custom reports do not block, their columns for the value are removed. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customValueGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues/Check": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Check Custom Value Formula [Roles] [Controlled Objects]",
        "description": "Checks a custom value form without saving it: the same validation as a save and the text of the formula. Always a 200 with the errors inside; customValueGuid is the value being edited. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customValueGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueCheckDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/CustomValues/{customValueGuid}/Usage": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Custom Value Usage [Roles] [Controlled Objects]",
        "description": "Gets where a custom value is used: covenants (also as a dynamic limit, with the period of period specific formulas), other custom values, credit facilities (outstanding balance and pricing) and custom reports; also what the delete confirmation shows. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "customValueGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueUsageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/ReportingSummary/EnterResponses": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Enter Responses Page [Roles] [Controlled Objects]",
        "description": "Gets the Enter Responses for Pending Covenants page: the non-financial covenant results that are incomplete and may be answered now (the Reporting Summary procedure with answers only) of the company and the related companies the user may see, with the same filters as the Reporting Summary (no default SME: absent = any SME), ordered like the report and paged by 50 (the page is clamped). Every row says whether the caller may answer it now (canAnswer, with blockedReason notSme, notOpen or noPermission otherwise) and the caller own answer (mine). Needs a company that manages debt or financials and a user that is not a third party contact (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reportingOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "internalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Enter Responses [Roles] [Controlled Objects]",
        "description": "Saves the answers of the Enter Responses for Pending Covenants page. Only the touched rows are sent, each keyed by its result guid (at most 50; an empty answer clears the own answer, an empty list saves nothing). All or nothing: every result must be a non-financial result of an active agreement of the company or of a related company the user may see (400 otherwise, one message for every reason); a row the user may not answer is a 403 and a period that is not open yet a 409 before anything is written. The changed rows are written in one transaction through the shared result writer; the saved and unchanged counts are returned. Needs a company that manages debt or financials and a user that is not a third party contact (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntrySavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Events [Roles] [Controlled Objects]",
        "description": "Gets the events of a company with their occurrences and related loan covenants in one call: events by name, occurrences newest first. Open to every authorized contact; canManage and canDelete tell what the user may do.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Company Event [Roles] [Controlled Objects]",
        "description": "Adds an event to the company. The name must be new among the events of the company (ignoring case). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Company Event Form [Roles] [Controlled Objects]",
        "description": "Gets the add form of an event with its defaults and limits. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Event Form [Roles] [Controlled Objects]",
        "description": "Gets the edit form of an event of the company: its values and the limits. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Event [Roles] [Controlled Objects]",
        "description": "Changes the name and the description of an event of the company. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Company Event [Roles] [Controlled Objects]",
        "description": "Deletes an event with its occurrences and their attachments. Refused (400) while the event is linked to loan covenants or an occurrence still has covenant results. Needs covenant entry and company admin.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Occurrences/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Event Occurrence Form [Roles] [Controlled Objects]",
        "description": "Gets the Report Event form of an event: today as the default date, the number of linked covenants and the attachment limits. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventOccurrenceFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Occurrences": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Report Event Occurrence [Roles] [Controlled Objects]",
        "description": "Reports an occurrence of an event (multipart: eventDate yyyy-MM-dd, notes and one optional attachment). A covenant result is created for each linked covenant that is active on the date; the attachment is saved before the rows. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "EventDate": {
                    "type": "string",
                    "description": "`yyyy-MM-dd`."
                  },
                  "Notes": {
                    "type": "string"
                  },
                  "Attachment": {
                    "type": "string",
                    "description": "One optional file.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "EventDate": {
                  "style": "form"
                },
                "Notes": {
                  "style": "form"
                },
                "Attachment": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventOccurrenceSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Occurrences/{occurrenceGuid}/DeleteImpact": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Event Occurrence Delete Impact [Roles] [Controlled Objects]",
        "description": "Gets what deleting an occurrence takes with it: its covenant results, how many are complete or have SME responses, and whether it has an attachment. Needs covenant entry and company admin.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.OccurrenceDeleteImpactDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Occurrences/{occurrenceGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Event Occurrence [Roles] [Controlled Objects]",
        "description": "Deletes an occurrence with all its covenant results (conversations, SME responses, audit rows and summaries included) and its attachment. Needs covenant entry and company admin.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Events/{eventGuid}/Occurrences/{occurrenceGuid}/Attachment": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Event Attachment [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (5 minutes) presigned download URL and the display name of the attachment of an occurrence. A 404 when the occurrence has no attachment or the S3 object is gone. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventAttachmentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Financial Statements [Roles] [Controlled Objects]",
        "description": "Lists the financial statements of the company that the user may see, for the statements drawer. Filters: year, period and category (1 actual, 2 forecast, 3 budget, 4 YTD); no paging. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementListDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Create Financial Statement [Roles] [Controlled Objects]",
        "description": "Adds a financial statement (one statement type of one period). The period must be free, an actual statement cannot be in the future, forecast needs the forecast permission and the approved flag needs the approval permission (ignored when the company does not require approval). Documents are added afterwards through the statement documents. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFinancialStatementDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFinancialStatementDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateFinancialStatementDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/LineItems/{lineItemTypeId}": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Financial Line Item Value [Roles] [Controlled Objects]",
        "description": "Sets or clears (value null) the value of a cell. Currency values are in the company currency, percent values are fractions. Parent line items have no values. Returns the cell for the viewer and whether the covenant targets were queued for recalculation. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateFinancialLineItemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateFinancialLineItemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateFinancialLineItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCellUpdateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/DeleteImpact": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statements Delete Impact [Roles] [Controlled Objects]",
        "description": "Previews what deleting statements removes: the line items that no remaining statement carries are deleted with them (and detached from covenants, custom values and credit facilities when used). Read only. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementGuidsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementGuidsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementGuidsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementsImpactDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Financial Statement [Roles] [Controlled Objects]",
        "description": "Deletes one financial statement with its values and audit history; documents of the period are kept. Line items that no other statement carries are deleted with it: when used ones would be detached from covenants, custom values or credit facilities the request needs confirmImpact=true (409 with the impact otherwise). Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "confirmImpact",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementsResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementsImpactDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/Delete": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Financial Statements [Roles] [Controlled Objects]",
        "description": "Deletes up to 200 financial statements (the statements drawer). Every guid must be a visible statement of the company, else 404 and nothing is deleted. 200 even with partial failures (listed in the result); 409 with the impact when used line items would be detached and confirmImpact is false. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteFinancialStatementsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteFinancialStatementsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteFinancialStatementsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementsResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementsImpactDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Approval": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Set Financials Approval [Roles] [Controlled Objects]",
        "description": "Approves or revokes the approval of a column of the financials (year, period, category and YTD flag, every statement type). Needs financial data approval and a company that requires financial approval. Idempotent: changedCount is 0 when the column already has that state.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsApprovalDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsApprovalDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsApprovalDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsApprovalResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Audit": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Audit [Roles] [Controlled Objects]",
        "description": "Gets the audit history of a financial statement, newest first (at most 500 entries, dates in UTC). Needs financial data entry or approval.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementAuditDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/OrderConflicts": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Line Item Order Conflicts [Roles] [Controlled Objects]",
        "description": "Lists the line item types that share a position with a sibling (same statement type, parent and position), the groups with ALL their siblings in the order they will be numbered. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/OrderConflicts/Resolve": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Resolve Line Item Order Conflicts [Roles] [Controlled Objects]",
        "description": "Repairs the line item order conflicts: every sibling of a group with a shared position is renumbered 1 to n in the order the page shows today. Groups without a conflict are not touched; a second call changes nothing. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ResolveOrderConflictsResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Processing": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Processing Form [Roles] [Controlled Objects]",
        "description": "Gets the data of the Upload Financials page: what the files are tagged with (last fiscal year, Full Year, Actual), the limits, the defaults of the YTD switch (on) and the Notify Cerebro switch (off), and the uploads that are still processing. Company users with financial data entry only (employees are 403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialProcessingFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Financial Files For Processing [Roles] [Controlled Objects]",
        "description": "Sends financial files (up to 10 of 50 MB, any document format) to Cerebro for processing: each becomes a Financial Statement document of the last fiscal year, Full Year, Actual, in the Processing state, with (YTD) added to the title when isYtd is on. Some files can be added while others are rejected: the result lists both; it is a 400 when no file was added. When notifyCerebro is on, compliance is e-mailed. Company users with financial data entry only (employees are 403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "IsYtd": {
                    "type": "boolean",
                    "description": "Nullable so a client that omits the field is not an under-posted value; a missing value means OFF: the title gets no \"(YTD)\" suffix unless a client asks for it."
                  },
                  "NotifyCerebro": {
                    "type": "boolean",
                    "description": "Defaults to OFF (legacy): no compliance e-mail unless the user turns it on."
                  }
                }
              },
              "encoding": {
                "Files": {
                  "style": "form"
                },
                "IsYtd": {
                  "style": "form"
                },
                "NotifyCerebro": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UploadDocumentsResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Upload Form [Roles] [Controlled Objects]",
        "description": "Gets the data of the templated financials upload form (data types, limits, the currency of the amounts) and the staged upload that waits for the review, if any. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialUploadFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Financial Template [Roles] [Controlled Objects]",
        "description": "Stages a templated financials upload (.xlsx, 50 MB): the file is read, every problem is reported with its sheet and cell (one entry per problem on 'file'), the line items are matched to the company's line item types and the result replaces the staged upload of the company. Nothing is imported until the import call. Forecast needs the forecast permission. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  },
                  "Category": {
                    "type": "integer",
                    "description": "1 Actual, 2 Forecast, 3 Budget.",
                    "format": "int32"
                  },
                  "IsYtd": {
                    "type": "boolean",
                    "description": "Every period of the file holds year to date values."
                  },
                  "OverwriteExisting": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                },
                "Category": {
                  "style": "form"
                },
                "IsYtd": {
                  "style": "form"
                },
                "OverwriteExisting": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadReviewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload/Template": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Upload Template [Roles] [Controlled Objects]",
        "description": "Downloads the Excel template of the templated financials upload (FinancialPeriodTemplate.xlsx). Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload/Review": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Staged Financial Upload Review [Roles] [Controlled Objects]",
        "description": "Gets the review of the staged templated upload of the company: what the import will create and overwrite, the matched and new line items and the positions that change. 404 when there is no staged upload. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadReviewDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload/{stagedUploadGuid}/File": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Staged Financial Upload File [Roles] [Controlled Objects]",
        "description": "Gets a presigned URL (valid for five minutes) of the file of a staged upload. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stagedUploadGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload/{stagedUploadGuid}/Import": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Import Financial Upload [Roles] [Controlled Objects]",
        "description": "Imports the staged templated upload: creates or overwrites the statements of every sheet and period, creates the new line items and renumbers the positions, all or nothing. 'approve' marks every statement approved (needs the approval permission; ignored when the company does not require approval). 409 with the review (blockingPeriods) when a statement appeared that the upload may not overwrite. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stagedUploadGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadReviewDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Upload/{stagedUploadGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Discard Financial Upload [Roles] [Controlled Objects]",
        "description": "Discards the staged templated upload (the staged rows and the uploaded file). Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stagedUploadGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Covenant Targets Page [Roles] [Controlled Objects]",
        "description": "Gets the Targets and Results page of a financial covenant or support calculation: the loan summary, the covenant block, the period grid (annual, semi-annual, quarterly or monthly layout, a cell per position with the state notActive, notApproved, notAvailable or result, a hidden state never carries a number, a guid or a menu) and the flags of the user. showAll=1 shows every year of a monthly covenant. hasCalculatingResults tells the page to poll. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "showAll",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/Recalculate": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Recalculate Financial Covenant Targets [Roles] [Controlled Objects]",
        "description": "Update Now: queues the targets of this covenant that are pending or in error for the covenant calculation (the error ones are flagged pending first). Nothing pending is a 200 with status None and no queue. A failed queue keeps the flags and answers status Failed. Not locked by the approval of the covenants. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Target": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Target Edit Form [Roles] [Controlled Objects]",
        "description": "Gets the Edit Target form of one period: the stored target type and value (the raw value: a percent covenant stores a fraction, 0.25 is 25%), the value format, the target types and the limit. The period must be one the page shows as a result (a hidden period is a 404). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Financial Target [Roles] [Controlled Objects]",
        "description": "Edits the target (type and value) of one period. Both values are required (400 with the keys targetType and targetValue); the value is rounded to 4 decimals. The posted values equal to the stored ones are a 200 with changed false and nothing is written or queued. Otherwise the target is saved, the result is flagged pending and queued for calculation when the formula of the period can calculate (the response carries the recalculation status). The period must be one the page shows (a hidden period is a 404). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFinancialTargetDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFinancialTargetDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveFinancialTargetDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Formula": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Target Formula Form [Roles] [Controlled Objects]",
        "description": "Gets the Add or Edit Custom Formula form of one period: the formula of the period (hasPeriodFormula true) or a COPY of the covenant formula to start from (false), the text of the covenant formula, the choices of the formula builder (every custom value of the company) and the limits (15 operators, 14 values). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Financial Target Formula [Roles] [Controlled Objects]",
        "description": "Saves the custom formula of one period: the values are validated like the covenant formula (400 with every error at once; every line item and custom value must belong to the company), the 14 value items of the period are replaced in the same save, and the result is flagged pending and queued when the formula can calculate. A formula identical to the stored one of the period is a 200 with changed false. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Financial Target Formula [Roles] [Controlled Objects]",
        "description": "Deletes the custom formula of one period so the covenant formula applies again: the items of the period are deleted, the result is flagged pending and queued when the covenant formula can calculate. A period without a formula of its own is a 200 with changed false. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaSavedDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Formula/Check": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Check Financial Target Formula [Roles] [Controlled Objects]",
        "description": "Checks a period formula without saving it: the same validation as the save (every field, the same keys and messages as a 400) and the text of the posted formula with the frequency of the covenant, plus a warning that does not make it invalid (a formula without a line item or custom value cannot be calculated). Always a 200 with the errors inside. Writes nothing. An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantCheckDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Cushion": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Target Cushion Analysis [Roles] [Controlled Objects]",
        "description": "Gets the Cushion Analysis of one period: for every term of the formula the value that makes the formula equal its target while the other terms keep their current value (found by evaluation: sums, products, constants and a value in a denominator that is the only unknown; anything else has no requiredValue), with the change and its percent. A term without data makes the status incompleteData. The period must be one the page shows (a hidden period is a 404). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Target Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer about one period of the covenant: the same people and limits as the covenant message form. The period must be one the page shows (a hidden period is a 404). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Financial Target Message [Roles] [Controlled Objects]",
        "description": "Sends a message about one period of the covenant to one or more of the allowed people (a conversation of the covenant result type with the period and ONE message). Visibility Public: everybody who may see the period messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent. The period must be one the page shows (a hidden period is a 404). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Financial Target Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about one period of the covenant the user may see (public ones and the ones the user takes part in), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. The period must be one the page shows (a hidden period is a 404). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/{covenantType}/{covenantGuid}/Targets/{targetGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Target Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about one period of the covenant (messages made in the legacy message center). The period must be one the page shows (a hidden period is a 404). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Facilities/{facilityGuid}/Permanent": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Permanently Delete Credit Facility [Roles] [Controlled Objects]",
        "description": "Permanently deletes a credit facility with its conversations, documents and folder, amendments, extension options, hedges, pricing rules, reference text and audit rows, then writes a Credit Facility Deleted audit row on the agreement. Employees only. This cannot be undone. 500 when the stored procedure failed (nothing was changed).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Permanent": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Permanently Delete Loan Agreement [Roles] [Controlled Objects]",
        "description": "Permanently deletes a loan agreement with its facilities, covenants and their results, compliance reports, templates, documents and folder, e-mail records, providers, guarantors and lender contacts (a subscription slot is freed). Employees only. This cannot be undone. 500 when the stored procedure failed (nothing was changed).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Reset": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Reset Company Financials [Roles] [Controlled Objects]",
        "description": "Reset Financials: deletes ALL financial statements of the company with their line items, audits and conversations, the staged uploads and ALL line item types (references to them are cleared) and resets every financial covenant target to incomplete. Uploaded documents stay. Employees with the Reset Company Financials permission only. This cannot be undone. 500 when the stored procedure failed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n<li>Reset Company Financials</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Line Item Type Form [Roles] [Controlled Objects]",
        "description": "Gets the add or edit form of a line item type: the values, the value types, the parent choices in tree order and, when editing, the number of values it holds. Without lineItemTypeId the form adds a line item of the statement type. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementType",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "parentLineItemTypeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Create Line Item Type [Roles] [Controlled Objects]",
        "description": "Adds a line item type to a statement type. The name must be free among the line items under the same parent; the parent must be of the same statement type; the line item goes last under its parent. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateLineItemTypeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateLineItemTypeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreateLineItemTypeDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/{lineItemTypeId}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Line Item Type [Roles] [Controlled Objects]",
        "description": "Changes the name, value type, covenant label and parent of a line item type. The statement type never changes; a new parent puts the line item last under it. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Line Item Type [Roles] [Controlled Objects]",
        "description": "Deletes a line item type and its values. A line item with child line items, or one used by a covenant, a custom value, a credit facility or its pricing, cannot be deleted (400). Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/{lineItemTypeId}/Usage": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Line Item Type Usage [Roles] [Controlled Objects]",
        "description": "Gets where a line item type is used (covenants, custom values, credit facilities with their pricing) and how many values a delete would remove; also what the delete confirmation shows. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeUsageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/Order": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Line Item Type Order [Roles] [Controlled Objects]",
        "description": "Gets the line items of a statement type under one parent (omit parentLineItemTypeId for the top level) in their current order, for the re-order drawer. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementType",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "parentLineItemTypeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeOrderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Reorder Line Item Types [Roles] [Controlled Objects]",
        "description": "Saves the order of the line items of a statement type under one parent: orderedIds must be exactly the siblings, and the server numbers them 1 to n. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReorderLineItemTypesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReorderLineItemTypesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReorderLineItemTypesDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/LineItemTypes/{lineItemTypeId}/Flag": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Set Line Item Type Flag [Roles] [Controlled Objects]",
        "description": "Flags a line item type as a key figure (income statement: Revenue, Ebitda; balance sheet: Cash, MarketableSecurities, Inventory, AccountsReceivable, TotalAssets, RealEstate, Equipment) on all its statement values, or clears the flag with null. Parent line items cannot be flagged. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetLineItemTypeFlagDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetLineItemTypeFlagDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SetLineItemTypeFlagDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Documents": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Documents [Roles] [Controlled Objects]",
        "description": "Gets the documents of a financial statement period: the Financial Statement documents with the year, period and category of the statement, shared by every statement of that column. Folder visibility and the forecast rule apply. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementDocumentsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Upload Financial Statement Documents [Roles] [Controlled Objects]",
        "description": "Adds PDF and Excel files (up to 10 of 50 MB) to a financial statement period, in the Financial Statements folder. Some files can be added while others are rejected: the result lists both; it is a 400 when no file was added. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UploadDocumentsResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Documents/{documentGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Document Download [Roles] [Controlled Objects]",
        "description": "Gets the download link of a document of a financial statement period: a presigned URL that is valid for five minutes, and the file name. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Documents/{documentGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Financial Statement Document [Roles] [Controlled Objects]",
        "description": "Deletes a document of a financial statement period: the stored file first, then the document. The document belongs to the period, so it disappears for every statement of that column. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Documents": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Agreement Documents [Roles] [Controlled Objects]",
        "description": "Adds documents to an existing loan agreement (multipart, the repeated field documents: up to 10 files of 50 MB; doc, docx, pdf, xls, xlsx, csv, 7z, zip, rar or zipx) into the agreement folder as Loan Documents. Some files can be added while others are rejected: the result lists both; it is a 400 when no file was added. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Documents": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Documents": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UploadDocumentsResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Documents/{documentGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Agreement Document [Roles] [Controlled Objects]",
        "description": "Deletes one document of a loan agreement: the stored file first, then the document row (a failed storage delete keeps the row and is a 500). Only a document of this agreement is found (404 otherwise). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a loan agreement: the people that can be written to (contacts of the company and its parent, the active lender contacts of the agreement, the account managers) and the limits. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Loan Message [Roles] [Controlled Objects]",
        "description": "Sends a message about a loan agreement to one or more of the allowed people (a conversation with one message). Visibility Public: everybody who may see the loan agreement messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent, the recipients see it in their message center and unread digest. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Loan Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a loan agreement the user may see (public ones and the ones the user takes part in; not the messages about its credit facilities or covenants), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about a loan agreement (messages made in the legacy message center). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/Emails/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Email Form [Roles] [Controlled Objects]",
        "description": "Gets the e-mail drawer of a loan agreement, prefilled for the mode (recipients: the sender, with the agreement recipients in blind copy; lenders: the active lender contacts; general: nobody): the sender (an employee sends from the user name, everybody else from the compliance address with the user as the reply-to), the lists, the subject (the agreement name), the body, the company documents that can be attached and the limits. A mode that cannot be prefilled (or sme, which does not apply to an agreement) is a 400 on mode. Who may call it depends on the mode (403 otherwise): lenders is open to every authorized contact and employee; recipients and general need an employee, a contact viewing its own company, or a contact of a parent company with covenant entry or approval who is not a third party contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanEmailFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/Emails": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Loan Email [Roles] [Controlled Objects]",
        "description": "Sends an e-mail about a loan agreement (multipart form: to, cc, bcc (repeated; each value may hold several addresses separated by semicolons or commas), subject, body, companyDocumentGuids (repeated) and files (repeated)). The addresses are normalized (lower case, no duplicates), the body is HTML and sanitized, at most 50 addresses, 10 attachments (documents and archives only) and 7 MB in total. A failed send is a 502 and records nothing; a sent e-mail is recorded with the sender (the record guid is absent when only the record could not be saved). The query mode (recipients, lenders or general; a missing or unknown value counts as general) only decides who may send: who may call it depends on it (403 otherwise): lenders is open to every authorized contact and employee; recipients and general need an employee, a contact viewing its own company, or a contact of a parent company with covenant entry or approval who is not a third party contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "To": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Bcc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Subject": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string",
                    "description": "HTML; sanitized on the server."
                  },
                  "CompanyDocumentGuids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "To": {
                  "style": "form"
                },
                "Cc": {
                  "style": "form"
                },
                "Bcc": {
                  "style": "form"
                },
                "Subject": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "CompanyDocumentGuids": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/EmailRecords": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Loan Email Records [Roles] [Controlled Objects]",
        "description": "Lists the e-mails sent about a loan agreement, newest first, at most 200 with the total count: sent on (UTC), sent by (absent for a legacy record), subject, the recipients as stored and how many covenants each e-mail is linked to. The e-mails about the covenants of the agreement are listed too. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanEmailRecordsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Messaging/EmailRecords/{emailRecordGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Read Loan Email Record [Roles] [Controlled Objects]",
        "description": "Gets one e-mail sent about a loan agreement: sent on, sent by, subject, to, cc, bcc, the body (sanitized HTML) and the names of the covenants the e-mail is linked to. A record of another agreement is a 404. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailRecordGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/Lenders": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Search Loan Lenders [Roles] [Controlled Objects]",
        "description": "Looks up lenders for the lender field of the loan agreement forms: Active or Pending banks whose name contains every word of the search, by name, at most 10. An empty search gives the first 10. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderOptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Loan Agreement Form [Roles] [Controlled Objects]",
        "description": "Gets the defaults and limits of the Add Loan Agreement form and whether the user may add a logo. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NewLoanAgreementFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Agreement Edit Form [Roles] [Controlled Objects]",
        "description": "Gets everything the Edit Loan Agreement page shows: the values, the logo URL, the four party lists, the provider percentage total, the documents (with the add and delete routes) and the limits. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementEditDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Agreement [Roles] [Controlled Objects]",
        "description": "Adds a loan agreement (multipart: name, agreementDate yyyy-MM-dd, bankGuid OR newLenderName, sendCovenantReminders, an optional arrangedByLogo and up to 10 documents). Everything is validated first and nothing is created when anything is invalid; the files are stored before the rows and removed again when the save fails. A new lender becomes a Pending lender. Needs covenant entry; the logo needs a company admin or an employee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string"
                  },
                  "AgreementDate": {
                    "type": "string",
                    "description": "`yyyy-MM-dd` or empty."
                  },
                  "BankGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "NewLenderName": {
                    "type": "string"
                  },
                  "SendCovenantReminders": {
                    "type": "string",
                    "description": "`true` or `false` (empty = false)."
                  },
                  "ArrangedByLogo": {
                    "type": "string",
                    "description": "One optional image.",
                    "format": "binary"
                  },
                  "Documents": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "ParentAgreementGuid": {
                    "type": "string",
                    "description": "Phase 3c, option 1 of the Add Cross-Default Loan drawer: the guid of the agreement the new one is cross-defaulted to (empty = none).\nText so that a value that is not a guid is a 400 on this key, like the other messages."
                  }
                }
              },
              "encoding": {
                "Name": {
                  "style": "form"
                },
                "AgreementDate": {
                  "style": "form"
                },
                "BankGuid": {
                  "style": "form"
                },
                "NewLenderName": {
                  "style": "form"
                },
                "SendCovenantReminders": {
                  "style": "form"
                },
                "ArrangedByLogo": {
                  "style": "form"
                },
                "Documents": {
                  "style": "form"
                },
                "ParentAgreementGuid": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementCreatedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Loans [Roles] [Controlled Objects]",
        "description": "Gets the loan agreements of a company as cards with their credit facility menus, the filter (status and single agreement) with its options and counts, and the pending loan documents. The details of each card load lazily from their own routes. Open to every authorized contact; deleted agreements only for employees.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "agreement",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLoansPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Agreement [Roles] [Controlled Objects]",
        "description": "Saves the main form of a loan agreement: name (required), date, send covenant reminders, active and, for employees only, mark as deleted. One audit row per change. A date change does not recalculate the covenant periods; the response says so when the agreement has covenants. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Agreement [Roles] [Controlled Objects]",
        "description": "Soft deletes a loan agreement (it disappears for contacts; employees still find it). Facilities, covenants and documents are untouched and the events are detached from its covenants. Deleting a deleted agreement is a no-op for employees. Needs covenant entry. A hard delete is not available.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Logo": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Loan Agreement Logo [Roles] [Controlled Objects]",
        "description": "Uploads or replaces the arranged-by logo (multipart field logo: jpg, jpeg or png, at most 1 MB). The previous object is deleted after the save. Needs a company admin with covenant entry, or an employee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Logo": {
                    "type": "string",
                    "description": "The logo image (multipart field `logo`: jpg, jpeg or png, at most 1 MB).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "Logo": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLogoSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Agreement Logo [Roles] [Controlled Objects]",
        "description": "Removes the arranged-by logo. A 404 when the agreement has no logo. Needs a company admin with covenant entry, or an employee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Providers": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Provider [Roles] [Controlled Objects]",
        "description": "Adds a provider (lender) to an agreement: bankGuid of an Active or Pending lender OR newLenderName (an existing lender with exactly that name, else a new Pending lender), and a percentage above 0 and at most 100. A lender that already provides the agreement is refused. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Providers/{providerGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Provider [Roles] [Controlled Objects]",
        "description": "Changes the percentage of a provider (the lender itself never changes). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderPercentageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderPercentageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderPercentageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Provider [Roles] [Controlled Objects]",
        "description": "Removes a provider from an agreement. The lender contacts of that lender stay on the agreement. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/InvestorGuarantors": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Investor Guarantor [Roles] [Controlled Objects]",
        "description": "Adds an investor guarantor (description of at most 256 characters and a percentage above 0 and at most 100). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/InvestorGuarantors/{guarantorGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Investor Guarantor [Roles] [Controlled Objects]",
        "description": "Changes the description and the percentage of an investor guarantor. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guarantorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Investor Guarantor [Roles] [Controlled Objects]",
        "description": "Removes an investor guarantor. A 400 when a financial covenant still uses it. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guarantorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Guarantors": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Guarantor [Roles] [Controlled Objects]",
        "description": "Adds a guarantor (description of at most 256 characters and an amount in the company currency from 0). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Guarantors/{guarantorGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Guarantor [Roles] [Controlled Objects]",
        "description": "Changes the description and the amount of a guarantor. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guarantorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Guarantor [Roles] [Controlled Objects]",
        "description": "Removes a guarantor. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guarantorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/AdditionalBorrowers": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Additional Borrower [Roles] [Controlled Objects]",
        "description": "Adds an additional borrower (a description of at most 256 characters). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/AdditionalBorrowers/{borrowerGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Additional Borrower [Roles] [Controlled Objects]",
        "description": "Changes the description of an additional borrower. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "borrowerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Additional Borrower [Roles] [Controlled Objects]",
        "description": "Removes an additional borrower. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "borrowerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/AuditHistory": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Loan Agreement Audit History [Roles] [Controlled Objects]",
        "description": "Lists the audit history of a loan agreement, newest first, at most 500 rows with the total count: date (UTC), action, old and new value (typed as text, or date for the agreement date, always with the stored text) and changed by (the system when empty). Needs covenant entry, covenant approval or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementAuditHistoryDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Amendments": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Amendment [Roles] [Controlled Objects]",
        "description": "Adds an amendment to a loan agreement: the date (yyyy-MM-dd, 1900-2100) and the details (at most 1000 characters) are required; an optional facilityGuid links it to a credit facility of the agreement. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Amendments [Roles] [Controlled Objects]",
        "description": "Gets the amendments of an agreement, newest first, with the credit facility each belongs to. Needs covenant entry, covenant approval or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Amendments/{amendmentGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Amendment [Roles] [Controlled Objects]",
        "description": "Changes the date and the details of an amendment of a loan agreement (both required; the facility of the amendment never changes). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "amendmentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Amendment [Roles] [Controlled Objects]",
        "description": "Deletes an amendment of a loan agreement (a hard delete, no audit row). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "amendmentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Copy/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Copy Loan Agreement Form [Roles] [Controlled Objects]",
        "description": "Gets what the Copy Loan Agreement drawer needs: the default name (Copy of {name}), the two empty dates, the limits and the counts of what a copy will contain (providers, non deleted credit facilities with their hedges and pricing rules, covenants, recipients, lender contacts, guarantors, investor guarantors, additional borrowers). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCopyFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Copy": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Copy Loan Agreement [Roles] [Controlled Objects]",
        "description": "Copies a loan agreement in ONE atomic save: the agreement settings (reminders, approval level and cross-default parent; the approval state starts reset), providers, non deleted credit facilities (inactive ones stay inactive; every copied facility gets the new maturity date) with their hedges, pricing and an audit row each, all covenants with their active contacts and the formula items, recipients, guarantors, investor guarantors, additional borrowers and lender contacts (all five rights). Documents, the logo, amendments, compliance report templates, extension options, reference texts and covenant results are not copied. After the commit the covenant periods (results AND targets) are created and the targets are sent for calculation; when that fails the copy stays and the answer says so in covenantPeriods. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CopyLoanAgreementValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CopyLoanAgreementValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CopyLoanAgreementValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementCopiedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Manage Covenants Page [Roles] [Controlled Objects]",
        "description": "Gets the Manage Covenants page of a loan agreement: header, loan summary, the financial, support calculation and non-financial covenants (filtered by the optional SME contact id), the SME filter, the tabs that apply, the access flags and the approval chain with its activity. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/ComplianceReports": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Manage Covenants Reports [Roles] [Controlled Objects]",
        "description": "Gets the Compliance Reports tab of the Manage Covenants page: the reports with their row actions, the templates, years and periods of the new report form. Until the covenants are approved only employees get the data; everyone else gets available false. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Uploads": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Manage Covenants Uploads [Roles] [Controlled Objects]",
        "description": "Gets the Covenant Uploads tab of the Manage Covenants page: the non-financial covenant uploads of the agreement, newest first. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsUploadsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Summary Page [Roles] [Controlled Objects]",
        "description": "Gets the Covenant Summary page of a loan agreement: the loan summary and the financial, support calculation and non-financial covenant period grids with their cell states and tones, plus the access flags. Values the user may not see (unapproved results for third party contacts, forecasts without permission) are never returned. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary/Pdf": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Covenant Summary PDF [Roles] [Controlled Objects]",
        "description": "Downloads the Covenant Summary page of a loan agreement as a PDF: the same data the page shows (hidden values are never printed), horizontal layout, without the interactive controls. Open to every authorized contact, with the same authorization as the page.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary/CalculationDetails": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Calculation Details [Roles] [Controlled Objects]",
        "description": "Gets the calculation details of one financial covenant result for the Covenant Summary drawer: the formula, each formula value of the period (nested custom values, supporting quarters or months, no data flags) and the target with the calculated result. Whatever the Covenant Summary page shows hidden for the user (no target, unapproved results for third party contacts, forecasts without permission) is a 404. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary/CalculationDetails/Export": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Covenant Calculation Details [Roles] [Controlled Objects]",
        "description": "Downloads the calculation details of one financial covenant result as an Excel workbook (port of the legacy Covenant Details export): the same data as the Calculation Details drawer, so whatever the drawer hides is a 404. Open to every authorized contact, with the same authorization as the details route.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CrossDefault/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Cross Default Form [Roles] [Controlled Objects]",
        "description": "Gets what the Add Cross-Default Loan drawer needs in ONE request: the loan agreements of the company that can be cross-defaulted to this one (the agreement itself, its current children and deleted agreements are not listed; one with another parent or that is a parent of this one is listed but cannot be selected, with the reason) and the Add Loan Agreement form of option 1. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CrossDefault": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Cross Default [Roles] [Controlled Objects]",
        "description": "Makes an existing loan agreement of the company a cross-defaulted loan of this one (this agreement becomes its parent). One parent per agreement: an agreement that already has another parent is refused (remove that link first), so is a cycle, itself and a deleted or foreign agreement (400 on childAgreementGuid). An agreement that already is a child of this one is a 200 with changed false. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CrossDefault/{childGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Remove Loan Cross Default [Roles] [Controlled Objects]",
        "description": "Removes the cross-default link between a loan agreement (the parent) and one of its cross-defaulted loans; both agreements stay. 404 when the child is not a child of that agreement (also when the link was already removed). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "childGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Providers/{providerGuid}/Contacts/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Lender Contact Form [Roles] [Controlled Objects]",
        "description": "Gets what the Add Lender Contact drawer needs: the agreement, company and provider names, the ACTIVE contacts of the provider bank that are not yet lender contacts of the agreement and the defaults. A provider without a linked bank is a 400 on providerGuid. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Providers/{providerGuid}/Contacts": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Lender Contact [Roles] [Controlled Objects]",
        "description": "Adds a lender contact to a loan agreement: bankContactGuid is an ACTIVE contact of the bank of the provider that is not yet on the agreement, plus Active and the five rights (all default to false); sendEmail (default true) notifies an active lender. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Providers/{providerGuid}/Contacts/{lenderContactGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Lender Contact [Roles] [Controlled Objects]",
        "description": "Changes the six values (Active and the five rights) of a lender contact; the contact of the row never changes and bankContactGuid is ignored. sendEmail (default false) notifies an active lender. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Lender Contact [Roles] [Controlled Objects]",
        "description": "Removes a lender contact from a loan agreement: only the link row (a hard delete, no audit row); the contact and its user account stay. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "providerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Recipients/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Recipient Form [Roles] [Controlled Objects]",
        "description": "Gets what the Add/Edit Recipient drawer needs: the agreement and company names, the prefix and suffix lists and the limits. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Recipients": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Recipient [Roles] [Controlled Objects]",
        "description": "Adds a recipient (agent, trustee or other interested party) to a loan agreement: first name, last name and e-mail address are required; prefix and suffix come from the lists. A recipient with the same e-mail address and company name (ignoring case) already on the agreement is a 400 on emailAddress. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Recipients/{recipientGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Recipient [Roles] [Controlled Objects]",
        "description": "Changes a recipient of a loan agreement (all seven values are overwritten); the duplicate rule of the add also applies, the edited row itself does not count. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "recipientGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Recipient [Roles] [Controlled Objects]",
        "description": "Deletes a recipient of a loan agreement (a hard delete, no audit row). Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "recipientGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Details": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Agreement Details [Roles] [Controlled Objects]",
        "description": "Gets the Loan Agreement Details of an agreement: providers with their lender contacts and permission flags, guarantors, additional borrowers, cross default links, recipients and the documents folder. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Compliance Report Templates [Roles] [Controlled Objects]",
        "description": "Gets the compliance report templates (not deleted) of an agreement: frequency, type and what can be done with each. Needs covenant entry, covenant approval or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanComplianceTemplatesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Loan Report Template [Roles] [Controlled Objects]",
        "description": "Adds a compliance report template to a loan agreement (multipart/form-data: frequency 1-4, templateType Text or Pdf, covenantPassLabel and covenantNotPassLabel (at most 50), defaultText (employees only, plain text, at most 100,000 characters) and ONE optional example file of 50 MB: doc, docx, pdf, xls, xlsx, csv, 7z, zip, rar or zipx; a PDF form template needs a pdf). The example is stored first, then its document row, then the template; a failure is a 500 and leaves nothing half saved. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Frequency": {
                    "type": "string"
                  },
                  "TemplateType": {
                    "type": "string"
                  },
                  "CovenantPassLabel": {
                    "type": "string"
                  },
                  "CovenantNotPassLabel": {
                    "type": "string"
                  },
                  "DefaultText": {
                    "type": "string",
                    "description": "Employees only; ignored for a contact."
                  },
                  "Example": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "Frequency": {
                  "style": "form"
                },
                "TemplateType": {
                  "style": "form"
                },
                "CovenantPassLabel": {
                  "style": "form"
                },
                "CovenantNotPassLabel": {
                  "style": "form"
                },
                "DefaultText": {
                  "style": "form"
                },
                "Example": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Example": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Template Example [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (5 minutes) presigned download URL of the example compliance report of a template. A 404 when the template has no example or the S3 object is gone. Needs covenant entry, covenant approval or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/Covenants": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Covenants [Roles] [Controlled Objects]",
        "description": "Gets the covenant summary of an agreement: financial covenants, support calculations, non-financial covenants and the approval state. Always returned (the compliance subscription gates nothing). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCovenantsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/Reports/LoanDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Loan Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with a row for each credit facility of the company and its direct child companies. status: All (default), Active or Inactive. Open to every authorized contact; a company user's internal code limits apply.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string",
              "default": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/Reports/HedgeDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Hedge Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with a row for each hedge of the credit facilities of the company and its direct child companies. status: All (default), Active or Inactive. Open to every authorized contact; a company user's internal code limits apply.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string",
              "default": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/Reports/NonFinancialCovenantDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Non-Financial Covenant Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with a row for each non-financial covenant of the company and its direct child companies, with the SME and the loan agreement status. Has no status filter. Open to every authorized contact; a company user's internal code limits apply.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/LineItemMapping": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Template Line Item Mapping [Roles] [Controlled Objects]",
        "description": "Gets the Map Financial Line Items to Report page of a compliance report template: the default text as plain text lines (the report date already replaced by today's long date) with the line item placeholders (#lineItemValuec_n_ current period, #lineItemValuep_n_ prior period) and the line item types of the company to map them to (the five statement types in the legacy order, headings marked isParent and not selectable). Employees only (403); a text without a placeholder is a 400 with the legacy text.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateLineItemMappingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Template Line Item Mapping [Roles] [Controlled Objects]",
        "description": "Maps the line item placeholders of the default text of a compliance report template: ALL placeholders of the stored text must be posted in one save ({ mappings: [{ key, lineItemTypeId }] }, key = lineItemValuec_1 / lineItemValuep_1), every id must be a line item type of this company that is not a heading. The tags are rewritten like the legacy (#lineItemValuec_1_ becomes #lineItemValuec_{id}); returns how many placeholders remain. A 400 with a ModelState error per key; nothing is saved then. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateLineItemMappingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateLineItemMappingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateLineItemMappingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateLineItemMappingSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get New Loan Report Template Form [Roles] [Controlled Objects]",
        "description": "Gets the empty form of a new compliance report template of a loan agreement: the pass/fail labels default to Yes/No, and the limits (frequencies, formats, label and text lengths, example size and extensions) travel with it. Needs covenant entry or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Loan Report Template Edit Form [Roles] [Controlled Objects]",
        "description": "Gets the stored values of a compliance report template of a loan agreement for editing. The default text is only given to employees. A 404 for a template of another agreement or company, or a deleted one. Needs covenant entry or an employee (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Loan Report Template [Roles] [Controlled Objects]",
        "description": "Changes a compliance report template of a loan agreement: a full replace of the values (same multipart form as the add); an omitted example keeps the current one and a new one replaces it (the old example is deleted afterwards). A change that changes nothing is a 200 without a save. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Frequency": {
                    "type": "string"
                  },
                  "TemplateType": {
                    "type": "string"
                  },
                  "CovenantPassLabel": {
                    "type": "string"
                  },
                  "CovenantNotPassLabel": {
                    "type": "string"
                  },
                  "DefaultText": {
                    "type": "string",
                    "description": "Employees only; ignored for a contact."
                  },
                  "Example": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "Frequency": {
                  "style": "form"
                },
                "TemplateType": {
                  "style": "form"
                },
                "CovenantPassLabel": {
                  "style": "form"
                },
                "CovenantNotPassLabel": {
                  "style": "form"
                },
                "DefaultText": {
                  "style": "form"
                },
                "Example": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Loan Report Template [Roles] [Controlled Objects]",
        "description": "Deletes a compliance report template of a loan agreement (a soft delete: the example document stays in the agreement documents and compliance reports of the template remain). A deleted template is a 404. Needs covenant entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Settings": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Template Settings [Roles] [Controlled Objects]",
        "description": "Gets the Manage Custom Report Settings page of a PDF compliance report template: the financial covenants of the loan agreement with their 'include the calculation details in the report' flag and page heading, and the template level custom fields (name, description, default value, prompt) with the field limits. Employees only (403); a template that is not a PDF form with an example is a 400 with the legacy text.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Settings/Covenants": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Template Covenants [Roles] [Controlled Objects]",
        "description": "Chooses the financial covenants whose calculation details are appended to the compliance report ({ includedCovenantGuids: [...] }): exactly like the legacy EVERY covenant of the loan agreement is set, included when its guid is posted and not included otherwise (an empty list switches all off). A guid that is not a financial covenant of this loan agreement is a 400 and nothing is saved. Returns the covenants of the page. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateCovenantsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateCovenantsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateCovenantsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Settings/Headings": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Template Covenant Headings [Roles] [Controlled Objects]",
        "description": "Saves the page headings of the included covenants ({ headings: [{ covenantGuid, heading }] }): only INCLUDED covenants of this loan agreement, each once, at most 500 characters. A covenant that is not listed keeps its heading (the legacy wrote NULL); a blank heading clears it. Returns the covenants of the page. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateHeadingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateHeadingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.SaveTemplateHeadingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Settings/Fields/{fieldGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Template Custom Field [Roles] [Controlled Objects]",
        "description": "Gets the stored values of one template level custom field of a PDF compliance report template for editing, with its rich text context (sanitized HTML). A field of another template, agreement or company is a 404. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fieldGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Template Custom Field [Roles] [Controlled Objects]",
        "description": "Changes a template level custom field of a PDF compliance report template: a full replace of the five values with the rules of the add (the unique name check ignores the field itself). A change that changes nothing is a 200 without a save. Compliance reports that already copied the field keep their copy. A field of another template, agreement or company is a 404. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fieldGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsFieldDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Delete Template Custom Field [Roles] [Controlled Objects]",
        "description": "Deletes a template level custom field of a compliance report template (a hard delete; compliance reports that already copied the field are not touched). A field of another template, agreement or company is a 404. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fieldGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ComplianceReportTemplates/{templateGuid}/Settings/Fields": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Template Custom Field [Roles] [Controlled Objects]",
        "description": "Adds a template level custom field to a PDF compliance report template ({ fieldName, fieldDescription, fieldValue, prompt, context }): the name is required, at most 50 characters and unique per template ignoring case, the description is required (150), the prompt at most 500; the context is rich text and is sanitized before it is stored. New fields are copied into every new compliance report of the template. Employees only (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsFieldDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/nonfinancial": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Non-Financial Covenant [Roles] [Controlled Objects]",
        "description": "Adds a non-financial covenant to the agreement. Nothing is created when anything is invalid (400 with every error at once); every SME contact and the event must belong to the company. The covenant, its SMEs, its optional loan document text and its Created audit row are saved together; then the results of every active period are created (covenantPeriods; not for an event driven covenant; a failed period step leaves the covenant saved and says so). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/nonfinancial/{covenantGuid}": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Non-Financial Covenant [Roles] [Controlled Objects]",
        "description": "Edits a non-financial covenant: the values and the SMEs. The version of the form must be echoed (409 with the current version when someone else changed the covenant); a changed test frequency deletes ALL results of the covenant and creates those of the new frequency, so it needs confirmResultReset when answered, complete or approved results exist (409 with the counts). An edit with no difference writes nothing (changed false). The response says what happened to the results (covenantPeriods). A loan document text in the body is a 400 (use Edit Loan Document Text). An approved agreement is a 409. Needs covenant entry, covenant approval or an employee, and not a third party contact (403).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantStaleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/Covenants/nonfinancial/Check": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Check Non-Financial Covenant [Roles] [Controlled Objects]",
        "description": "A non-financial covenant has no formula, so there is nothing to check: this route always answers 404 (after the same authorization as the other covenant editing routes). It exists only so the literal URL never reaches the body binding of the financial check route; the app never calls it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Covenant Results Page [Roles] [Controlled Objects]",
        "description": "Gets the Results page of a non-financial covenant: the loan summary, the covenant, the access flags and the grid of period cells (or the event list) with their states (not active, not approved, not available, pending, open, answered). Values the user may not see (unapproved results for third party contacts, forecasts without permission) are never returned. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/Answer": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Non-Financial Covenant Result Answer [Roles] [Controlled Objects]",
        "description": "Saves the answer of the caller to one result (Yes, No, N/A, Unsure; empty clears the answer). A covenant without SMEs stores one answer on the result, with SMEs each SME has an own answer and an employee answers on behalf. The covenant is completed and the target met flag recomputed in one transaction, the audit row is written only for a real change; an unchanged answer is a 200 with changed false. 403 for a user that may not answer (a non SME on an SME covenant gets its own message), 409 when the period is not open yet.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnswerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnswerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnswerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/Comments": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Non-Financial Covenant Result Comments [Roles] [Controlled Objects]",
        "description": "Saves the comment of one result (plain text, at most 2,000 characters; empty clears it). Works for any state of the result. An unchanged comment is a 200 with changed false. Needs covenant entry or approval, or being an SME of the covenant.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCommentsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCommentsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCommentsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/AuditHistory": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Non-Financial Covenant Result Audit History [Roles] [Controlled Objects]",
        "description": "Lists the audit history of one covenant result, newest first, at most 500 rows with the total count: date (UTC), action (Created, Answer Submitted, Comment, Approval), old and new value and changed by (the system when empty). Open to every authorized contact; a result that is hidden for the user is a 404.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultAuditDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Covenant Result Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of one covenant result: the people that can be written to (contacts of the company and its parent, the active lender contacts of the agreement, the account managers) and the limits. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Non-Financial Covenant Result Message [Roles] [Controlled Objects]",
        "description": "Sends a message about one covenant result to one or more of the allowed people (a conversation with one message). Visibility Public: everybody who may see the result messages; Private: only the sender and the recipients. The body is HTML and sanitized. No e-mail is sent, the recipients see it in their message center and unread digest. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Non-Financial Covenant Result Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages of the conversations about one covenant result, newest first, at most 200: a message shows when it is public or the user takes part in it. Opening the list marks the messages the user received as read. Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResults/{covenantGuid}/Results/{resultGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Covenant Result Message File [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (five minutes) download URL of a file attached to a message about a covenant result (a message made in the legacy message center). 404 when the message is not visible to the user, the file does not belong to it or the object is gone.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantResultEntry": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Period Entry Form [Roles] [Controlled Objects]",
        "description": "Gets the Enter Results form of one period of the non-financial covenants of a loan agreement: the covenants of the frequency that have a result for the period (lender reporting required first), the answer of the caller, the status and, for a row the user may not answer, the reason (not an SME, not open yet, no permission). Query: frequency (annual, semiAnnual, quarterly, monthly), year and quarter (annual 4, semi-annual 2 or 4, quarterly 1 to 4, monthly 13 to 24). Open to every authorized contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Save Non-Financial Period Entry [Roles] [Controlled Objects]",
        "description": "Saves the answers of the Enter Results form of one period. Only the touched rows are sent (an empty answer clears). All or nothing: a third party contact, or a row the user may not answer, is a 403 and a period that is not open yet a 409 before anything is written. The result flags are recomputed in one transaction; the answer saved count and the unchanged count are returned. No result is created.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntrySavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary/NonFinancialApproval": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Set Non-Financial Period Approval [Roles] [Controlled Objects]",
        "description": "Approves or revokes the approval of the non-financial covenant results of one period (frequency, year and quarter of a loan agreement) for third party contacts. Needs covenant entry or approval, and a company that requires covenant approval (409 otherwise). Only the results whose flag changes are written, each with an Approval audit row; changed 0 is a valid answer.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/CovenantSummary/FinancialApproval": {
      "put": {
        "tags": [
          "Compliance"
        ],
        "summary": "Set Financial Period Approval [Roles] [Controlled Objects]",
        "description": "Approves or revokes the approval of the financial covenant results of one period (frequency, year and quarter of a loan agreement): every target of the period of the financial covenants of that frequency. Needs covenant entry or approval, and a company that requires covenant approval (409 otherwise). Only the targets whose flag changes are written; changed 0 is a valid answer. The legacy wrote no audit row for it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialApprovalDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialApprovalDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialApprovalDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialApprovalSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/NonFinancialImport": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Import Form [Roles] [Controlled Objects]",
        "description": "Gets the data of the Import Non-Financial Covenants drawer: the agreement and company names, the limits (one .xlsx of 50 MB, 200 covenants, due-by days -999 to 999), the legacy import guidelines and the ten columns of the template (the last, Continuous Monitoring Required, optional) with their usage text. Needs covenant entry, covenant approval or an employee, and not a third party contact (403); an approved agreement is a 409.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Start Non-Financial Import [Roles] [Controlled Objects]",
        "description": "Starts Import Non-Financial Covenants: the file is validated like the check (400 with every problem, nothing stored), stored in the company bucket, an upload row (Pending) is inserted and the AWS Lambda that creates the covenants is started. Answers 202 with the upload guid; the Covenant Uploads tab shows the row and the uploader gets a platform message when the Lambda is done. Every row of the file becomes a NEW covenant (no update, no duplicate check, no SME). 502 when the Lambda could not be started (the row is then Error); 500 when S3 or the save failed (nothing was created). Needs covenant entry, covenant approval or an employee, and not a third party contact (403); an approved agreement is a 409.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "description": "Form field \"file\": the .xlsx template filled in (one file).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportQueuedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/NonFinancialImport/Template": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Non-Financial Import Template [Roles] [Controlled Objects]",
        "description": "Downloads the Excel template of Import Non-Financial Covenants (NonFinancialCovenantImportTemplate.xlsx, the unchanged legacy file). Same rights as the form, but an approved agreement still gets the file. 404 when the agreement is not found or the template is missing from the deployment.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Loans/{agreementGuid}/ManageCovenants/NonFinancialImport/Check": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Check Non-Financial Import [Roles] [Controlled Objects]",
        "description": "Checks an Import Non-Financial Covenants file (.xlsx, 50 MB) without importing it: every problem of the file is reported with its Excel row (one entry per problem on 'file') and nothing is stored. On success it answers the covenants the file would create with the values that will be stored. Needs covenant entry, covenant approval or an employee, and not a third party contact (403); an approved agreement is a 409.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "description": "Form field \"file\": the .xlsx template filled in (one file).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportCheckDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/ReportingSummary": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Reporting Summary Report [Roles] [Controlled Objects]",
        "description": "Gets the Reporting Summary report of the company: the non-financial covenant results of the company and of the related companies the user may see with the state, tone and due date of every row, filtered by company, SME (absent = the legacy default: the own contact of a company user when it is in the SME list), frequency, year, period, due date, status, reporting only and internal code, ordered and paged by 50. A row hidden for the user (unapproved result of a third party or multi company user, forecast without permission) carries no due line and no responder flags. Needs a company that manages debt or financials (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reportingOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "internalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/ReportingSummary/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Reporting Summary Report [Roles] [Controlled Objects]",
        "description": "Downloads the Reporting Summary report of the company as an Excel workbook: every row of the filter result (no paging) in the order of the page with the same states and hidden values. From 500 matching results on nothing is built: the report is handed to the Lambda, which e-mails the file to the user, and the answer is 202 with a message. Needs a company that manages debt or financials (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reportingOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "internalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportHandedOffDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/ReportingSummary/Email": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Reporting Summary Email Form [Roles] [Controlled Objects]",
        "description": "Gets the Email Report drawer of the Reporting Summary report, prefilled for the SME of the filters (the explicit smeId, else the default SME): the SME address in To, the subject, the body, the sender and the shared limits. The SME must be one of the SME options of the page (400 on smeId). Needs a company that manages debt or financials and a user that is not a third party contact (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reportingOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "internalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryEmailFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Reporting Summary Email [Roles] [Controlled Objects]",
        "description": "Sends the Reporting Summary report by e-mail (multipart form: to, cc, bcc (repeated; each value may hold several addresses separated by semicolons or commas), subject, body, companyDocumentGuids (repeated) and files (repeated); the report filters are query values like the page). The attachment is the workbook of the filters plus the posted files; the shared e-mail rules apply (at most 50 addresses, 10 attachments of documents and archives, 7 MB in total, a sanitized body). A failed send is a 502 and records nothing; a sent e-mail is recorded with the sender, linked to the covenants and periods of the report. From 500 matching results on the e-mail is handed to the Lambda, which builds the workbook, sends it and records it (202 with a message; the subject can then be at most 255 characters). The SME of the filters must be one of the SME options of the page (400 on smeId). Needs a company that manages debt or financials and a user that is not a third party contact (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reportingOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "internalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "To": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Bcc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Subject": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string",
                    "description": "HTML; sanitized on the server."
                  },
                  "CompanyDocumentGuids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "To": {
                  "style": "form"
                },
                "Cc": {
                  "style": "form"
                },
                "Bcc": {
                  "style": "form"
                },
                "Subject": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "CompanyDocumentGuids": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSentDto"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportHandedOffDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/CovenantSummary": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Summary Report [Roles] [Controlled Objects]",
        "description": "Gets the Covenant Summary report of the company: its financial covenant periods with the state, tone and due date of every row, filtered by frequency (without one: the latest completed period of every frequency), covenant category, SME, year and period, ordered and paged by 50. A row hidden for the user (unapproved result, forecast without permission) carries no target, value or tone. Needs a company that manages financials and debt (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Reports/CovenantSummary/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Covenant Summary Report [Roles] [Controlled Objects]",
        "description": "Downloads the Covenant Summary report of the company as an Excel workbook: every row of the filter result (no paging) in the order of the page with the same states and hidden values. From 500 matching periods on nothing is built: the report is handed to the Lambda, which e-mails the file to the user, and the answer is 202 with a message. Needs a company that manages financials and debt (403 otherwise).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "smeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportHandedOffDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Messages/Form": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Message Form [Roles] [Controlled Objects]",
        "description": "Gets the compose message drawer of a statement: the people that can be written to (contacts of the company and its parent, lenders and account managers) and the limits. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Messages": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Compose Financial Statement Message [Roles] [Controlled Objects]",
        "description": "Sends a message about a statement to one or more people (a conversation with one message). Visibility Public: everybody who may see the statement messages; Private: only the sender and the recipients. The body is HTML and sanitized. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeStatementMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeStatementMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComposeStatementMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageSentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Financial Statement Messages [Roles] [Controlled Objects]",
        "description": "Lists the messages about a statement the user may see (public ones and the ones the user takes part in), newest first, at most 200 (dates in UTC). Opening the list marks the messages the user received as read. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessagesDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Message File Download [Roles] [Controlled Objects]",
        "description": "Gets the download link (a presigned URL valid for five minutes) of a file attached to a message about a statement. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Download Financial Statement [Roles] [Controlled Objects]",
        "description": "Downloads one financial statement as an Excel file: the row tree of the company with the values of the statement in the currency of the user. Open to every authorized contact that may see the statement.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/CompanyProfile/Financials/Statements/{statementGuid}/FlagLineItems": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Financial Statement Flag Line Items [Roles] [Controlled Objects]",
        "description": "Gets the data of the Flag Key Line Items page of a statement: the line item types of its statement type with the key flag each carries and the flags the statement type allows (income statement: revenue, EBITDA; balance sheet: seven). Saving uses the line item type flag route, which applies to every statement of the company. Needs financial data entry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "statementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FlagLineItemsPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/LoanAgreements": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Company Billing Subscription Slot [Roles] [Controlled Objects]",
        "description": "Adds an extra, unassigned loan agreement slot to an active Navigator subscription (employees only). Nothing is invoiced; the loan is assigned with the slot PATCH.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementSlotDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/Invoices": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Company Billing Subscription Invoice [Roles] [Controlled Objects]",
        "description": "Starts a pending, empty invoice for an active Navigator subscription (employees only): the same form as the other Add Invoice drawers. Returns the guid of the new invoice; its line items are added on the invoice page.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/Cancellation": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Subscription Cancellation [Roles] [Controlled Objects]",
        "description": "The cancellation reasons of the cancel form of an active Navigator subscription (employees only), the last one is \"Other\" (-1).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/Cancel": {
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Cancel Company Billing Subscription [Roles] [Controlled Objects]",
        "description": "Cancels an active Navigator subscription (employees only): it ends today and, when asked and the subscription has a cancellation fee, the cancellation fee invoice is created. 204.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/{subscriptionGuid}/Edit": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Subscription Edit Form [Roles] [Controlled Objects]",
        "description": "The stored values of the Edit Subscription form of an active Navigator subscription (employees only).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Company Billing Subscription [Roles] [Controlled Objects]",
        "description": "Edits an active Navigator subscription (employees only): prices, auto renew and the term dates; with createInvoice it also creates the approved subscription invoice with its PDF and asks billing to review it. 400 with the field errors.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Billing/Subscriptions/Start": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Company Billing Subscription Start Form [Roles] [Controlled Objects]",
        "description": "The Start Compliance Subscription form (employees only): whether the company may start a Navigator subscription, the active Navigator products and the loans of the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Covenants/{kind}/{covenantGuid}/Location": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Covenant Location [Roles]",
        "description": "Gets where a covenant lives: the loan agreement and the company of a non-financial or a financial covenant, found by the guid of the covenant. A covenant of a company the signed in user cannot open is a 404, exactly like a guid that does not exist (no covenant is revealed). Company users and employees.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceCovenantLocationDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/Current": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Compliance"
        ],
        "summary": "Current Compliance User [Roles]",
        "description": "Gets the signed in user with the compliance companies the user has an active contact at.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceCurrentUserDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/AccountSettings": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Account Settings [Roles]",
        "description": "Gets the communication settings of the company contact of the user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Compliance"
        ],
        "summary": "Update Compliance Account Settings [Roles]",
        "description": "Updates the communication settings of a company contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Dashboard": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Dashboard [Roles] [Controlled Objects]",
        "description": "Gets the notifications, statistics and financial load progress of the company dashboard.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceDashboardDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Dashboard/DebtCapacity": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Debt Capacity [Roles] [Controlled Objects]",
        "description": "Gets the debt capacity of the company, optionally including its portfolio of related companies.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includePortfolio",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceDebtCapacityDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Dashboard/LoanSummaries": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Loan Summaries [Roles] [Controlled Objects]",
        "description": "Gets the active credit facilities of the company with the status of their covenants.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includePortfolio",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLoanSummaryDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Dashboard/TermsTracker": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Compliance Terms Tracker [Roles] [Controlled Objects]",
        "description": "Compares the price, term and amortization of a credit facility to the market.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceTermsTrackerDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/ViewAs": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Viewed Related Company [Roles]",
        "description": "Gets a direct related (child) company as the compliance app shows it while the signed in parent company contact views the app as that company (the legacy SetRelatedCompanyMode): the attributes of the child company with the contact flags the API applies to the child's data routes. 401 when the company is not a related company of the user, the parent cannot access related companies or the contact is limited to other internal codes.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceCompanyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Messages/Counts": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Message Center Counts [Roles] [Controlled Objects]",
        "description": "Gets the unread message counts of the signed in user for the 12 folders of the message center (the folder badges and the account menu badge): the number of unread MESSAGES (not conversations) per conversation type over the conversations of the companies the user may open; Unread is the total, Sent has none.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageCenterCountsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Messages/Folders/{folder}/Conversations": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "List Message Center Conversations [Roles] [Controlled Objects]",
        "description": "Lists the conversations of one folder of the message center (folder: unread, sent, loanAgreement, creditFacility, complianceReport, financialStatement, financialLineItem, financialCovenant, financialCovenantResult, nonFinancialCovenant, nonFinancialCovenantResult or customReport, any case), newest first by the newest row that matches the folder, 50 per page (page is 1 based; beyond the last page the list is empty). A conversation of a company the user cannot open is not listed. Nothing is marked read.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folder",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageConversationsPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Messages/Conversations/{conversationGuid}": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Open Message Center Conversation [Roles] [Controlled Objects]",
        "description": "Opens a conversation: the thread oldest first with the record header and link and the reply form. scope=mine (default) shows the messages the user takes part in and marks EVERY unread message of the user in the conversation read (the only write of this GET); scope=all (any case) also shows the PUBLIC messages of the conversation, needs the record to be visible to the user and marks nothing. A conversation that does not exist, that the user takes no part in or of a company the user cannot open is a 404 (Message not found.).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conversationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageConversationDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Messages/Conversations/{conversationGuid}/Replies": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Message Center Reply [Roles] [Controlled Objects]",
        "description": "Replies to a conversation (multipart form: body, visibility Public or Private, repeated recipientUserGuids, an optional parentMessageGuid and up to 10 repeated files of at most 10 MB: DOC, DOCX, PDF, XLS, XLSX, CSV, PPT, PPTX, 7Z, ZIP, RAR or ZIPX, checked by content). The sender is always the caller; the recipients must be the people of the reply form; the subject is Re: and the subject of the conversation. A conversation without a company (a general one) cannot be replied to (400). The files are saved before the message and removed again when the message cannot be saved (502 when a file cannot be stored, 500 when the message cannot be saved). No e-mail is sent.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conversationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ParentMessageGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "Body": {
                    "type": "string",
                    "description": "HTML; sanitized on the server."
                  },
                  "Visibility": {
                    "type": "string",
                    "description": "`Public` or `Private` (any case)."
                  },
                  "RecipientUserGuids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "ParentMessageGuid": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "Visibility": {
                  "style": "form"
                },
                "RecipientUserGuids": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageReplySentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Messages/Conversations/{conversationGuid}/Messages/{messageGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Message Center File [Roles] [Controlled Objects]",
        "description": "Gets the short-lived (five minutes) presigned download URL of a file attached to a message. The message must be one the user takes part in or a public message of a conversation whose record the user may see; the file must belong to the message. A missing object is a 404 and nothing is deleted.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conversationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/ReportRequest": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Send Report Request [Roles] [Controlled Objects]",
        "description": "Sends a custom report request to the report request address (multipart form: reportTitle and reportDescription, both required and plain text, and an optional document of at most 10 MB: DOC, DOCX, PDF, XLS, XLSX, CSV, PPT, PPTX, 7Z, ZIP, RAR or ZIPX, checked by its content). The e-mail names the user and carries the file; nothing is recorded. A company user needs an active contact at a compliance company; employees pass. A failed send is a 502 and nothing is claimed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ReportTitle": {
                    "type": "string",
                    "description": "Report Title/Name (required)."
                  },
                  "ReportDescription": {
                    "type": "string",
                    "description": "Report Description (required; plain text, HTML-encoded in the e-mail)."
                  },
                  "Document": {
                    "type": "string",
                    "description": "Report Example (optional; one file). An empty file counts as none, like the legacy.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "ReportTitle": {
                  "style": "form"
                },
                "ReportDescription": {
                  "style": "form"
                },
                "Document": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Related Companies [Roles] [Controlled Objects]",
        "description": "Gets one page of the related (child) companies of a company, with the totals and what the user may do.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "internalCodeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RelatedCompaniesPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Add Related Company [Roles] [Controlled Objects]",
        "description": "Adds a related (child) company to the portfolio of a company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/FormHelper": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Add Related Company Form Helper [Roles] [Controlled Objects]",
        "description": "Gets the choices of the add related company form.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyFormHelperDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Available": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Existing Companies Available To Associate [Roles] [Controlled Objects]",
        "description": "Gets one page of the existing companies an employee may associate as a related (child) company: no parent, not inactive, no subscriptions.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExistingCompanyCandidatesPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Existing": {
      "post": {
        "tags": [
          "Compliance"
        ],
        "summary": "Associate Existing Company [Roles] [Controlled Objects]",
        "description": "Associates a company that is already in Cerebro as a related (child) company of the portfolio company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssociateExistingCompanyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssociateExistingCompanyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssociateExistingCompanyDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/{childCompanyGuid}": {
      "delete": {
        "tags": [
          "Compliance"
        ],
        "summary": "Remove Related Company [Roles] [Controlled Objects]",
        "description": "Removes a related company from the portfolio of a company; the company itself is kept.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "childCompanyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Reports/LoanDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Loan Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with a row for each credit facility of the company and its related companies.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string",
              "default": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Reports/HedgeDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Hedge Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with a row for each hedge of the credit facilities of the company and its related companies.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "enum": [
                "All",
                "Active",
                "Inactive"
              ],
              "type": "string",
              "default": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Reports/NonFinancialCovenantDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Non-Financial Covenant Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with the non-financial covenants of the company and its related companies, with their subject matter experts (Covenants - SME splits).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/RelatedCompanies/Reports/ActiveNonFinancialCovenantDetail": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Active Non-Financial Covenant Detail Report [Roles] [Controlled Objects]",
        "description": "Downloads a workbook with the non-financial covenants of the active companies of the portfolio (Active Company Covenant Details).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/Analytics/Commitments": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Commitments [Roles] [Controlled Objects]",
        "description": "Gets the maximum facility amounts of the portfolio by lender and by industry, in the currency of the user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/Analytics/MaturingLoans": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Maturing Loans [Roles] [Controlled Objects]",
        "description": "Gets the credit facilities of the portfolio maturing in the next three years, by quarter.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioMaturingLoansDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/Analytics/BorrowerCapacity": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Borrower Capacity [Roles] [Controlled Objects]",
        "description": "Gets the outstanding debt, commitments and debt capacity of the company and its related companies.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioBorrowerCapacityDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/Analytics/LenderLoans": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Lender Loans [Roles] [Controlled Objects]",
        "description": "Gets the credit facilities of the portfolio behind one lender of the commitment chart; no lender gets the facilities without a bank provider.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioLenderLoanDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Compliance/{userGuid}/Companies/{companyGuid}/Portfolio/Analytics/Industries/{industryId}/Companies": {
      "get": {
        "tags": [
          "Compliance"
        ],
        "summary": "Get Portfolio Industry Companies [Roles] [Controlled Objects]",
        "description": "Gets the companies of the portfolio in one industry of the commitment chart.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Borrower Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "industryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioIndustryCompanyDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ExcelReporting/CovenantSummaryReport": {
      "post": {
        "tags": [
          "Compliance Reports"
        ],
        "summary": "Covenant Summary Report [Roles] [Scopes]",
        "description": "Will run a specific lambda for calling the download of the covenant summary report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>ExcelDownloads</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.CovenantSummaryReportParam"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.CovenantSummaryReportParam"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.CovenantSummaryReportParam"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Messaging.LambdaResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ExcelReporting/ReportingSummaryReport": {
      "post": {
        "tags": [
          "Compliance Reports"
        ],
        "summary": "Reporting Summary Report [Roles] [Scopes]",
        "description": "Will run a specific lambda for calling the download of the covenant summary report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>ExcelDownloads</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.ReportingSummaryReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.ReportingSummaryReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.ReportingSummaryReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Messaging.LambdaResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ExcelReporting/EmailReportingSummaryReport": {
      "post": {
        "tags": [
          "Compliance Reports"
        ],
        "summary": "Email Reporting Summary Report [Roles] [Scopes]",
        "description": "Will run a specific lambda for emailing the reporting summary report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>ExcelDownloads</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.EmailReportingSummaryReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.EmailReportingSummaryReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Jobs.Models.EmailReportingSummaryReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Messaging.LambdaResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ComplianceReports/{complianceReportId}/Generate": {
      "post": {
        "tags": [
          "Compliance Reports"
        ],
        "summary": "Queues a compliance report for generation [Roles] [Scopes]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>QueueComplianceReportGeneration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "complianceReportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.ComplianceReportRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.ComplianceReportRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.ComplianceReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The compliance report was successfully queued for generation."
          },
          "500": {
            "description": "An unexpected exception was thrown.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CovenantCalculations": {
      "post": {
        "tags": [
          "Covenant Calculations"
        ],
        "summary": "Queues covenant targets for calculation [Roles] [Scopes]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>QueueCovenantTargetCalculations</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.CovenantCalculationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.CovenantCalculationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.DTOs.CovenantCalculationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The covenant targets were successfully queued for calculation."
          },
          "400": {
            "description": "The provided values are invalid or incomplete.",
            "content": {
              "application/json": { }
            }
          },
          "500": {
            "description": "An unexpected exception was thrown.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/Current": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Credit Explorer"
        ],
        "summary": "Current User",
        "description": "Gets the user entity tied to the currently authenticate user making the request.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CreditExplorerCurrentUserDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/AccountSettings": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Get Company Contact Settings [Roles]",
        "description": "Will get the company contact account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Update Bank Contact Settings [Roles]",
        "description": "Will update the bank contact account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/AccountSettings/{contactGuid}": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Get Company Contact Settings [Roles]",
        "description": "Will a specific company contact account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Payment Method [Roles]",
        "description": "<p>Gets all of the users payment method details from Stripe.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Dashboard": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Dashboard [Roles]",
        "description": "Gets all data required for displaying the dashboard on the credit explorer app.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CreditExplorerDashboardDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/Companies/{companyGuid}/StatusBar": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Status Bar [Roles]",
        "description": "<p>Get company status bar information such as name and logo.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyStatusBarDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Companies [Roles]",
        "description": "Gets all data required for displaying the companies on the credit explorer app for multi-company users.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.MultiCompanyDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/InterestedLenders": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Interested Lenders [Roles]",
        "description": "Gets all interested lenders for a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadInterestDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/InterestedLenders/{interestGuid}/Accept": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Borrower Interested [Roles]",
        "description": "Marks a raw lead deal interested lender as accepted by the borrower.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "interestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/InterestedLenders/{interestGuid}/Decline": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Borrower Not Interested [Roles]",
        "description": "Marks a raw lead deal interested lender as declined by the borrower.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "interestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Raw Lead Detail [Roles]",
        "description": "Gets the detail information for a new raw lead deal to be created.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Raw Lead [Roles]",
        "description": "Create a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/Detail": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Detail [Roles]",
        "description": "Gets the detail information for a raw lead deal to be edited.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Update Raw Lead Detail [Roles]",
        "description": "Updates the details of the raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/Visibility": {
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Visibility [Roles]",
        "description": "Updates the visibility of a raw lead deal for the associated company user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealVisibilityFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealVisibilityFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealVisibilityFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyRawLeadDealDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/ExcludedLenders": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Raw Lead Excluded Lenders [Roles]",
        "description": "Gets all excluded lenders for a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealExcludedLendersDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Raw Lead Excluded Lender [Roles]",
        "description": "Adds an excluded lender from a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.AddRawLeadExcludedLenderFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.AddRawLeadExcludedLenderFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.AddRawLeadExcludedLenderFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/SearchLenders": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Search Lenders for Raw Deals [Roles]",
        "description": "Searches for lenders to exclude from a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchLendersForRawLeadFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchLendersForRawLeadFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchLendersForRawLeadFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/ExcludedLenders/{excludedLenderGuid}": {
      "delete": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Delete Raw Lead Excluded Lender [Roles]",
        "description": "Deletes an excluded lender from a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "excludedLenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/Upload": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Upload Raw Lead Documents [Roles]",
        "description": "Uploads document(s) for a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DocumentType",
                  "Files"
                ],
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "enum": [
                      "Financial_Statement",
                      "PersonalFinancial",
                      "FinancialProjections",
                      "Budget",
                      "CapTable",
                      "AccountAnalysisStatement",
                      "BankStatement",
                      "CompanyValuation",
                      "EquipmentAppraisal",
                      "RealEstateAppraisal",
                      "AR_Agings",
                      "AP_Agings",
                      "Loan_Document",
                      "DebtSchedule",
                      "CorpTax",
                      "PrincipalTax",
                      "Collateral",
                      "Valuation",
                      "Diligence",
                      "CompanyOverviewMaterials",
                      "BoardReports",
                      "OrganizationalChart",
                      "IpDocs",
                      "ManagementBios",
                      "EmployeeDocument",
                      "OrganizationalDocument",
                      "SbaForm",
                      "SbaSupportingDocument",
                      "Nda",
                      "FinancialUpload",
                      "ExecutiveSummary",
                      "BorrowingBase",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/Documents": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Get Raw Lead Documents [Roles]",
        "description": "Gets all data room documents for a raw lead deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDocumentDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/RawLeadDeals/{dealGuid}/Documents/{documentGuid}": {
      "delete": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Delete Raw Lead Document [Roles]",
        "description": "Deletes a raw lead deal data room document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Subscriptions [Roles]",
        "description": "Gets all subscriptions for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerSubscriptionsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/SingleEngagementInvoices": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Single Engagement Invoices [Roles]",
        "description": "Gets all invoices for the associated user's company single engagement subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyInvoiceDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/CompanySubscriptionInvoices": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Company Subscription Invoices [Roles]",
        "description": "Gets all invoices for the associated user's company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyInvoiceDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/Deals": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Company Subscription Deals [Roles]",
        "description": "Gets all deals for the associated user's company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.HubspotDealDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/BillingPeriods": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Company Subscription Billing Periods [Roles]",
        "description": "Gets all billing periods for the associated user's company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.BillingPeriodDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/SubscriptionDeals": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Contact Deals [Roles]",
        "description": "Gets all raw lead deals for a company users company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Deals/{dealGuid}/Contract/SendForSigning": {
      "post": {
        "tags": [
          "Deals",
          "Document E-Sign"
        ],
        "summary": "Send DirectConnect Contract For E-Sign [Roles]",
        "description": "Swaps to a DirectConnect subscription and sends contract for E-Signing<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Deals/{dealGuid}/Contract/DownloadAsHtml": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Download Contract As Html [Roles]",
        "description": "Swaps to DirectConnect if necessary, then converts the S3 PDF to HTML for previewing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Subscriptions/{subscriptionGuid}/NewLoanRequest": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Get Add Loan Request Page [Roles]",
        "description": "Creates a new loan request for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.AddNewLoanRequestPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Loan Request [Roles]",
        "description": "Creates a new loan request for the associated user's company based on company subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.NewLoanRequestFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.NewLoanRequestFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.NewLoanRequestFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/CompanyProfile": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Company Overview [Roles]",
        "description": "Gets company overview details and all the company contacts for the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Edit Overview [Roles]",
        "description": "Updates the company details on the overview form of the credit explorer app.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Contacts": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Company People [Roles]",
        "description": "Gets all the company contacts for the company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyPeoplePageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Company Contact [Roles]",
        "description": "Adds a new company contact for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Contacts/{contactGuid}": {
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Edit Company Contact [Roles]",
        "description": "Edits an existing company contact for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Contacts/{contactGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Get Account Details For Send [Roles]",
        "description": "<p>Get specific company contact account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Send Account Details [Roles]",
        "description": "<p>Will send specific company contact account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/UserAuditReport": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "User Audit Report [Roles]",
        "description": "Gets all user audit report data for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchUserAuditReportFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchUserAuditReportFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.SearchUserAuditReportFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.CreditExplorer.Models.CompanyContactUserAuditSearchResultDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/UserAuditReport/Excel": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "User Audit Report [Roles]",
        "description": "Returns all user audit report data for the associated user's company as an excel file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PerPage",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/NDAs": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "NDAs [Roles]",
        "description": "Gets all NDAs for the associated user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/MarketTracker": {
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Market Tracker [Roles]",
        "description": "Pulls a page of market tracker data along with charting information for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/DealSonar": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Deal Sonar [Roles]",
        "description": "Pulls a page of market tracker refinancing opportunities data along with charting information for a set of filter criteria for a specific company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/DealSonar/{painPointGuid}/Status": {
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Toggle Deal Sonar Status [Roles]",
        "description": "Toggles the term sheet facility deal sonar pain points active status.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/DealSonar/{painPointGuid}": {
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Edit Deal Sonar Item [Roles]",
        "description": "Edits the term sheet facility deal sonar pain points details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditDealSonarItemFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditDealSonarItemFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.EditDealSonarItemFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/DealSonar/{painPointGuid}/Financials": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Deal Sonar Financials History [Roles]",
        "description": "Gets the term sheet facility deal sonar pain points financial details history.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.DealSonarFinancialHistoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Add Deal Sonar Financials [Roles]",
        "description": "Adds a term sheet facility deal sonar pain points financial details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/DealSonar/{painPointGuid}/Financials/{auditGuid}": {
      "delete": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Delete Deal Sonar Financials History [Roles]",
        "description": "Deletes a specific term sheet facility deal sonar pain point financial detail history record.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "auditGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Update Deal Sonar Financials [Roles]",
        "description": "Updates the term sheet facility deal sonar pain points financial details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "painPointGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "auditGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/TermSheetFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "View Term Sheet Facility [Roles]",
        "description": "Fetches term sheet facility and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/PainPointFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "View Pain Point Facility [Roles]",
        "description": "Fetches term sheet pain point facility for company subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/CreditExplorer/{userGuid}/Companies/{companyGuid}/Invoices": {
      "get": {
        "tags": [
          "Credit Explorer"
        ],
        "summary": "Invoices [Roles]",
        "description": "Gets all invoices for the associated with the user's company.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyInvoiceDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Calls": {
      "get": {
        "tags": [
          "Data Room Calls",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Calls [Roles]",
        "description": "<p>Get list of all calls requested for a specific data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Calls",
          "Data Rooms"
        ],
        "summary": "Add Data Room Call [Roles]",
        "description": "<p>Employee only endpoint for adding a data room call.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomCallDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomCallDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomCallDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Calls/Lender/{bankDealProfileGuid}": {
      "get": {
        "tags": [
          "Data Room Calls",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Lender Calls [Roles]",
        "description": "<p>Get list of all data room calls requested for a specific lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankDealProfileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Calls/{dataRoomCallGuid}": {
      "patch": {
        "tags": [
          "Data Room Calls",
          "Data Rooms"
        ],
        "summary": "Update Data Room Call [Roles]",
        "description": "<p>Update the details of a specific data room call.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomCallGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomCallDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomCallDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomCallDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Calls/{dataRoomCallGuid}/Reset": {
      "post": {
        "tags": [
          "Data Room Calls",
          "Data Rooms"
        ],
        "summary": "Update Data Room Call [Roles]",
        "description": "<p>Resets the status of a specific data room call from complete to proposed and clears the schedule date.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomCallGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests": {
      "post": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Add Diligence Request [Roles] [Controlled Objects]",
        "description": "<p>Creates a diligence request for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Diligence Requests [Roles] [Controlled Objects]",
        "description": "<p>Get list of all diligence requests for a specific data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}": {
      "patch": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Update Diligence Request [Roles] [Controlled Objects]",
        "description": "<p>Updates the details of the diligence request for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "LenderGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "Title": {
                    "type": "string"
                  },
                  "DiligenceType": {
                    "enum": [
                      "DocumentRequest",
                      "Question"
                    ],
                    "type": "string"
                  },
                  "Details": {
                    "type": "string"
                  },
                  "Resolution": {
                    "type": "string"
                  },
                  "FolderGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "IsVisibleToAll": {
                    "type": "boolean"
                  },
                  "IsWithdrawn": {
                    "type": "boolean"
                  },
                  "IsCompleted": {
                    "type": "boolean"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "SendEmail": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "LenderGuid": {
                  "style": "form"
                },
                "Title": {
                  "style": "form"
                },
                "DiligenceType": {
                  "style": "form"
                },
                "Details": {
                  "style": "form"
                },
                "Resolution": {
                  "style": "form"
                },
                "FolderGuid": {
                  "style": "form"
                },
                "IsVisibleToAll": {
                  "style": "form"
                },
                "IsWithdrawn": {
                  "style": "form"
                },
                "IsCompleted": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                },
                "SendEmail": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Delete Diligence Request [Roles] [Controlled Objects]",
        "description": "<p>Will delete a specific data room diligence request and associated data.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/AssociateDocuments": {
      "post": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Add Documents to Diligence Request [Roles] [Controlled Objects]",
        "description": "Will associate a list of data room documents to a pending document diligence request.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociateDiligenceDocumentsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociateDiligenceDocumentsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociateDiligenceDocumentsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/Files": {
      "post": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Upload Diligence Request File [Roles] [Controlled Objects]",
        "description": "<p>Uploads a file to a diligence request for a data room, and syncs it to data room documents folder.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/Files/{fileGuid}/Download": {
      "get": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Downloads Diligence Request File [Roles] [Controlled Objects]",
        "description": "<p>Will process the request of the download, watermark if PDF, and return file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/Files/{fileGuid}": {
      "delete": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Delete Diligence Request File [Roles] [Controlled Objects]",
        "description": "<p>Deletes a diligence request file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/Links": {
      "post": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Add Diligence Request Link [Roles] [Controlled Objects]",
        "description": "<p>Adds a link reference between a data room document and a diligence request.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DiligenceRequestLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/{requestGuid}/Links/{linkGuid}": {
      "delete": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Delete Diligence Request Link [Roles] [Controlled Objects]",
        "description": "<p>Removes the document link from the diligence request.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "linkGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/LenderDiligenceRequests": {
      "get": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Gets Lender Diligence Requests [Roles] [Controlled Objects]",
        "description": "<p>Get list of all diligence requests in a specific data room for a specific lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/Uploads": {
      "get": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Gets Diligence Requests Uploads [Roles] [Controlled Objects]",
        "description": "<p>Gets list of staged diligence requests for a data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.StagedDiligenceRequestUploadDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Upload Diligence Requests [Roles] [Controlled Objects]",
        "description": "<p>Uploads a diligence request excel template and loads up the staged tables for processing.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "DataRoomUserGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "DiligenceType": {
                    "enum": [
                      "DocumentRequest",
                      "Question"
                    ],
                    "type": "string"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "DataRoomUserGuid": {
                  "style": "form"
                },
                "DiligenceType": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.StagedDiligenceRequestUploadDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DiligenceRequests/Uploads/{uploadGuid}": {
      "patch": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Complete Diligence Request Upload [Roles] [Controlled Objects]",
        "description": "<p>Will move staged upload diligence requests into the data room tasks table.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uploadGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Diligence Requests",
          "Data Rooms"
        ],
        "summary": "Delete Diligence Request Upload [Roles] [Controlled Objects]",
        "description": "<p>Will delete a specific data room diligence request staged upload and associated data items.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uploadGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/${folderGuid}/Upload": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Uploads Data Room Document Files [Roles] [Controlled Objects]",
        "description": "<p>Uploads a document file to a data room folder.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "enum": [
                      "Financial_Statement",
                      "PersonalFinancial",
                      "FinancialProjections",
                      "Budget",
                      "CapTable",
                      "AccountAnalysisStatement",
                      "BankStatement",
                      "CompanyValuation",
                      "EquipmentAppraisal",
                      "RealEstateAppraisal",
                      "AR_Agings",
                      "AP_Agings",
                      "Loan_Document",
                      "DebtSchedule",
                      "CorpTax",
                      "PrincipalTax",
                      "Collateral",
                      "Valuation",
                      "Diligence",
                      "CompanyOverviewMaterials",
                      "BoardReports",
                      "OrganizationalChart",
                      "IpDocs",
                      "ManagementBios",
                      "EmployeeDocument",
                      "OrganizationalDocument",
                      "SbaForm",
                      "SbaSupportingDocument",
                      "Nda",
                      "FinancialUpload",
                      "ExecutiveSummary",
                      "BorrowingBase",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "IsVisibleToAll": {
                    "type": "boolean"
                  },
                  "DataRoomUsers": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int64"
                    }
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                },
                "IsVisibleToAll": {
                  "style": "form"
                },
                "DataRoomUsers": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/{documentGuid}/CopyTo": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Copy Data Room Document [Roles] [Controlled Objects]",
        "description": "<p>Copies a data room document to another location in the data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentToFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentToFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentToFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/{documentGuid}": {
      "patch": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Update Data Room Document [Roles] [Controlled Objects]",
        "description": "<p>Updates the data room document details.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDocumentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Deletes a Data Room Document [Roles]",
        "description": "<p>Will delete a data room document.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/Folder/{folderGuid}": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Create Data Room Document Folder [Roles] [Controlled Objects]",
        "description": "<p>Returns the data room document folder and child records needed for data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomRepositoryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/{folderGuid}": {
      "patch": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Update Data Room Folder [Roles] [Controlled Objects]",
        "description": "<p>Updates the details of a data room document folder.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomFolderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomFolderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomFolderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Deletes a Data Room Document Folder [Roles]",
        "description": "<p>Will delete a data room document folder as long as the folder is empty.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DownloadRequests/{userGuid}": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Get Download Folder Requests [Roles] [Controlled Objects]",
        "description": "<p>Will return all active data room document folder requests for a specific user.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DownloadRequests/{userGuid}/File/{requestGuid}": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Downloads Data Room Folder Request File [Roles] [Controlled Objects]",
        "description": "<p></p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Deletes Download Request [Roles] [Controlled Objects]",
        "description": "<p>Will soft delete a data room download request.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/{folderGuid}/Download": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Start Download Folder Request [Roles] [Controlled Objects]",
        "description": "<p>Creates a download request and send that request off to the lambda funciton for processing.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/DocumentDownloadRequest": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Start Download Document Request [Roles] [Controlled Objects]",
        "description": "<p>Takes a list of data room documents and creates a download request which calls the lamda function.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/{folderGuid}/MoveFiles": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Move Multiple Data Room Files [Roles] [Controlled Objects]",
        "description": "<p>Will move multiple selected data room folder files to another selected folder.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MoveMultipleFilesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MoveMultipleFilesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MoveMultipleFilesDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Get Data Room Document Folders [Roles] [Controlled Objects]",
        "description": "<p>Gets list of data room document folders.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/Hierarchy": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Gets Root Folder with All Children [Roles] [Controlled Objects]",
        "description": "<p>Gets the heirarchical list of data room document folders starting at root.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folders/{parentFolderGuid}": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Create Data Room Document Folder [Roles]",
        "description": "<p>Will create a data room document folder in assigned parent.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "parentFolderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomFolderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomFolderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomFolderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomFolderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/{documentGuid}/History": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Get Document Download History [Roles]",
        "description": "<p>Pulls all the download history for a specific data room document.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/{documentGuid}/Download": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Downloads Data Room Document File [Roles] [Controlled Objects]",
        "description": "<p>Will process the request of the download, watermark if PDF, and return file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/SendRepositoryLink/{folderGuid}/Folder": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Send Repository Link [Roles] [Controlled Objects]",
        "description": "<p>Gets the email template information and available lenders to send link.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.RepositoryLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/SendRepositoryLink/{documentGuid}/Document": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Send Repository Link [Roles] [Controlled Objects]",
        "description": "<p>Gets the email template information and available lenders to send link.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.RepositoryLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/SendRepositoryLink/{linkGuid}": {
      "post": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Send Repository Link [Roles] [Controlled Objects]",
        "description": "<p>Sends email link to lenders regarding a data room folder or document.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "linkGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendDataRoomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendDataRoomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendDataRoomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Folder/{folderGuid}/Download": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Download Zip File [Roles] [Controlled Objects]",
        "description": "<p>Downloads all files and folders based on a folder in data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "folderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/All": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Show All Documents [Roles]",
        "description": "<p>Will return all data room documents ordered by last added.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Documents/Deleted": {
      "get": {
        "tags": [
          "Data Room Documents",
          "Data Rooms"
        ],
        "summary": "Show Deleted Documents [Roles]",
        "description": "<p>Will return all data room documents marked as deleted.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/AccessLogs/{userGuid}": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "View Access Stats [Roles]",
        "description": "<p>Gets all stats for user that viewed data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.StatDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda": {
      "post": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Accept Nda [Roles]",
        "description": "<p>Accepts an NDA for specified data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderTemplateGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Get Active Nda [Roles]",
        "description": "<p>Gets the active NDA to present to lenders upon accessing a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Nda.Models.ActiveNdaDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda/Signed": {
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Get Signed NDA [Roles]",
        "description": "<p>Gets the NDA that was signed by the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Nda.Models.SignedNdaDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda/Access": {
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Check Dataroom Nda Access [Roles]",
        "description": "<p>Returns boolean indicating data room user NDA status.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda/{userGuid}/Available": {
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Gets Available NDAs [Roles]",
        "description": "<p>Returns list of available lender NDAs.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Nda.Models.AvailableNdasDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda/Standard/{companyName}": {
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Gets Standard Cerebro Nda [Roles]",
        "description": "<p>Returns Standard Cerbero NDA.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Nda/{userGuid}/Signed/Download": {
      "get": {
        "tags": [
          "Data Room Ndas",
          "Data Rooms"
        ],
        "summary": "Downloads Signed NDA by lender [Roles]",
        "description": "<p>Downloads NDA signed by lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/TermSheetTool": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Term Sheet Tool [Roles]",
        "description": "<p>Pulls paged term sheet reporting data.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "LenderType": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "LoanSize": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "LoanType": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "RevenueRange": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "PerPage": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "Page": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "encoding": {
                "LenderType": {
                  "style": "form"
                },
                "LoanSize": {
                  "style": "form"
                },
                "LoanType": {
                  "style": "form"
                },
                "RevenueRange": {
                  "style": "form"
                },
                "PerPage": {
                  "style": "form"
                },
                "Page": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetToolResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/Comparison": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Term Sheet Comparison [Roles]",
        "description": "<p>Gets the comparison report models for data room term sheets.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetComparisonDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/Comparison/Download": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Downloads Term Sheet Comparison [Roles] [Controlled Objects]",
        "description": "<p>Will generate and return an excel version of the term sheet comparison report by data room guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/LenderRevisions": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Lender Revisions [Roles]",
        "description": "<p>Gets all revisions for the current lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Lender Revisions [Roles]",
        "description": "<p></p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Download": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Downloads Term Sheet Revision File [Roles] [Controlled Objects]",
        "description": "<p>Will process the request of the download, and return file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Term Sheets [Roles]",
        "description": "<p>Get all term sheets for a data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/Add": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet [Roles] [Controlled Objects]",
        "description": "<p>Adds a new term sheet from a specified lender for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "Uploads"
                ],
                "type": "object",
                "properties": {
                  "IsIncumbentSolution": {
                    "type": "boolean"
                  },
                  "BankDealProfileGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "TermSheetType": {
                    "enum": [
                      "TermSheet",
                      "IOI",
                      "ExistingDebtTerms"
                    ],
                    "type": "string"
                  },
                  "DateReceived": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "NotifyBorrower": {
                    "type": "boolean"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "IsIncumbentSolution": {
                  "style": "form"
                },
                "BankDealProfileGuid": {
                  "style": "form"
                },
                "TermSheetType": {
                  "style": "form"
                },
                "DateReceived": {
                  "style": "form"
                },
                "NotifyBorrower": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/AddExcludedLender": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Excluded Lender Term Sheet [Roles] [Controlled Objects]",
        "description": "<p>Adds a new term sheet from a specified lender for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "Uploads"
                ],
                "type": "object",
                "properties": {
                  "IsIncumbentSolution": {
                    "type": "boolean"
                  },
                  "BankGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "TermSheetType": {
                    "enum": [
                      "TermSheet",
                      "IOI",
                      "ExistingDebtTerms"
                    ],
                    "type": "string"
                  },
                  "DateReceived": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "NotifyBorrower": {
                    "type": "boolean"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "IsIncumbentSolution": {
                  "style": "form"
                },
                "BankGuid": {
                  "style": "form"
                },
                "TermSheetType": {
                  "style": "form"
                },
                "DateReceived": {
                  "style": "form"
                },
                "NotifyBorrower": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Add": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Revison [Roles] [Controlled Objects]",
        "description": "<p>Will add a new revision to an existing data room term sheet for a lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "Uploads"
                ],
                "type": "object",
                "properties": {
                  "TermSheetType": {
                    "enum": [
                      "TermSheet",
                      "IOI",
                      "ExistingDebtTerms"
                    ],
                    "type": "string"
                  },
                  "DateReceived": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "NotifyBorrower": {
                    "type": "boolean"
                  },
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "TermSheetType": {
                  "style": "form"
                },
                "DateReceived": {
                  "style": "form"
                },
                "NotifyBorrower": {
                  "style": "form"
                },
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/Lenders/{dataRoomUserGuid}/Upload": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Upload Term Sheet File [Roles] [Controlled Objects]",
        "description": "<p>Uploads a term sheet file to a data room folder.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/ReplaceFile": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Replaces Term Sheet File [Roles] [Controlled Objects]",
        "description": "<p>Replaces an existing term sheet revision file with a new one.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Term Sheet Sheet [Roles] [Controlled Objects]",
        "description": "<p>Gets a specific term sheet by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet and it's child records (fees and collateral) by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Term Sheet Revision [Roles] [Controlled Objects]",
        "description": "<p>Gets specific revision by term sheet and all detail.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Revision [Roles] [Controlled Objects]",
        "description": "<p>Will update the data room term sheet revision.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Revision [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet revision and it's child records (fees and collateral) by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/GetBankRateHistoricalValue": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Historical Bank Rate [Roles]",
        "description": "<p>Gets the historical bank rate value for a revision by type.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "revisionGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankRateType",
            "in": "query",
            "schema": {
              "enum": [
                "Other",
                "Libor30Day",
                "Libor60Day",
                "Libor90Day",
                "Prime",
                "Treasury",
                "Sofr"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double",
                  "nullable": true
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/DealMatchingParams": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Term Sheet Facility Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets the deal matching params information for a specific term sheet facility guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingParamsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}/Fees": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Term Sheet Facility Fees [Roles] [Controlled Objects]",
        "description": "<p>Gets a list of all fees for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet Facility Fee [Roles] [Controlled Objects]",
        "description": "<p>Adds fee for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}/Fees/{feeGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Facility Fee [Roles] [Controlled Objects]",
        "description": "<p>Updtes fee for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "feeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Facility Fee [Roles] [Controlled Objects]",
        "description": "<p>Deletes a fee for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "feeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}/Collateral": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Get Term Sheet Facility Collateral [Roles] [Controlled Objects]",
        "description": "<p>Gets a list of all collateral for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet Facility Collateral [Roles] [Controlled Objects]",
        "description": "<p>Adds collateral for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}/Collateral/{collateralGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Facility Collateral [Roles] [Controlled Objects]",
        "description": "<p>Updtes collateral for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "collateralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Facility Collateral [Roles] [Controlled Objects]",
        "description": "<p>Deletes a collateral for a specific data room term sheet facility.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "collateralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Sheet Facility [Roles] [Controlled Objects]",
        "description": "<p>Will add a new term sheet facility to the provided sheet revision by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Sheet Facility [Roles] [Controlled Objects]",
        "description": "<p>Will update the details of a sheet revision facility by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Facility [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet facility and it's child records (fees and collateral) by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Facility/{facilityGuid}/PainPoint": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Facility Pain Point [Roles] [Controlled Objects]",
        "description": "<p>Adds a pain point object to a term sheet facility record, defaults to inactive and copies financial data from deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Covenant": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet Revision Covenant [Roles] [Controlled Objects]",
        "description": "<p>Will create a new term sheet financial covenant record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialCovenantDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Covenant/{covenantGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Revision Covenant [Roles] [Controlled Objects]",
        "description": "<p>Will update the details of an existing term sheet financial covenant record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialCovenantDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Revision Covenant [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet covenant record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "covenantGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Reporting": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet Revision Reporting [Roles] [Controlled Objects]",
        "description": "<p>Will create a new term sheet revision reporting record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialReportingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Reporting/{reportingGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Revision Reporting [Roles] [Controlled Objects]",
        "description": "<p>Will update the details of an existing term sheet revision reporting record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportingGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialReportingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Revision Reporting [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet reporting record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportingGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Conditions": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Add Term Sheet Revision Condition [Roles] [Controlled Objects]",
        "description": "<p>Will create a new term sheet revision condition record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TermSheets/{termSheetGuid}/Revisions/{revisionGuid}/Conditions/{conditionGuid}": {
      "patch": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Update Term Sheet Revision Condition [Roles] [Controlled Objects]",
        "description": "<p>Will update the details of an existing term sheet revision condition record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conditionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Delete Term Sheet Revision Condition [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet condition record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conditionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/ThirdPartyContacts": {
      "get": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Get list of third party contacts for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomContactDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/BorrowerContacts": {
      "get": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Get list of borrower contacts for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomContactDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Creates a new company contact and adds them to the data room as a borrower contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomContactDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomContactDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomContactDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/BorrowerContacts/{companyContactGuid}/Associate": {
      "post": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Adds an existing company contact to a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/BorrowerContacts/{companyContactDataRoomGuid}": {
      "patch": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Updates data room company contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyContactDataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomContactDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomContactDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomContactDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/BorrowerContacts/Task": {
      "post": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Creates data room task for company contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CreateDataRoomTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/BorrowerContacts/{personId}/SendAccountInfo": {
      "post": {
        "tags": [
          "Data Room Contacts",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p> Sends platform invite to company contact from data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{userGuid}": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Get list of lenders and their team members for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomUserDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Get list of lenders and their team members for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomUserDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/Active": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Get list of active lenders for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/Grant": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Accepts Deal Bank [Roles]",
        "description": "<p>Will grant access to an inactive data room user.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}": {
      "delete": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Deletes Data Room Users [Roles]",
        "description": "<p>Will delete a specific data room user from the data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TeamMembers": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Team Members [Roles]",
        "description": "<p>Will get all team members for a data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociatedTeamMemberDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TeamMembers/{teamMemberGuid}": {
      "delete": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Deletes Team Member Access [Roles]",
        "description": "<p>Will delete a specific team member from the data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/TeamMembers/{teamMemberGuid}/AssociatedContact": {
      "delete": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Deletes Associated Team Member Access [Roles]",
        "description": "<p>Will delete a specific data room user team member from the data room by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Users/{userGuid}": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Get Data Room User [Roles]",
        "description": "<p></p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "forceParent",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/Notes": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Gets all the data room notes for a specific lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users Notes [Roles]",
        "description": "<p>Will add a data room user note to the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomNoteDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomNoteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddDataRoomNoteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/TeamMembers/Available": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Team Members [Roles]",
        "description": "<p>Gets a list of team members available to be added to a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TeamMemberDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{userGuid}/TeamMember": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Users [Roles]",
        "description": "<p>Gets a single team member for a data room user.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeamMemberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/TeamMembers/{teamMemberGuid}/Associate": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Associate Team Member [Roles]",
        "description": "<p>Will associate an existing team member for a bank contact with a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sendInvite",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociatedTeamMemberDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/TeamMembers/{bankContactGuid}/AssociateContact": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Associate Contact Team Member [Roles]",
        "description": "<p>Will associate an existing bank contact for a bank contact with a data room as a data room user.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sendInvite",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociatedTeamMemberDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/TeamMembers": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Add Team Member [Roles]",
        "description": "<p>Will create a new team member and add them to the data room for the bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddTeamMemberDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddTeamMemberDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddTeamMemberDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/OptOut": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Lender Opt Out [Roles]",
        "description": "<p>Opts out an active data room user and processes associated milestones.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomUserOptOutDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomUserOptOutDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomUserOptOutDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/OptOut/Details": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Lender Opt Out Details [Roles]",
        "description": "<p>Returns the opt out details of a lender from a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.OptOutDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Lenders/{dataRoomUserGuid}/Nda": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Upload Lender NDA File [Roles] [Controlled Objects]",
        "description": "<p>Uploads a PDF document to the data room user and saves in S3.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Lenders/{dataRoomUserGuid}/Nda/Download": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Downloads User NDA File [Roles] [Controlled Objects]",
        "description": "<p>Returns the bytes of a data room user NDA file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/Email": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Get Lender Emails [Roles]",
        "description": "<p>Gets all data room emails sent to a specific lender by data room user guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomEmailDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Send Lender Email [Roles]",
        "description": "<p>Sends email subject and body to specific lender in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomEmailDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/Email": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Send Lender Email [Roles]",
        "description": "<p>Sends email subject and body to specific lender(s) in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendLenderEmailDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendLenderEmailDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendLenderEmailDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomEmailDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Lenders/{dataRoomUserGuid}/Invite": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Invite Lender Details [Roles]",
        "description": "<p>Gets the subject and email body for sending a data room invite to a lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Send Lender Invite [Roles]",
        "description": "<p>Sends a lender invitation email for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/TeamMembers/{teamMemberGuid}/Invite": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Invite Team Member Details [Roles]",
        "description": "<p>Gets the subject and email body for sending a data room invite to a team member.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Send Team Member Invite [Roles]",
        "description": "<p>Sends a team member invitation email for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SendInviteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/PartnerContacts": {
      "get": {
        "tags": [
          "Data Room Users",
          "Data Rooms",
          "Deal Partners"
        ],
        "summary": "Gets Deal Partner Contacts [Roles]",
        "description": "<p>Get a list of Deal Partner Contacts associated with a Data Room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Partners"
        ],
        "summary": "Get Deal Partner Contacts [Roles] [Controlled Objects]",
        "description": "Creates a new deal partner contact.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.CreateDealPartnerContactDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.CreateDealPartnerContactDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.CreateDealPartnerContactDto"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/PartnerContacts/{partnerContactGuid}/Invite": {
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms",
          "Deal Partners"
        ],
        "summary": "Gets Deal Partner Contacts [Roles]",
        "description": "<p>Invite Deal Partner Contact to Data Room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partnerContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/PartnerContacts/{dealPartnerContactGuid}/Associate": {
      "delete": {
        "tags": [
          "Deal Partners"
        ],
        "summary": "Remove Deal Partner Contact Data Room Access [Roles] [Controlled Objects]",
        "description": "Remove deal partner contact data room access.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ActionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Users",
          "Data Rooms",
          "Deal Partners"
        ],
        "summary": "Remove Deal Partner Contact Data Room Access [Roles] [Controlled Objects]",
        "description": "Associate Deal Partner Contact to Data Room.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ActionResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/Lenders/{dataRoomUserGuid}/BankDealProfile": {
      "get": {
        "tags": [
          "Bank Deal Profile",
          "Data Room Users",
          "Data Rooms"
        ],
        "summary": "Get Bank Deal Profile [Roles]",
        "description": "<p>Gets bank deal profile data room user.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.BankDealProfileDisplayDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Get [Roles] [Controlled Objects]",
        "description": "<p>Look up a data room entity by it's Guid</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Update [Roles] [Controlled Objects]",
        "description": "<p>Partially updates a data room. Only the provided values will be updated on the data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/OtherActiveDeals": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Other Active Deals [Roles] [Controlled Objects]",
        "description": "<p>Based on the data room, will return all other active deals/data rooms for the company on the provided room guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/CopyDocuments": {
      "post": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Copy Documents [Roles] [Controlled Objects]",
        "description": "<p>Will copy data room documents and folders from the source to the posted destination data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.CopyDocumentDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LoanApplication": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Loan Application [Roles]",
        "description": "<p>Gets loan application summary for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomLoanApplicationDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Summary": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Get Data Room Summary [Roles] [Controlled Objects]",
        "description": "<p>Get the data room summary information by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LenderInvites": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Get Lender Invites [Roles] [Controlled Objects]",
        "description": "<p>Gets all raw lead interest records for a given data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderInviteViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{dataRoomGuid}/LenderInvites": {
      "post": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Creates Raw Lead Interests [Roles]",
        "description": "<p>Get the list of lenders that match deal and create raw lead interest records and send lender email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers": {
      "get": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Get Data Room Teasers [Roles] [Controlled Objects]",
        "description": "<p>Gets all teasers for a given data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TeaserViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/AddMatched": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Add Matched Lender Teasers By Tranche [Roles] [Controlled Objects]",
        "description": "<p>Adds matched teasers to data room by tranche that are not already part of the room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddMatchedLenderTeasersDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddMatchedLenderTeasersDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AddMatchedLenderTeasersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}": {
      "get": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Get a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Gets a data room teaser by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Updates a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Updates the details of a data room teaser.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomTeaserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomTeaserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomTeaserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Deletes a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Removes teaser from a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}/Ignore": {
      "patch": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Ignore a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Will update a data room teaser to be ignored from sending when launching a deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}/IntroEmail": {
      "patch": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Send a Data Room Teaser Intro Email [Roles] [Controlled Objects]",
        "description": "<p>Will send an introductory email for a data room teaser for DirectConnect/Direct Intro deals.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/TeaserPreview": {
      "get": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Gets Data Room Teaser Preview Data [Roles] [Controlled Objects]",
        "description": "<p>Returns the teaser email preview elements</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserPreviewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/TeaserFiles": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Data Room Teaser Files [Roles] [Controlled Objects]",
        "description": "<p>Returns the data room teaser files.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserFileDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/TeaserFiles/{fileGuid}": {
      "get": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Downloads Data Room Teaser File [Roles] [Controlled Objects]",
        "description": "<p>Returns the bytes of a data room teaser file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Deletes a Data Room Teaser File [Roles] [Controlled Objects]",
        "description": "<p>Deletes a data room teaser file.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/TeaserFiles/Upload": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Uploads Data Room Teaser Files [Roles] [Controlled Objects]",
        "description": "<p>Uploads a teaser file</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserFileDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}/Reset": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Resets a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Resets a teaser in a data room</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}/ReferralLanguage": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Toggle Teaser Referral Language [Roles] [Controlled Objects]",
        "description": "<p>Toggles the data room teaser referral language to be included or excluded.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/{teaserGuid}/Send": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Sends a Data Room Teaser [Roles] [Controlled Objects]",
        "description": "<p>Sends or resends a data room teaser.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/SendMany": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Sends multiple Data Room Teasers [Roles] [Controlled Objects]",
        "description": "<p>Sends or resends multiple data room teasers.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/DeleteMany": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Deletes multiple Data Room Teasers [Roles] [Controlled Objects]",
        "description": "Will deleted all selected teasers that have not yet been sent.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/IgnoreAtLaunchMany": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Ignore multiple Data Room Teasers [Roles] [Controlled Objects]",
        "description": "Will ignore all selected teasers that have not yet been sent at launch.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Teasers/IncludeAtLaunchMany": {
      "post": {
        "tags": [
          "Data Room Teasers",
          "Data Rooms"
        ],
        "summary": "Include multiple Data Room Teasers [Roles] [Controlled Objects]",
        "description": "Will include all selected teasers that have not yet been sent at launch.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Users/Active": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Active Data Room Users [Roles]",
        "description": "<p>Gets a list of active data room lender users.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Milestones": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Data Room Milestone Report [Roles]",
        "description": "<p>Gets list of data room users and all their associated milestone information.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Milestones/{bankContactGuid}": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Lender Milestone Report [Roles]",
        "description": "<p>Gets associated milestone information for a specific lender in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Milestones/DirectConnect": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Data Room Direct Connect Milestone Report [Roles]",
        "description": "<p>Gets list of data room users and all their associated direct connect milestone information.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DirectConnectMilestoneReportDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Milestones/DirectConnect/{bankContactGuid}": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Lender Direct Connect Milestone Report [Roles]",
        "description": "<p>Gets associated direct connect milestone information for a specific lender in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DirectConnectMilestoneReportDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Update Lender Direct Connect Milestone [Roles]",
        "description": "<p>Marks a direct connect milestone stage as completed for a lender in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDirectConnectMilestoneDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDirectConnectMilestoneDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateDirectConnectMilestoneDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Set Lender Direct Connect Milestone [Roles]",
        "description": "<p>Allows an employee to check or uncheck a direct connect milestone stage for an active lender in a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SetDirectConnectMilestoneDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SetDirectConnectMilestoneDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SetDirectConnectMilestoneDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Milestones/DirectConnect/{bankContactGuid}/ContactBorrower": {
      "post": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Contact Borrower [Roles]",
        "description": "<p>Sends an email from a direct connect lender to all active borrower contacts on the deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ContactBorrowerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ContactBorrowerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ContactBorrowerDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/ActivityLogs": {
      "post": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Paged Activity Log [Roles] [Controlled Objects]",
        "description": "<p>Gets a paged list of data room activity stats along with paging data.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SearchPagedActivityLog"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SearchPagedActivityLog"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SearchPagedActivityLog"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/CreateDataRoomAccessedLog": {
      "post": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Gets Paged Activity Log [Roles] [Controlled Objects]",
        "description": "<p>Creates an activity log for a user accessing the data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/Confirmations": {
      "get": {
        "tags": [
          "Data Rooms"
        ],
        "summary": "Get Data Room Confirmation [Roles] [Controlled Objects]",
        "description": "<p>Gets data for data room to make confirmation for teasers and deal launch by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomConfirmationDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Confirm Teasers [Roles] [Controlled Objects]",
        "description": "<p>Confirms all unsent teasers for a data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LaunchDeal": {
      "post": {
        "tags": [
          "Data Room Term Sheets",
          "Data Rooms"
        ],
        "summary": "Launch Deal [Roles] [Controlled Objects]",
        "description": "<p>Will activate a deal, open the data room, send any unsent teasers, and send the deal launched email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DealLaunchStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DealLaunchStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DealLaunchStatusDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/ActiveLenderSummaryReport": {
      "get": {
        "tags": [
          "Data Rooms",
          "Lender Summary Report"
        ],
        "summary": "Active Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Gets list of all active lenders with last completed note and milestone.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderSummaryReportDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/ActiveLenderSummaryReport/Download": {
      "get": {
        "tags": [
          "Data Rooms",
          "Lender Summary Report"
        ],
        "summary": "Download Active Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Download the active lender feedback summary report PDF file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LenderSummaryReport": {
      "get": {
        "tags": [
          "Data Rooms",
          "Lender Summary Report"
        ],
        "summary": "Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Gets list of all opted out lenders along with deal detail summary for report view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomLenderSummaryReportDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Rooms",
          "Lender Summary Report"
        ],
        "summary": "Update Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Updates an individual lender report summary item, will create the record if it does not exist.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportItemDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LenderSummaryReport/Download": {
      "get": {
        "tags": [
          "Data Rooms",
          "Lender Summary Report"
        ],
        "summary": "Download Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Download the lender feedback summary report PDF file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DataRooms/{guid}/LenderStatusBar": {
      "get": {
        "tags": [
          "Data Rooms",
          "Lenders"
        ],
        "summary": "Get Lender Status Bar [Roles]",
        "description": "Pulls details for the lender status bar used in data rooms by team members and bank contacts.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomLenderStatusBarDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Snapshot": {
      "get": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Get Deal Snapshot [Roles] [Scopes]",
        "description": "Gets everything the deal agent reads about one deal in one call: the deal, its owner and secondary owner, every lender in the data room (access, opt-out, milestones, teaser, calls, diligence requests, the latest email sent to it) and the term sheets. All values are raw platform facts.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>DealAgentRead</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentSnapshotDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Lenders/{dataRoomUserGuid}/Notes": {
      "get": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Get Lender Notes [Roles] [Scopes]",
        "description": "Gets the notes the deal team wrote about one lender of a deal, newest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>DealAgentRead</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataRoomUserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentNoteDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/DeclineReasons": {
      "get": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Get Decline Reasons [Roles] [Scopes]",
        "description": "Gets the active lender decline reasons, the values the agent maps a lender's reply to when it proposes an opt-out.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>DealAgentRead</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentDeclineReasonDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/BorrowerContacts": {
      "get": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Get Borrower Contacts [Roles] [Scopes]",
        "description": "Gets the borrower's contacts in the data room of a deal, with their access: who the agent may write to when a lender is waiting on the borrower.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>DealAgentRead</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentBorrowerContactDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Lenders/Match": {
      "post": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Match Lenders By Email [Roles] [Scopes]",
        "description": "Finds the lenders that have a contact with any of the given email addresses (up to 100), in the deals the agent monitors. Used to tie a HubSpot email or note to a deal and a lender. A POST only because the addresses stay out of the URL; it changes nothing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>DealAgentRead</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/RunNow": {
      "post": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Run Deal Agent Now [Roles] [Controlled Objects]",
        "description": "Asks the deal agent to run for one deal now, ahead of its next scheduled check. Answers 202 when the run is queued, or when a run is already in progress and the deal will run again when it finishes. 409 when the agent is disabled or paused for the deal, or does not work on the deal's status.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentRunNowDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Tasks": {
      "get": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "List Deal Agent Tasks [Roles] [Controlled Objects]",
        "description": "Lists the deal agent's drafts and tasks for the deal: open ones first, the highest risk first. With includeHandled also those sent, rejected, expired or failed in the last 30 days.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeHandled",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTasksDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Tasks/{taskGuid}": {
      "patch": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Edit Deal Agent Draft [Roles] [Controlled Objects]",
        "description": "Edits the subject and the message of a drafted email before it is sent. The recipient and the sender cannot be changed. 409 when the draft was already sent, rejected or has expired.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.EditAgentDraftDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.EditAgentDraftDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.EditAgentDraftDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskProblemDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Tasks/{taskGuid}/Reject": {
      "post": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Reject Deal Agent Task [Roles] [Controlled Objects]",
        "description": "Turns a draft or a task down, with an optional reason. Nothing is sent.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.RejectAgentTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.RejectAgentTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.RejectAgentTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskProblemDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealAgent/Deals/{dealGuid}/Tasks/{taskGuid}/Approve": {
      "post": {
        "tags": [
          "Deal Agent"
        ],
        "summary": "Approve Deal Agent Task [Roles] [Controlled Objects]",
        "description": "Approves a task. A drafted email is sent now as the approving user to the lender's contact on record, after checking that it has not expired, the lender has not written again and nobody has emailed the lender since. 409 with a code and the reason when it cannot be sent, 502 when the mail service failed (nothing was sent, it can be tried again). A notification task is only acknowledged.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.ApprovedAgentTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskProblemDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskProblemDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/DebtSchedules": {
      "get": {
        "tags": [
          "Deal Debt Schedules",
          "Loan Applications"
        ],
        "summary": "Gets the Debt Schedule Items for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets all debt schedule items for a given deal as DealDebtScheduleDtos.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Debt Schedules",
          "Loan Applications"
        ],
        "summary": "Creates a Debt Schedule Item for a deal [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Get a specific debt schedule item for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealDebtScheduleDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealDebtScheduleDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealDebtScheduleDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/DebtSchedules/{guid}": {
      "get": {
        "tags": [
          "Deal Debt Schedules",
          "Loan Applications"
        ],
        "summary": "Gets a Debt Schedule Item [Roles] [Controlled Objects]",
        "description": "<p>Get a specific debt schedule item for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deal Debt Schedules",
          "Loan Applications"
        ],
        "summary": "Updates a Debt Schedule Item [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Partially updates a DealDebtSchedule object.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDebtScheduleDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDebtScheduleDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDebtScheduleDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Debt Schedules",
          "Loan Applications"
        ],
        "summary": "Deletes a Deal Debt Schedule [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Deletes a DealDebtSchedule</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExcludedLenders": {
      "get": {
        "tags": [
          "Deal Excluded Lenders",
          "Loan Applications"
        ],
        "summary": "Get Excluded Lenders [Roles] [Controlled Objects]",
        "description": "<p>Gets the lenders that are excluded from a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Excluded Lenders",
          "Loan Applications"
        ],
        "summary": "Add Excluded Lender [Roles] [Controlled Objects]",
        "description": "<p>Excludes a lender from a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealExcludedLenderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealExcludedLenderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealExcludedLenderDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExcludedLenders/{excludedLenderGuid}": {
      "patch": {
        "tags": [
          "Deal Excluded Lenders",
          "Loan Applications"
        ],
        "summary": "Update Excluded Lender [Roles] [Controlled Objects]",
        "description": "<p>Update the exclusion of a lender for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "excludedLenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealExcludedLenderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealExcludedLenderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealExcludedLenderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Excluded Lenders",
          "Loan Applications"
        ],
        "summary": "Delete Excluded Lender [Roles] [Controlled Objects]",
        "description": "<p>Removes the exclusion of a lender from a given deal. Allowing them to be included it in once more.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "excludedLenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Metrics": {
      "get": {
        "tags": [
          "Deal Financial Metrics",
          "Loan Applications"
        ],
        "summary": "Get Metrics for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets all Financial Metrics a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "analysisMetricType",
            "in": "query",
            "schema": {
              "enum": [
                "Borrower",
                "Acquisition"
              ],
              "type": "string"
            }
          },
          {
            "name": "metricTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "Mrr",
                  "TotalRevenue",
                  "NetIncome",
                  "Ebitda",
                  "Adjustments",
                  "AdjustedEbitda",
                  "Cash",
                  "Marketables",
                  "AccountsReceivables",
                  "Inventory",
                  "Equipment",
                  "RealEstate",
                  "FurnitureFixture",
                  "Vehicles",
                  "MarineVessels",
                  "Helicopters",
                  "FixedWingAircraft",
                  "IntellectualProperty",
                  "Royalties",
                  "NetEquity"
                ],
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deal Financial Metrics",
          "Loan Applications"
        ],
        "summary": "Update Metrics [Roles] [Controlled Objects]",
        "description": "<p>Partially update a Financial Metric.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Metrics/{guid}": {
      "get": {
        "tags": [
          "Deal Financial Metrics",
          "Loan Applications"
        ],
        "summary": "Get Metric [Roles] [Controlled Objects]",
        "description": "<p>Get a Financial Metric.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deal Financial Metrics",
          "Loan Applications"
        ],
        "summary": "Update Metric [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Partially update a Financial Metric.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealPartners": {
      "get": {
        "tags": [
          "Deal Partners",
          "Lookups"
        ],
        "summary": "Get Deal Partners [Roles] [Controlled Objects]",
        "description": "Searches Cerebro deal partners.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DealPartners/{dealPartnerGuid}/Contacts": {
      "get": {
        "tags": [
          "Deal Partners"
        ],
        "summary": "Get Deal Partner Contacts [Roles] [Controlled Objects]",
        "description": "Get deal partners contacts by deal partner guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ProductSubscriptions/{subscriptionGuid}/CreateInvoice": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Subscription Deal Invoice [Roles]",
        "description": "Will create a deal subscription invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ProductSubscriptions/{subscriptionGuid}/CreateRecurringComplianceNavigatorInvoice": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Recurring Compliance Navigator Subscription Invoice [Roles]",
        "description": "Will create a recurring product subscription invoice for a compliance navigator product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ProductSubscriptions/{subscriptionGuid}/CreateRecurringCreditExporerInvoice": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Recurring Credit Explorer Subscription Invoice [Roles]",
        "description": "Will create a recurring product subscription invoice for a credit explorer product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Subscriptions": {
      "get": {
        "tags": [
          "Deals",
          "Invoices"
        ],
        "summary": "Get Deal Subscriptions [Roles]",
        "description": "Gets all subscriptions for a deal by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Deal Subscription [Roles]",
        "description": "Will create a subscription for a deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ProductGuid": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "encoding": {
                "ProductGuid": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}": {
      "patch": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Update Deal Subscription [Roles]",
        "description": "Updates the deal production subscription details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "SetupFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "CancellationFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "AutoRenewal": {
                    "type": "boolean"
                  },
                  "BasisPoints": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ReducedFeeLenderDiscountPercent": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "MinimumSuccessFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "SuccessFeeType": {
                    "enum": [
                      "None",
                      "Flat",
                      "Tiered"
                    ],
                    "type": "string"
                  },
                  "Term": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "Address1": {
                    "type": "string"
                  },
                  "City": {
                    "type": "string"
                  },
                  "State": {
                    "type": "string"
                  },
                  "PostalCode": {
                    "type": "string"
                  },
                  "FeesCredited": {
                    "type": "boolean"
                  },
                  "IncludeSbaExclusion": {
                    "type": "boolean"
                  },
                  "IncludePrimaryOperatingAccountsClause": {
                    "type": "boolean"
                  },
                  "IncludeConfessionOfJudgment": {
                    "type": "boolean"
                  },
                  "TreasuryFeeAmount": {
                    "type": "number",
                    "format": "double"
                  },
                  "SuccessFeeCap": {
                    "type": "number",
                    "format": "double"
                  },
                  "ExcludedLendersCount": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ReducedFeeLendersCount": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "PlatformAccessPaymentSchedule": {
                    "enum": [
                      "Now",
                      "Net7",
                      "Net15",
                      "Net30",
                      "Net60",
                      "Custom"
                    ],
                    "type": "string"
                  },
                  "SuccessFeePaymentSchedule": {
                    "enum": [
                      "Now",
                      "Net7",
                      "Net15",
                      "Net30",
                      "Net60",
                      "Custom"
                    ],
                    "type": "string"
                  },
                  "TailPeriodMonths": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "encoding": {
                "SetupFee": {
                  "style": "form"
                },
                "CancellationFee": {
                  "style": "form"
                },
                "AutoRenewal": {
                  "style": "form"
                },
                "BasisPoints": {
                  "style": "form"
                },
                "ReducedFeeLenderDiscountPercent": {
                  "style": "form"
                },
                "MinimumSuccessFee": {
                  "style": "form"
                },
                "SuccessFeeType": {
                  "style": "form"
                },
                "Term": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "Address1": {
                  "style": "form"
                },
                "City": {
                  "style": "form"
                },
                "State": {
                  "style": "form"
                },
                "PostalCode": {
                  "style": "form"
                },
                "FeesCredited": {
                  "style": "form"
                },
                "IncludeSbaExclusion": {
                  "style": "form"
                },
                "IncludePrimaryOperatingAccountsClause": {
                  "style": "form"
                },
                "IncludeConfessionOfJudgment": {
                  "style": "form"
                },
                "TreasuryFeeAmount": {
                  "style": "form"
                },
                "SuccessFeeCap": {
                  "style": "form"
                },
                "ExcludedLendersCount": {
                  "style": "form"
                },
                "ReducedFeeLendersCount": {
                  "style": "form"
                },
                "PlatformAccessPaymentSchedule": {
                  "style": "form"
                },
                "SuccessFeePaymentSchedule": {
                  "style": "form"
                },
                "TailPeriodMonths": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Delete Deal Subscription [Roles]",
        "description": "Will delete the deal subscription and any child records as long as there are no invoice payments.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Contract/Generate": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Generate Deal Product Subscription Contract PDF [Roles] [Scopes]",
        "description": "Generates a product subscription contract pdf document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>GenerateSubscriptionContractPdfs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/CreateSuccessFeeInvoice": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals",
          "Invoices"
        ],
        "summary": "Create Success Fee Invoice [Roles]",
        "description": "Will generate a success fee invoice for a deal based on date and amount funded provided by employee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateSuccessFeeInvoiceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateSuccessFeeInvoiceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateSuccessFeeInvoiceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/ChangeProduct": {
      "patch": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Update Deal Subscription Product [Roles]",
        "description": "Updates the deal production subscription product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ChangeDealSubscriptionProductDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ChangeDealSubscriptionProductDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ChangeDealSubscriptionProductDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Agreement": {
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Upload Product Subscription Agreement [Roles]",
        "description": "Will upload the company subscription agreement and update the record.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "SignedOn": {
                    "type": "string",
                    "format": "date"
                  },
                  "SignedBy": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "SignedOn": {
                  "style": "form"
                },
                "SignedBy": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Download": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Download Product Subscription File [Roles]",
        "description": "Will return the product subscription agreement document for download<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Contract/Download": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Download Product Subscription Contract File [Roles]",
        "description": "Will return the product subscription contract document for download<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeSignature",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/SuccessFeeTiers": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Get Deal Subscription Success Fee Tiers [Roles]",
        "description": "Returns all product subscription success fee tier for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessFeeTierDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Deal Subscription Success Fee Tier [Roles]",
        "description": "Will create a product subscription success fee tier for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/SuccessFeeTiers/{tierGuid}": {
      "patch": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Update Deal Subscription Success Fee Tier [Roles]",
        "description": "Will update a product subscription success fee tier for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Delete Subscription Success Fee Tier [Roles]",
        "description": "Will delete a product subscription success fee tier.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/PaymentTerms": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Get Deal Subscription Payment Terms [Roles]",
        "description": "Returns all product subscription payment terms for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Create Deal Subscription Payment Term [Roles]",
        "description": "Will create a product subscription payment term for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/PaymentTerms/{paymentTermGuid}": {
      "patch": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Update Deal Subscription Payment Term [Roles]",
        "description": "Will update a product subscription payment term for a deal subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentTermGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Delete Subscription Payment Term [Roles]",
        "description": "Will delete a product subscription payment term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentTermGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Contract/SendForSigning": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals",
          "Document E-Sign"
        ],
        "summary": "Send Contract For E-Sign [Roles]",
        "description": "Sends Contract For E-Signing<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.SendContractDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Cancel": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Cancel Company Subscription Contract [Roles]",
        "description": "Cancels pending E-Sign document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Agreement/{agreementId}/Reminders": {
      "patch": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Update Company Subscription Contract Reminder [Roles]",
        "description": "Updates (active) E-Sign document reminder frequency.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/Contract/{agreementId}/Status": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals",
          "Document E-Sign"
        ],
        "summary": "Agreement Status [Roles]",
        "description": "Check current status of an agreement out for signing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Subscriptions/{subscriptionGuid}/UploadContract": {
      "post": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Upload Subscription Contract [Roles]",
        "description": "Uploads a modified company subscription contract.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/QuestionAnswers": {
      "get": {
        "tags": [
          "Deal Question Answers",
          "Loan Applications"
        ],
        "summary": "Get Deal Question Answers [Roles]",
        "description": "<p>Get the answers to the loan application questions for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "description": "A guid identifying the deal to get the answers to.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealQuestionAnswerDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Question Answers",
          "Loan Applications"
        ],
        "summary": "Save Deal Question Answers [Roles]",
        "description": "<p>Saves a collection of question answers for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "description": "A guid identifying the deal to save the answers for.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SaveDealQuestionAnswerDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SaveDealQuestionAnswerDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SaveDealQuestionAnswerDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealQuestionAnswerDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Web.CerebroNotFound"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ReducedFeeLenders": {
      "get": {
        "tags": [
          "Deal Reduced Fee Lenders",
          "Loan Applications"
        ],
        "summary": "Get Reduced Fee Lenders [Roles] [Controlled Objects]",
        "description": "<p>Gets the lenders that are reduced fee on a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealReducedFeeLenderDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Reduced Fee Lenders",
          "Loan Applications"
        ],
        "summary": "Add Reduced Fee Lender [Roles] [Controlled Objects]",
        "description": "<p>Add reduced fee lender to a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealReducedFeeLenderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealReducedFeeLenderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealReducedFeeLenderDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealReducedFeeLenderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ReducedFeeLenders/{lenderGuid}": {
      "delete": {
        "tags": [
          "Deal Excluded Lenders",
          "Loan Applications"
        ],
        "summary": "Delete Reduced Fee Lender [Roles] [Controlled Objects]",
        "description": "<p>Removes the exclusion of a lender from a given deal. Allowing them to be included it in once more.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Allocation": {
      "get": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Gets the Request Allocation Information for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets a DealRequestAllocationDto for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Update the Request Allocation Information for a Deal [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Partially updates a DealRequestAllocation object.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Allocation/LoanOptions": {
      "patch": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Update the Deal Loan Options [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Updates the DealRequestAllocation and DealMatchingLoanOptions based on Preferences page.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Allocation/RealEstates": {
      "get": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Get All Allocation Real Estates for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets all of the DealRequestAllocationRealEstateDtos for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationRealEstateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Creates a new Request Allocation Real Estate for a Deal [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Creates a DealRequestAllocationRealEstate for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealRequestAllocationRealEstateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealRequestAllocationRealEstateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateDealRequestAllocationRealEstateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationRealEstateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Allocation/RealEstates/{guid}": {
      "patch": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Update Request Allocation Real Estate [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Creates a DealRequestAllocationRealEstate for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationRealEstateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationRealEstateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationRealEstateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationRealEstateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Request Allocations",
          "Loan Applications"
        ],
        "summary": "Delete Request Allocation Real Estate [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Creates a DealRequestAllocationRealEstate for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments": {
      "get": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Get Deal Required Documents [Roles]",
        "description": "<p>Gets the collection of required documents for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "description": "A guid identifying the deal to get the documents for.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Creates a required document for a deal [Roles] [Controlled Objects]",
        "description": "<p>Creates a required document for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateRequiredDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateRequiredDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateRequiredDocumentDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/Reorder": {
      "post": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Re-Order Required Documents [Roles]",
        "description": "<p>Re-orders the required documents for a specific deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/RequiredDocuments/Templates": {
      "get": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Get Required Document Templates [Roles] [Controlled Objects]",
        "description": "<p>Gets the collection of required document templates.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTemplateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{guid}": {
      "get": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Gets a RequriedDocument [Roles] [Controlled Objects]",
        "description": "<p>Get a specific required document for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Deletes a Required Document [Roles] [Controlled Objects]",
        "description": "<p>Deletes a LoanApplicationTask</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Updates a Required Document [Roles] [Controlled Objects]",
        "description": "<p>Partially updates a required document .</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateLoanApplicationTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateLoanApplicationTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateLoanApplicationTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{guid}/TemplateDownload": {
      "get": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Download RequriedDocument Template [Roles] [Controlled Objects]",
        "description": "<p>Get a specific required document for a given deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{documentGuid}/Files/{fileGuid}": {
      "get": {
        "tags": [
          "Deal Required Documents"
        ],
        "summary": "Gets a required document file. [Roles]",
        "description": "<p>Gets S3 File for a required document record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deal Required Documents"
        ],
        "summary": "Delete a required document file. [Roles]",
        "description": "<p>Gets S3 File for a required document record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{guid}/TemplateFile": {
      "post": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Uploads Required Document Example Template File [Roles] [Controlled Objects]",
        "description": "<p>Uploads a example template file for the loan application task document.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{guid}/Files": {
      "post": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Uploads Required Document Files [Roles] [Controlled Objects]",
        "description": "<p>Uploads a collection of LoanApplicationTaskDocument objects.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/RequiredDocuments/{guid}/Edit": {
      "patch": {
        "tags": [
          "Deal Required Documents",
          "Loan Applications"
        ],
        "summary": "Edit Required Document [Roles] [Controlled Objects]",
        "description": "<p>Updates a required document title and description.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.EditLoanApplicationTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.EditLoanApplicationTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.EditLoanApplicationTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Get [Roles] [Controlled Objects]",
        "description": "<p>Look up a deal entity by it's Guid</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Update [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Partially updates a deal. Only the provided values will be updated on the deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Delete [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "<p>Updates the deal to reflect a deleted state.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Related": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Get Related [Roles] [Controlled Objects]",
        "description": "<p>Will put a list up to 50 most recent deals related to deal by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SimilarDealReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Related/Report": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Create Related Deals Report [Roles] [Controlled Objects]",
        "description": "<p>Creates a report of related deals with term sheets for a deal by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.EntityExtensions.CreateSimilarDealTermSheetReportResult"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Related/Download": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Download Related Deals Report [Roles] [Controlled Objects]",
        "description": "<p>Downloads a PDF report of related deals with term sheets for a deal by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dto",
            "in": "header",
            "schema": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DownloadSimilarDealsDto"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Company": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Get Deal Company [Roles]",
        "description": "<p>Gets the company associated to a deal by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deals"
        ],
        "summary": "Update Deal Company [Roles]",
        "description": "<p>Updates a company associated to a deal by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.UpdateCompanyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Nda": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Get Deal NDA [Roles]",
        "description": "<p>Grabs all the available and current NDAs for a company deal, which would include parent company with subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.BorrowerNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a new NDA for a Company [Roles]",
        "description": "<p>Creates a CompanyNda for a given company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Nda/Upload": {
      "post": {
        "tags": [
          "Deals"
        ],
        "summary": "Uploads NDA for a Company Deal [Roles]",
        "description": "<p>Employee user action to upload signed NDA for company deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Uploads": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "CompanyGuid": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              },
              "encoding": {
                "Uploads": {
                  "style": "form"
                },
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "CompanyGuid": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Nda/{ndaGuid}/Associate": {
      "patch": {
        "tags": [
          "Deals"
        ],
        "summary": "Associate Deal NDA [Roles]",
        "description": "<p>Grabs all the available and current NDAs for a company deal, which would include parent company with subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/Nda/{ndaGuid}/Download": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Gets single company deal NDA's PDF file from S3. [Roles]",
        "description": "<p>Gets S3 File for a Company deal NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/SyncHubspot": {
      "post": {
        "tags": [
          "Companies",
          "Company Subscriptions"
        ],
        "summary": "Sync Deal with Hubspot [Roles] [Scopes]",
        "description": "Takes a deal object and calls the hubspot helper to sync the hubspot details.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>SyncWithHubspot</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/GetCompanySubscription": {
      "get": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Get Company Subscription [Roles]",
        "description": "Will get the company subscription for the deal based on the company subscription hubspot deal object.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/CreateCompanySubscription": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Create Company Subscription [Roles] [HubSpot Update]",
        "description": "Will create a company subscription and associate that company subscription to the deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateCompanySubscriptionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateCompanySubscriptionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.CreateCompanySubscriptionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/CompanySubscriptions/{subscriptionGuid}/Contract/Download": {
      "get": {
        "tags": [
          "Deal Product Subscriptions",
          "Deals"
        ],
        "summary": "Download Company Subscription Contract File [Roles]",
        "description": "Will return the company subscription contract document for download<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeSignature",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/AssociateCompanySubscription": {
      "post": {
        "tags": [
          "Company Subscriptions",
          "Deals"
        ],
        "summary": "Associate Company Subscription [Roles] [HubSpot Update]",
        "description": "Will associate a company subscription to a deal and generate a product subsciption.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AssociateCompanySubscriptionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AssociateCompanySubscriptionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AssociateCompanySubscriptionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/UpdateDealStatus": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Get Deal Status View [Roles] [Controlled Objects]",
        "description": "Gets data needed for update deal status part of the deal specifically.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealStatusViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Update Deal Status [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "Updates a deal for the update deal status part of the deal specifically.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateDealStatusDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealStatusViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/UpdateClosedFunded": {
      "patch": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Update Deal Funded Details [Roles] [Controlled Objects] [HubSpot Update]",
        "description": "Will update the closed funded details of a deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n<br/>\n<h3>HubSpot Objects</h3>\n<em>Change Type: Update</em>\n<p>The following HubSpot objects will be impacted as a result of this endpoint being called:</p>\n<ul>\n<li>Company</li>\n<li>Contact</li>\n<li>Deal</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateClosedFundedDealDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateClosedFundedDealDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.UpdateClosedFundedDealDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealStatusViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/SuccessStory": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Download Deal Success Story [Roles]",
        "description": "Generate and download success story PDF for a closed-funded deal<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deals"
        ],
        "summary": "Update Deal Success Story [Roles]",
        "description": "Save Deal Success Story details<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.UpdateDealSuccessStory+Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.UpdateDealSuccessStory+Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.UpdateDealSuccessStory+Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/GenerateDealSummary": {
      "post": {
        "tags": [
          "Deals"
        ],
        "summary": "Generate Deal Summary [Roles]",
        "description": "Regenerate AI Deal Summary text for a closed-funded deal<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.GenerateDealSummary+Response"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.GenerateDealSummary+Response"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.GenerateDealSummary+Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/FundingLenders": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Add Deal Funding Lender [Roles] [Controlled Objects]",
        "description": "Adds a funding lender to a deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/FundingLenders/{lenderGuid}": {
      "patch": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Update Deal Funding Lender [Roles] [Controlled Objects]",
        "description": "Updates the deals of a funding lender on a deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/StatusHistory": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Get Status History for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets the status update history for a specific deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealStatusStatDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Invoices": {
      "get": {
        "tags": [
          "Deals",
          "Invoices"
        ],
        "summary": "Get Deal Invoices [Roles]",
        "description": "Gets a list of company invoices by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealInvoiceDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Geographies": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Get Geographies for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Gets the geographies for a deal as StateDtos. By default the geographies will be for the borrower, use the metricType query parameter to control whether they are for the the borrower or acquisition.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricType",
            "in": "query",
            "schema": {
              "enum": [
                "Borrower",
                "Acquisition"
              ],
              "type": "string",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Deals",
          "Loan Applications"
        ],
        "summary": "Update Geographies for a Deal [Roles] [Controlled Objects]",
        "description": "<p>Updates the geographies for a deal as StateDtos. By default the geographies will be for the borrower, use the metricType query parameter to control whether they are for the the borrower or acquisition.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "metricType",
            "in": "query",
            "schema": {
              "enum": [
                "Borrower",
                "Acquisition"
              ],
              "type": "string",
              "default": "Borrower"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/LenderList": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Creates Data Room Teasers [Roles]",
        "description": "<p>Get the list of lenders that match a specific tranche and create data room teasers.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/LenderParticipant": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Creates Data Room Participants [Roles]",
        "description": "<p>Get the list of lenders that match a tranche and add them as participants in data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/PreMarketEmails": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Send Pre-Market Deal Emails [Roles]",
        "description": "<p>Pulls a list of lenders by guid and sends them emails about pre-market deals.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/Start": {
      "post": {
        "tags": [
          "Deals",
          "Loan Application Start",
          "Loan Applications"
        ],
        "summary": "Starts a loan application",
        "description": "Starts a new loan application.",
        "parameters": [
          {
            "name": "responseType",
            "in": "query",
            "schema": {
              "enum": [
                "Redirect",
                "Response"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "AcquiringBusiness",
                  "CompanyType",
                  "DebtCapitalForBusiness",
                  "EmailAddress",
                  "FinanceExpensesOrGrowth",
                  "FirstName",
                  "LastName",
                  "LoanAmount",
                  "OtherFinancingNeeds",
                  "PurchaseEquipment",
                  "PurchaseRealEstate",
                  "PurchaseWorkingCapital",
                  "RefinanceExistingDebt",
                  "SupplementalTermsAccepted"
                ],
                "type": "object",
                "properties": {
                  "utm_campaign": {
                    "type": "string"
                  },
                  "utm_id": {
                    "type": "string"
                  },
                  "utm_source": {
                    "type": "string"
                  },
                  "utm_medium": {
                    "type": "string"
                  },
                  "utm_term": {
                    "type": "string"
                  },
                  "utm_matchtype": {
                    "type": "string"
                  },
                  "utm_network": {
                    "type": "string"
                  },
                  "utm_creative": {
                    "type": "string"
                  },
                  "utm_content": {
                    "type": "string"
                  },
                  "FirstName": {
                    "type": "string"
                  },
                  "LastName": {
                    "type": "string"
                  },
                  "EmailAddress": {
                    "type": "string",
                    "format": "email"
                  },
                  "PhoneNumber": {
                    "type": "string",
                    "format": "tel"
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "CompanyType": {
                    "enum": [
                      "Corporation",
                      "Scorp",
                      "NonProfit",
                      "Other",
                      "LLC",
                      "Sole_Proprietor",
                      "Partnership",
                      "Unknown"
                    ],
                    "type": "string"
                  },
                  "LoanAmount": {
                    "type": "number",
                    "format": "double"
                  },
                  "SupplementalTermsAccepted": {
                    "type": "boolean"
                  },
                  "BankContactId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "LenderReferralId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "DealPartnerContactId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "AcquiringBusiness": {
                    "type": "boolean"
                  },
                  "OtherFinancingNeeds": {
                    "type": "boolean"
                  },
                  "RefinanceExistingDebt": {
                    "type": "boolean"
                  },
                  "PurchaseEquipment": {
                    "type": "boolean"
                  },
                  "PurchaseRealEstate": {
                    "type": "boolean"
                  },
                  "PurchaseWorkingCapital": {
                    "type": "boolean"
                  },
                  "FinanceExpensesOrGrowth": {
                    "type": "boolean"
                  },
                  "DebtCapitalForBusiness": {
                    "type": "boolean"
                  },
                  "StateCode": {
                    "type": "string"
                  },
                  "IndustryName": {
                    "type": "string"
                  },
                  "ExistingDebt": {
                    "type": "number",
                    "format": "double"
                  },
                  "AnnualRevenue": {
                    "type": "number",
                    "format": "double"
                  },
                  "Ebitda": {
                    "type": "number",
                    "format": "double"
                  },
                  "AccountsReceivable": {
                    "type": "number",
                    "format": "double"
                  },
                  "Inventory": {
                    "type": "number",
                    "format": "double"
                  },
                  "Equipment": {
                    "type": "number",
                    "format": "double"
                  },
                  "RealEstate": {
                    "type": "number",
                    "format": "double"
                  },
                  "Mrr": {
                    "type": "number",
                    "format": "double"
                  }
                }
              },
              "encoding": {
                "utm_campaign": {
                  "style": "form"
                },
                "utm_id": {
                  "style": "form"
                },
                "utm_source": {
                  "style": "form"
                },
                "utm_medium": {
                  "style": "form"
                },
                "utm_term": {
                  "style": "form"
                },
                "utm_matchtype": {
                  "style": "form"
                },
                "utm_network": {
                  "style": "form"
                },
                "utm_creative": {
                  "style": "form"
                },
                "utm_content": {
                  "style": "form"
                },
                "FirstName": {
                  "style": "form"
                },
                "LastName": {
                  "style": "form"
                },
                "EmailAddress": {
                  "style": "form"
                },
                "PhoneNumber": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "CompanyType": {
                  "style": "form"
                },
                "LoanAmount": {
                  "style": "form"
                },
                "SupplementalTermsAccepted": {
                  "style": "form"
                },
                "BankContactId": {
                  "style": "form"
                },
                "LenderReferralId": {
                  "style": "form"
                },
                "DealPartnerContactId": {
                  "style": "form"
                },
                "AcquiringBusiness": {
                  "style": "form"
                },
                "OtherFinancingNeeds": {
                  "style": "form"
                },
                "RefinanceExistingDebt": {
                  "style": "form"
                },
                "PurchaseEquipment": {
                  "style": "form"
                },
                "PurchaseRealEstate": {
                  "style": "form"
                },
                "PurchaseWorkingCapital": {
                  "style": "form"
                },
                "FinanceExpensesOrGrowth": {
                  "style": "form"
                },
                "DebtCapitalForBusiness": {
                  "style": "form"
                },
                "StateCode": {
                  "style": "form"
                },
                "IndustryName": {
                  "style": "form"
                },
                "ExistingDebt": {
                  "style": "form"
                },
                "AnnualRevenue": {
                  "style": "form"
                },
                "Ebitda": {
                  "style": "form"
                },
                "AccountsReceivable": {
                  "style": "form"
                },
                "Inventory": {
                  "style": "form"
                },
                "Equipment": {
                  "style": "form"
                },
                "RealEstate": {
                  "style": "form"
                },
                "Mrr": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "deprecated": true
      },
      "get": {
        "tags": [
          "Deals",
          "Loan Application Start",
          "Loan Applications"
        ],
        "summary": "Starts a loan application",
        "description": "Starts a new loan application.",
        "parameters": [
          {
            "name": "utm_campaign",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_source",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_medium",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_matchtype",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_network",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_creative",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_content",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FirstName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "LastName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EmailAddress",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "email"
            }
          },
          {
            "name": "PhoneNumber",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "tel"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyType",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "Corporation",
                "Scorp",
                "NonProfit",
                "Other",
                "LLC",
                "Sole_Proprietor",
                "Partnership",
                "Unknown"
              ],
              "type": "string"
            }
          },
          {
            "name": "LoanAmount",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "SupplementalTermsAccepted",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "BankContactId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "LenderReferralId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "DealPartnerContactId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "AcquiringBusiness",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "OtherFinancingNeeds",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "RefinanceExistingDebt",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PurchaseEquipment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PurchaseRealEstate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PurchaseWorkingCapital",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "FinanceExpensesOrGrowth",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "DebtCapitalForBusiness",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "StateCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IndustryName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ExistingDebt",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "AnnualRevenue",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Ebitda",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "AccountsReceivable",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Inventory",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Equipment",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "RealEstate",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Mrr",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "responseType",
            "in": "query",
            "schema": {
              "enum": [
                "Redirect",
                "Response"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/Deals/{guid}/Product": {
      "get": {
        "tags": [
          "Deals",
          "Products"
        ],
        "summary": "Get Product for a Deal [Roles]",
        "description": "Gets the product associated with the active product subscription for a deal<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/Product/Default": {
      "get": {
        "tags": [
          "Deals",
          "Products"
        ],
        "summary": "Get Default Product for a Deal [Roles]",
        "description": "Gets the default product for a deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/ActiveLenders": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Get Active Lenders for a Deal [Roles]",
        "description": "Gets all of the lenders currently active on the deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/ActiveTermSheets": {
      "get": {
        "tags": [
          "Data Room Term Sheets",
          "Deals"
        ],
        "summary": "Get Active Term Sheets for a Deal [Roles]",
        "description": "Gets all of the active lenders term sheets on the deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/SuggestedLenders/Prompt": {
      "get": {
        "tags": [
          "Deals"
        ],
        "summary": "Gets the generated Suggested Lenders prompt for a Deal [Roles]",
        "description": "Gets all of the active lenders term sheets on the deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{guid}/SuggestedLenders": {
      "post": {
        "tags": [
          "Deals"
        ],
        "summary": "Gets Similar Non-Cerebro Lenders for a Deal [Roles]",
        "description": "Gets all of the active lenders term sheets on the deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DebtCapacityCalculators": {
      "post": {
        "tags": [
          "Debt Capacity Calculators"
        ],
        "summary": "Creates a Debt Capacity Calculator submission.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.SubmitDebtCapacityCalculator.SubmitDebtCapacityCalculatorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.SubmitDebtCapacityCalculator.SubmitDebtCapacityCalculatorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.SubmitDebtCapacityCalculator.SubmitDebtCapacityCalculatorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The Debt Capacity Calculator Results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.DebtCapacityCalculatorResults"
                }
              }
            }
          },
          "400": {
            "description": "The provided data was invalid or incomplete.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/DebtCapacityCalculators/Results": {
      "get": {
        "tags": [
          "Debt Capacity Calculators"
        ],
        "summary": "The results of a submission, by the id the submitter received. No personal data.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The Debt Capacity Calculator Results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.DebtCapacityCalculatorResults"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or malformed id.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/DebtCapacityCalculators/RequestHelp": {
      "post": {
        "tags": [
          "Debt Capacity Calculators"
        ],
        "summary": "Asks for a call from a loan consultant. The identity comes from the saved submission, never from the body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.RequestDebtCapacityHelpBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.RequestDebtCapacityHelpBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.RequestDebtCapacityHelpBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "{ state: requested | alreadyRequested }",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Controllers.DebtCapacityHelpResponse"
                }
              }
            }
          },
          "400": {
            "description": "The provided data was invalid or incomplete.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown or malformed id, or the results do not allow a request.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/AgreementWebhooks": {
      "get": {
        "tags": [
          "Document E-Sign"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Document E-Sign"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/EmailResponses/CriteriaReconciliation": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "The deal criteria that contradict the lender's decline (the form) or nothingToUpdate. Writes nothing.",
        "parameters": [
          {
            "name": "teaserGuid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationFormDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is unknown, expired, not for this teaser, or the teaser was not declined.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Saves the criteria that are at odds with the decline (only those; recomputed on the server).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSaveDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSaveDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSaveDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "Field errors: { errors: { key: [messages] } }.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/EditFinancingRequest": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "The edit form of a financing request (or loginRequired once lenders have shown interest). Writes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestPageDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Saves the edited financing request (the legacy form fields only). Refused with 409 once lenders have shown interest.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestSavedDto"
                }
              }
            }
          },
          "400": {
            "description": "{ errors: { fieldName: [message] } }",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "409": {
            "description": "Lenders have shown interest: { state: loginRequired }.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingConflictDto"
                }
              }
            }
          },
          "500": {
            "description": "{ message }: the changes were not saved.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/PreMarketDeal": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "What the lender sees before answering a pre-market deal. Writes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealPageDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Records the lender's answer (interested or not interested) to a pre-market deal. The same answer again is alreadyRecorded.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealDecisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealDecisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealDecisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealResultDto"
                }
              }
            }
          },
          "400": {
            "description": "{ errors: { choice: [message] } }",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "409": {
            "description": "A different answer was already recorded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketConflictDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/RawLeadDealResponse": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "What the borrower sees before answering a lender's connection request. Writes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionPageDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Records the borrower's answer (connect or decline) to a lender's connection request.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionDecisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionDecisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionDecisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionResultDto"
                }
              }
            }
          },
          "400": {
            "description": "{ errors: { choice: [message] } }",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "409": {
            "description": "A different answer was already recorded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/RawLeadDealResponse/Status": {
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Records a status update of a connection (old status e-mails).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionStatusDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionResultDto"
                }
              }
            }
          },
          "400": {
            "description": "{ errors: { status: [message] } }",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/LenderRawLeadInviteResponse": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "What the lender sees before answering a DirectConnect marketplace invite. Writes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInvitePageDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Records the lender's answer (connect or decline) to a DirectConnect marketplace invite.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInviteDecisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInviteDecisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInviteDecisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInviteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "{ errors: { choice: [message] } }",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "409": {
            "description": "A different answer was recorded or the opportunity is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderInviteResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/TeaserResponse": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "What the lender sees before answering a data room teaser. Writes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bcId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pass",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserResponsePageDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is unknown, malformed, unsigned (after the grace window), deleted or the teaser was never sent.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "Records the lender's answer (interested or declined) to a data room teaser. Answered once; the same answer again is alreadyRecorded.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Field errors: { errors: { reasons | otherReason | reasonDetail | reEngagePoint: [messages] } }.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "404": {
            "description": "The link is not valid.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          },
          "409": {
            "description": "A different answer was recorded or the deal closed; reload the page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserConflictDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailResponses/TeaserResponse/LoanApplication": {
      "get": {
        "tags": [
          "EmailResponses"
        ],
        "summary": "The read-only loan application of the teaser's deal, without lender lists, tasks or manager names. Only while the teaser is pending.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bcId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "t",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDto"
                }
              }
            }
          },
          "404": {
            "description": "The link is not valid or the teaser can no longer be answered.",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank [Roles]",
        "description": "<p>Get bank information such as name, tier, and status.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Bank [Roles]",
        "description": "<p>Delete the specified bank from the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Bank [Roles]",
        "description": "<p>Editing a bank in the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "BankName",
                  "BankStatus",
                  "Currency",
                  "Tier1BankType",
                  "Tier2BankType"
                ],
                "type": "object",
                "properties": {
                  "BankName": {
                    "type": "string"
                  },
                  "Tier1BankType": {
                    "enum": [
                      "Commercial",
                      "NonBank",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "Tier2BankType": {
                    "enum": [
                      "International",
                      "National",
                      "Regional",
                      "CreditUnion",
                      "CommunityBank",
                      "Sblc",
                      "Sbic",
                      "Bdc",
                      "DirectLender",
                      "VentureLender",
                      "AssetBased",
                      "FamilyOffice",
                      "PrivateEquity"
                    ],
                    "type": "string"
                  },
                  "Currency": {
                    "type": "string"
                  },
                  "BankAssets": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "Url": {
                    "type": "string"
                  },
                  "AffiliateLender": {
                    "type": "string"
                  },
                  "BillingEmailAddress": {
                    "type": "string"
                  },
                  "EmailDomain": {
                    "type": "string"
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "Overview": {
                    "type": "string"
                  },
                  "InterestRateRange": {
                    "type": "string"
                  },
                  "LoanSizeRange": {
                    "type": "string"
                  },
                  "CommonProducts": {
                    "type": "string"
                  },
                  "BankSize": {
                    "enum": [
                      "Top5LargestUSBank",
                      "Top10LargestUSBank",
                      "Top25LargestUSBank",
                      "SuperRegionalBank",
                      "RegionalBank",
                      "CommunityBank",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "BankStatus": {
                    "enum": [
                      "Active",
                      "Expired",
                      "Pending"
                    ],
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "BankName": {
                  "style": "form"
                },
                "Tier1BankType": {
                  "style": "form"
                },
                "Tier2BankType": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "BankAssets": {
                  "style": "form"
                },
                "Url": {
                  "style": "form"
                },
                "AffiliateLender": {
                  "style": "form"
                },
                "BillingEmailAddress": {
                  "style": "form"
                },
                "EmailDomain": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                },
                "Overview": {
                  "style": "form"
                },
                "InterestRateRange": {
                  "style": "form"
                },
                "LoanSizeRange": {
                  "style": "form"
                },
                "CommonProducts": {
                  "style": "form"
                },
                "BankSize": {
                  "style": "form"
                },
                "BankStatus": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/FormHelper": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Form Helper [Roles]",
        "description": "<p>Get bank details for child forms like contacts and team members.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankFormHelperDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/Banks/{bankGuid}/StatusBar": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Status Bar [Roles]",
        "description": "<p>Get bank status bar information such as name and logo.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankStatusBarDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/Banks/{bankGuid}/DealSummary": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Bank Deal Summary [Roles]",
        "description": "<p>Get the deal funnel of a bank (all its contacts): invited, accepted, term sheets issued and funded deals with their amounts. <b>range</b> is all (default), 12 or 24 months back from the deal start date.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "range",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Banks List [Roles]",
        "description": "<p>Search banks list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Merge": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Merge Bank [Roles]",
        "description": "<p>Merge the source bank with the target bank passed as a parameter.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeBankFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeBankFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeBankFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank [Roles]",
        "description": "<p>Adding a bank to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "BankName",
                  "Currency",
                  "Tier1BankType",
                  "Tier2BankType"
                ],
                "type": "object",
                "properties": {
                  "BankName": {
                    "type": "string"
                  },
                  "Tier1BankType": {
                    "enum": [
                      "Commercial",
                      "NonBank",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "Tier2BankType": {
                    "enum": [
                      "International",
                      "National",
                      "Regional",
                      "CreditUnion",
                      "CommunityBank",
                      "Sblc",
                      "Sbic",
                      "Bdc",
                      "DirectLender",
                      "VentureLender",
                      "AssetBased",
                      "FamilyOffice",
                      "PrivateEquity"
                    ],
                    "type": "string"
                  },
                  "Currency": {
                    "type": "string"
                  },
                  "BankAssets": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "Url": {
                    "type": "string"
                  },
                  "AffiliateLender": {
                    "type": "string"
                  },
                  "BillingEmailAddress": {
                    "type": "string"
                  },
                  "EmailDomain": {
                    "type": "string"
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "BankName": {
                  "style": "form"
                },
                "Tier1BankType": {
                  "style": "form"
                },
                "Tier2BankType": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "BankAssets": {
                  "style": "form"
                },
                "Url": {
                  "style": "form"
                },
                "AffiliateLender": {
                  "style": "form"
                },
                "BillingEmailAddress": {
                  "style": "form"
                },
                "EmailDomain": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/DeleteLogo": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Bank Logo",
        "description": "Will delete the logo of the specified bank.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankOffices/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Offices [Roles]",
        "description": "<p>Search bank contacts list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankOfficeSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankOfficeSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankOfficeSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchBankOfficeItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankOffices": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Office [Roles]",
        "description": "<p>Adding a bank office associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankOffices/{bankOfficeGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Bank Office [Roles]",
        "description": "<p>Editing a bank office associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankOfficeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankOfficeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Bank Office [Roles]",
        "description": "<p>Deleting a bank office associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankOfficeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Contacts [Roles]",
        "description": "<p>Search bank contacts list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact [Roles]",
        "description": "<p>Gets a specific bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/ResetMfa": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Reset Bank Contact MFA [Roles]",
        "description": "<p>Resets the multi-factor authentication configuration of a specific bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Contact [Roles]",
        "description": "<p>Adding a bank contact associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{bankContactGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Bank Contact [Roles]",
        "description": "<p>Editing a bank contact associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/DealProfile": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Deal Profile [Roles]",
        "description": "<p>Gets a specific bank contact's deal profile.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/LenderNotes": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Lender Notes [Roles]",
        "description": "<p>Get a specific bank contact associated to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Account Details For Send [Roles]",
        "description": "<p>Get specific bank contact account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Bank Contact Account Details [Roles]",
        "description": "<p>Will send specific bank contact account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/DirectConnectFilters": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Direct Connect Filters [Roles]",
        "description": "<p>Get a specific bank contact direct connect filter and associated page information.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactDirectConnectFilterPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Lenders"
        ],
        "summary": "Save Bank Contact DirectConnect Filter [Roles]",
        "description": "<p>Will create filter record if one does not exist, or update the existing one with the provided values.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.DirectConnectFilterFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.DirectConnectFilterFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.DirectConnectFilterFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/LenderScores": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Lender Scores [Roles]",
        "description": "<p>Get a specific bank contact lender scores and associated page information.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactLenderScorePageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/LenderReferrals": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Lender Referrals [Roles]",
        "description": "<p>Get a specific bank contact lender referrals.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderReferralDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankContacts/{contactGuid}/DealSummary": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Contact Deal Summary [Roles]",
        "description": "<p>Searches by filters paged deal summary details for a specific bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactDealSummarySearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactDealSummarySearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactDealSummarySearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactDealSummaryItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Team Members [Roles]",
        "description": "<p>Search bank contact team members list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Team Member [Roles]",
        "description": "<p>Adding a team member associated to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddTeamMemberFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddTeamMemberFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddTeamMemberFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/{teamMemberGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Team Member [Roles]",
        "description": "<p>Get a specific team member associated to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactTeamMemberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Team Member [Roles]",
        "description": "<p>Editing a team member associated to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditTeamMemberFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditTeamMemberFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditTeamMemberFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/{teamMemberGuid}/ResetMfa": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Reset Team Member MFA [Roles]",
        "description": "<p>Resets the multi-factor authentication configuration of a specific team member.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/{teamMemberGuid}/LenderNotes": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Team Member Lender Notes [Roles]",
        "description": "<p>Get a specific team member associated to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/{teamMemberGuid}/Convert": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Convert Team Member [Roles]",
        "description": "<p>Convert a bank contact team member to a bank contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConvertTeamMemberFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConvertTeamMemberFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConvertTeamMemberFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/TeamMembers/{teamMemberGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Team Member Account Details For Send [Roles]",
        "description": "<p>Get specific team member account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Team Member Account Details [Roles]",
        "description": "<p>Will send specific bank contact team member account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Deals": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Contacts [Roles]",
        "description": "<p>Search bank contacts list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankDocuments/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Documents List [Roles]",
        "description": "<p>Search banks list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDocumentSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDocumentSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDocumentSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchBankDocumentItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankDocuments/{bankDocumentGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Gets single bank document's PDF file from S3. [Roles]",
        "description": "<p>Gets S3 File for a bank document record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankDocumentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankDocuments": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Upload Bank Documents [Roles]",
        "description": "Uploads document(s) for a bank.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DocumentType",
                  "Files"
                ],
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "enum": [
                      "Bank_Profile",
                      "Loan_Document",
                      "Finders_Fee_Agreement",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankDocuments/{bankDocumentGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Bank Document [Roles]",
        "description": "<p>Editing a bank document associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankDocumentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankDocumentFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankDocumentFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankDocumentFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Bank Document [Roles]",
        "description": "<p>Deleting a bank document associated to a bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankDocumentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Invoices List [Roles]",
        "description": "<p>Search bank invoices list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchInvoiceItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Invoice [Roles]",
        "description": "<p>Search bank invoices list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Invoice [Roles]",
        "description": "<p>Adding a bank invoice to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Credit Memo Invoice [Roles]",
        "description": "<p>Adding a bank credit memo invoice to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/{invoiceGuid}/Send": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Send Invoice Details [Roles]",
        "description": "Will return all the data required for the Send Invoice form for the specific bank invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.EmployeeSendInvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/BankInvoices/{invoiceGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Payment Method Details [Roles]",
        "description": "Will return all the data required for the Apply Payment form for the specific bank invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Subscriptions [Roles]",
        "description": "<p>Gets a list of enterprise loan watch subscriptions for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankEnterpriseLoanWatchSubscriptionDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Subscription [Roles]",
        "description": "<p>Creates an enterprise loan watch subscription for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Subscription Invoice [Roles]",
        "description": "<p>Gets a specific invoice for a bank enterpirse loan watch subscription,.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/Invoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Subscription Invoice [Roles]",
        "description": "<p>Creates an invoice for a specific bank enterprise loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/Invoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Subscription Credit Memo Invoice [Roles]",
        "description": "<p>Creates a credit memo refund invoice for a specific bank enterprise loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Bank Subscription [Roles]",
        "description": "<p>Updates an enterprise loan watch subscription for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/ViewAgreement": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "View Bank Subscription Agreement [Roles]",
        "description": "<p>Views the agreement for an enterprise loan watch subscription for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/Start": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Start Bank Subscription [Roles]",
        "description": "<p>Starts an enterprise loan watch subscription for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "AgreementSignedBy",
                  "AgreementSignedDate",
                  "ContractFile",
                  "StartDate"
                ],
                "type": "object",
                "properties": {
                  "StartDate": {
                    "type": "string",
                    "format": "date"
                  },
                  "AgreementSignedBy": {
                    "type": "string"
                  },
                  "AgreementSignedDate": {
                    "type": "string",
                    "format": "date"
                  },
                  "ContractFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "StartDate": {
                  "style": "form"
                },
                "AgreementSignedBy": {
                  "style": "form"
                },
                "AgreementSignedDate": {
                  "style": "form"
                },
                "ContractFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Subscriptions/{subscriptionGuid}/Cancel": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Cancel Bank Subscription [Roles]",
        "description": "<p>Cancels an enterprise loan watch subscription for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/ActionsTaken": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Actions Taken [Roles]",
        "description": "<p>Gets a list of actions taken for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.ActionTakenDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/PremiumOptions": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Premium Options [Roles]",
        "description": "<p>Gets a list of premium options for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankPremiumOptionPage"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Premium Option [Roles]",
        "description": "<p>Adds a premium option (finder fee agreement) for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "AppliesToAllContacts",
                  "Scope",
                  "StartDate",
                  "Tier3Types"
                ],
                "type": "object",
                "properties": {
                  "Tier3Types": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "Scope": {
                    "type": "string"
                  },
                  "StartDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "OneTimePayment": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "PortionOfInterestPaid": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "CapOnReferralPayment": {
                    "type": "number",
                    "format": "double"
                  },
                  "DocumentFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "AppliesToAllContacts": {
                    "type": "boolean"
                  },
                  "AssociatedContacts": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int64"
                    }
                  }
                }
              },
              "encoding": {
                "Tier3Types": {
                  "style": "form"
                },
                "Scope": {
                  "style": "form"
                },
                "StartDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "OneTimePayment": {
                  "style": "form"
                },
                "PortionOfInterestPaid": {
                  "style": "form"
                },
                "CapOnReferralPayment": {
                  "style": "form"
                },
                "DocumentFile": {
                  "style": "form"
                },
                "AppliesToAllContacts": {
                  "style": "form"
                },
                "AssociatedContacts": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/PremiumOptions/{agreementGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Bank Premium Option [Roles]",
        "description": "<p>Updates a premium option (finder fee agreement) for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "AppliesToAllContacts",
                  "Scope",
                  "StartDate",
                  "Tier3Types"
                ],
                "type": "object",
                "properties": {
                  "Tier3Types": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "Scope": {
                    "type": "string"
                  },
                  "StartDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "OneTimePayment": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "PortionOfInterestPaid": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "CapOnReferralPayment": {
                    "type": "number",
                    "format": "double"
                  },
                  "DocumentFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "AppliesToAllContacts": {
                    "type": "boolean"
                  },
                  "AssociatedContacts": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int64"
                    }
                  }
                }
              },
              "encoding": {
                "Tier3Types": {
                  "style": "form"
                },
                "Scope": {
                  "style": "form"
                },
                "StartDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "OneTimePayment": {
                  "style": "form"
                },
                "PortionOfInterestPaid": {
                  "style": "form"
                },
                "CapOnReferralPayment": {
                  "style": "form"
                },
                "DocumentFile": {
                  "style": "form"
                },
                "AppliesToAllContacts": {
                  "style": "form"
                },
                "AssociatedContacts": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/PremiumOptions/{agreementGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download Bank Premium Option Document [Roles]",
        "description": "<p>Downloads a premium option document for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Notes": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Notes [Roles]",
        "description": "<p>Gets a list of notes for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNotesFormDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Bank Notes [Roles]",
        "description": "<p>Updates notes for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNotesFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNotesFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNotesFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/EnterpriseSubscriptions/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Enterprise Loan Watch Subscription List [Roles]",
        "description": "<p>Search enterprise loan watch subscriptions list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseSubscriptionSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseSubscriptionSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseSubscriptionSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Enterprise Loan Watch Subscription [Roles]",
        "description": "<p>Gets a specific enterprise loan watch subscription by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankEnterpriseLoanWatchSubscriptionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Enterprise Loan Watch Subscription Invoice [Roles]",
        "description": "<p>Gets a specific invoice for an enterprise loan watch subscription,.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Ndas": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank NDAs [Roles]",
        "description": "<p>Gets a list of NDAs for a specific bank.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add bank NDA. [Roles]",
        "description": "<p>Adds a bank NDA record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EffectiveDate",
                  "ExpirationDate"
                ],
                "type": "object",
                "properties": {
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Ndas/{ndaGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download bank NDA file. [Roles]",
        "description": "<p>Gets S3 File for a bank NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Ndas/{ndaGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update bank NDA. [Roles]",
        "description": "<p>Updates a specific bank NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EffectiveDate",
                  "ExpirationDate"
                ],
                "type": "object",
                "properties": {
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete bank NDA. [Roles]",
        "description": "<p>Deletes a specific bank NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/NdaTemplates": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Data Room NDA Template [Roles]",
        "description": "<p>Adds a bank data room NDA template record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/NdaTemplates/{templateGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Bank Data Room NDA Template [Roles]",
        "description": "<p>Updates a specific bank data room NDA template record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Banks/{bankGuid}/Lookups/BankContacts": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Bank Contacts Lookup List [Roles]",
        "description": "<p>Gets a list of bank contacts to be displayed in a list.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Chat/Introduction": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Employee Chat Introduction [Roles]",
        "description": "Gets the chatbot's introduction to start a chat with, without saving a conversation.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeChatIntroductionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Chat/Messages": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Employee Chat Message [Roles]",
        "description": "Sends a message to the chatbot and gets its answer, continuing the conversation or starting one when no conversation is given. The conversation and its messages are saved.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeChatMessageFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeChatMessageFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeChatMessageFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeChatResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company [Roles]",
        "description": "<p>Gets a company by its unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyDetailedDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Company [Roles]",
        "description": "<p>Updates a specific company using unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "BypassSupplementalTerms",
                  "CanAccessRelatedCompanies",
                  "CompanyName",
                  "CompanyStatus",
                  "CompanyType",
                  "FiscalEndDay",
                  "FiscalEndMonth",
                  "IsManagingDebt",
                  "IsManagingFinancials",
                  "IsSoftwareSaasCompany",
                  "IsTestCompany",
                  "RequiresCovenantApproval",
                  "RequiresFinancialApproval",
                  "RestrictedAccess",
                  "ShowCreditExplorer"
                ],
                "type": "object",
                "properties": {
                  "ParentCompanyId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "CompanyStatus": {
                    "enum": [
                      "Active",
                      "Inactive",
                      "Pending"
                    ],
                    "type": "string"
                  },
                  "AccountingSystemType": {
                    "enum": [
                      "AbilaMip",
                      "FreshBooks",
                      "MicrosoftDynamics",
                      "NetSuite",
                      "Pegasus",
                      "QuickBooksDesktop",
                      "QuickBooksOnline",
                      "Sage100",
                      "Sage200",
                      "Sage300",
                      "Sage50PeachTree",
                      "SageIntacct",
                      "Sap",
                      "Xero",
                      "Zoho",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "CompanyType": {
                    "enum": [
                      "Corporation",
                      "Scorp",
                      "NonProfit",
                      "Other",
                      "LLC",
                      "Sole_Proprietor",
                      "Partnership",
                      "Unknown"
                    ],
                    "type": "string"
                  },
                  "CustomerType": {
                    "enum": [
                      "OperatingCompany",
                      "Intermediary",
                      "PrivateEquityFirm",
                      "IndependentSponsor",
                      "Advisor",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "CompanyOverview": {
                    "type": "string"
                  },
                  "Url": {
                    "type": "string"
                  },
                  "BillingEmailAddress": {
                    "type": "string"
                  },
                  "EmailDomain": {
                    "type": "string"
                  },
                  "Industry": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "LeadSource": {
                    "enum": [
                      "Advertisement",
                      "Cold_Call",
                      "Trade_Show_Meeting",
                      "Colleague_Referral",
                      "Referral",
                      "Internet_Search",
                      "Newsletter",
                      "Email_Invitation",
                      "Direct_Mailing",
                      "Other",
                      "Website"
                    ],
                    "type": "string"
                  },
                  "CurrencyType": {
                    "type": "string"
                  },
                  "SalesRepPersonId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "AccountManagerId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "OwnershipStructure": {
                    "enum": [
                      "Unknown",
                      "Private",
                      "Public",
                      "Private_Equity_Owned",
                      "ESOP_Owned",
                      "Foreign_Parent_Owned",
                      "NonProfit",
                      "Other",
                      "IndependentSponsorBacked"
                    ],
                    "type": "string"
                  },
                  "NumEmployees": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "TreasuryMgmtFees": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ForeignExchangeVolume": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "SizeOf401KPlan": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "OutstandingSwapValue": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ExistingAccountant": {
                    "type": "string"
                  },
                  "ExistingLawFirm": {
                    "type": "string"
                  },
                  "IsGovtContractor": {
                    "type": "boolean"
                  },
                  "PercentGovtRevenue": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FiscalEndMonth": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FiscalEndDay": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "RequiresFinancialApproval": {
                    "type": "boolean"
                  },
                  "RequiresCovenantApproval": {
                    "type": "boolean"
                  },
                  "CanAccessRelatedCompanies": {
                    "type": "boolean"
                  },
                  "IsManagingDebt": {
                    "type": "boolean"
                  },
                  "IsManagingFinancials": {
                    "type": "boolean"
                  },
                  "IsSoftwareSaasCompany": {
                    "type": "boolean"
                  },
                  "ShowCreditExplorer": {
                    "type": "boolean"
                  },
                  "RestrictedAccess": {
                    "type": "boolean"
                  },
                  "IsTestCompany": {
                    "type": "boolean"
                  },
                  "BypassSupplementalTerms": {
                    "type": "boolean"
                  },
                  "SecurityId": {
                    "type": "string",
                    "description": "Compliance companies: the company's identifier in the lender's systems (max 50 characters)."
                  },
                  "InternalCodeId": {
                    "type": "integer",
                    "description": "Compliance child companies on add: an existing internal code of the parent company, or -1 together with Cerebro.Api.Features.Employees.Models.CompanyFormDto.NewInternalCodeValue.",
                    "format": "int64"
                  },
                  "NewInternalCodeValue": {
                    "type": "string",
                    "description": "The text of a new internal code of the parent company (max 50 characters), used when Cerebro.Api.Features.Employees.Models.CompanyFormDto.InternalCodeId is -1."
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "ParentCompanyId": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "CompanyStatus": {
                  "style": "form"
                },
                "AccountingSystemType": {
                  "style": "form"
                },
                "CompanyType": {
                  "style": "form"
                },
                "CustomerType": {
                  "style": "form"
                },
                "CompanyOverview": {
                  "style": "form"
                },
                "Url": {
                  "style": "form"
                },
                "BillingEmailAddress": {
                  "style": "form"
                },
                "EmailDomain": {
                  "style": "form"
                },
                "Industry": {
                  "style": "form"
                },
                "LeadSource": {
                  "style": "form"
                },
                "CurrencyType": {
                  "style": "form"
                },
                "SalesRepPersonId": {
                  "style": "form"
                },
                "AccountManagerId": {
                  "style": "form"
                },
                "OwnershipStructure": {
                  "style": "form"
                },
                "NumEmployees": {
                  "style": "form"
                },
                "TreasuryMgmtFees": {
                  "style": "form"
                },
                "ForeignExchangeVolume": {
                  "style": "form"
                },
                "SizeOf401KPlan": {
                  "style": "form"
                },
                "OutstandingSwapValue": {
                  "style": "form"
                },
                "ExistingAccountant": {
                  "style": "form"
                },
                "ExistingLawFirm": {
                  "style": "form"
                },
                "IsGovtContractor": {
                  "style": "form"
                },
                "PercentGovtRevenue": {
                  "style": "form"
                },
                "FiscalEndMonth": {
                  "style": "form"
                },
                "FiscalEndDay": {
                  "style": "form"
                },
                "RequiresFinancialApproval": {
                  "style": "form"
                },
                "RequiresCovenantApproval": {
                  "style": "form"
                },
                "CanAccessRelatedCompanies": {
                  "style": "form"
                },
                "IsManagingDebt": {
                  "style": "form"
                },
                "IsManagingFinancials": {
                  "style": "form"
                },
                "IsSoftwareSaasCompany": {
                  "style": "form"
                },
                "ShowCreditExplorer": {
                  "style": "form"
                },
                "RestrictedAccess": {
                  "style": "form"
                },
                "IsTestCompany": {
                  "style": "form"
                },
                "BypassSupplementalTerms": {
                  "style": "form"
                },
                "SecurityId": {
                  "style": "form"
                },
                "InternalCodeId": {
                  "style": "form"
                },
                "NewInternalCodeValue": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Parent": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Parent Company [Roles]",
        "description": "<p>Gets a parent company object by its unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ParentCompanyDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/RemoveParent": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Remove Parent Company [Roles]",
        "description": "<p>Removes the parent company reference of the company provided by unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/DeleteLogo": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Remove Company Logo [Roles]",
        "description": "<p>Removes a company's logo by its unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company [Roles]",
        "description": "<p>Adding a company to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "BypassSupplementalTerms",
                  "CanAccessRelatedCompanies",
                  "CompanyName",
                  "CompanyStatus",
                  "CompanyType",
                  "FiscalEndDay",
                  "FiscalEndMonth",
                  "IsManagingDebt",
                  "IsManagingFinancials",
                  "IsSoftwareSaasCompany",
                  "IsTestCompany",
                  "RequiresCovenantApproval",
                  "RequiresFinancialApproval",
                  "RestrictedAccess",
                  "ShowCreditExplorer"
                ],
                "type": "object",
                "properties": {
                  "ParentCompanyId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "CompanyName": {
                    "type": "string"
                  },
                  "CompanyStatus": {
                    "enum": [
                      "Active",
                      "Inactive",
                      "Pending"
                    ],
                    "type": "string"
                  },
                  "AccountingSystemType": {
                    "enum": [
                      "AbilaMip",
                      "FreshBooks",
                      "MicrosoftDynamics",
                      "NetSuite",
                      "Pegasus",
                      "QuickBooksDesktop",
                      "QuickBooksOnline",
                      "Sage100",
                      "Sage200",
                      "Sage300",
                      "Sage50PeachTree",
                      "SageIntacct",
                      "Sap",
                      "Xero",
                      "Zoho",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "CompanyType": {
                    "enum": [
                      "Corporation",
                      "Scorp",
                      "NonProfit",
                      "Other",
                      "LLC",
                      "Sole_Proprietor",
                      "Partnership",
                      "Unknown"
                    ],
                    "type": "string"
                  },
                  "CustomerType": {
                    "enum": [
                      "OperatingCompany",
                      "Intermediary",
                      "PrivateEquityFirm",
                      "IndependentSponsor",
                      "Advisor",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "CompanyOverview": {
                    "type": "string"
                  },
                  "Url": {
                    "type": "string"
                  },
                  "BillingEmailAddress": {
                    "type": "string"
                  },
                  "EmailDomain": {
                    "type": "string"
                  },
                  "Industry": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "LeadSource": {
                    "enum": [
                      "Advertisement",
                      "Cold_Call",
                      "Trade_Show_Meeting",
                      "Colleague_Referral",
                      "Referral",
                      "Internet_Search",
                      "Newsletter",
                      "Email_Invitation",
                      "Direct_Mailing",
                      "Other",
                      "Website"
                    ],
                    "type": "string"
                  },
                  "CurrencyType": {
                    "type": "string"
                  },
                  "SalesRepPersonId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "AccountManagerId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "OwnershipStructure": {
                    "enum": [
                      "Unknown",
                      "Private",
                      "Public",
                      "Private_Equity_Owned",
                      "ESOP_Owned",
                      "Foreign_Parent_Owned",
                      "NonProfit",
                      "Other",
                      "IndependentSponsorBacked"
                    ],
                    "type": "string"
                  },
                  "NumEmployees": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "TreasuryMgmtFees": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ForeignExchangeVolume": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "SizeOf401KPlan": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "OutstandingSwapValue": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ExistingAccountant": {
                    "type": "string"
                  },
                  "ExistingLawFirm": {
                    "type": "string"
                  },
                  "IsGovtContractor": {
                    "type": "boolean"
                  },
                  "PercentGovtRevenue": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FiscalEndMonth": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FiscalEndDay": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "RequiresFinancialApproval": {
                    "type": "boolean"
                  },
                  "RequiresCovenantApproval": {
                    "type": "boolean"
                  },
                  "CanAccessRelatedCompanies": {
                    "type": "boolean"
                  },
                  "IsManagingDebt": {
                    "type": "boolean"
                  },
                  "IsManagingFinancials": {
                    "type": "boolean"
                  },
                  "IsSoftwareSaasCompany": {
                    "type": "boolean"
                  },
                  "ShowCreditExplorer": {
                    "type": "boolean"
                  },
                  "RestrictedAccess": {
                    "type": "boolean"
                  },
                  "IsTestCompany": {
                    "type": "boolean"
                  },
                  "BypassSupplementalTerms": {
                    "type": "boolean"
                  },
                  "SecurityId": {
                    "type": "string",
                    "description": "Compliance companies: the company's identifier in the lender's systems (max 50 characters)."
                  },
                  "InternalCodeId": {
                    "type": "integer",
                    "description": "Compliance child companies on add: an existing internal code of the parent company, or -1 together with Cerebro.Api.Features.Employees.Models.CompanyFormDto.NewInternalCodeValue.",
                    "format": "int64"
                  },
                  "NewInternalCodeValue": {
                    "type": "string",
                    "description": "The text of a new internal code of the parent company (max 50 characters), used when Cerebro.Api.Features.Employees.Models.CompanyFormDto.InternalCodeId is -1."
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "ParentCompanyId": {
                  "style": "form"
                },
                "CompanyName": {
                  "style": "form"
                },
                "CompanyStatus": {
                  "style": "form"
                },
                "AccountingSystemType": {
                  "style": "form"
                },
                "CompanyType": {
                  "style": "form"
                },
                "CustomerType": {
                  "style": "form"
                },
                "CompanyOverview": {
                  "style": "form"
                },
                "Url": {
                  "style": "form"
                },
                "BillingEmailAddress": {
                  "style": "form"
                },
                "EmailDomain": {
                  "style": "form"
                },
                "Industry": {
                  "style": "form"
                },
                "LeadSource": {
                  "style": "form"
                },
                "CurrencyType": {
                  "style": "form"
                },
                "SalesRepPersonId": {
                  "style": "form"
                },
                "AccountManagerId": {
                  "style": "form"
                },
                "OwnershipStructure": {
                  "style": "form"
                },
                "NumEmployees": {
                  "style": "form"
                },
                "TreasuryMgmtFees": {
                  "style": "form"
                },
                "ForeignExchangeVolume": {
                  "style": "form"
                },
                "SizeOf401KPlan": {
                  "style": "form"
                },
                "OutstandingSwapValue": {
                  "style": "form"
                },
                "ExistingAccountant": {
                  "style": "form"
                },
                "ExistingLawFirm": {
                  "style": "form"
                },
                "IsGovtContractor": {
                  "style": "form"
                },
                "PercentGovtRevenue": {
                  "style": "form"
                },
                "FiscalEndMonth": {
                  "style": "form"
                },
                "FiscalEndDay": {
                  "style": "form"
                },
                "RequiresFinancialApproval": {
                  "style": "form"
                },
                "RequiresCovenantApproval": {
                  "style": "form"
                },
                "CanAccessRelatedCompanies": {
                  "style": "form"
                },
                "IsManagingDebt": {
                  "style": "form"
                },
                "IsManagingFinancials": {
                  "style": "form"
                },
                "IsSoftwareSaasCompany": {
                  "style": "form"
                },
                "ShowCreditExplorer": {
                  "style": "form"
                },
                "RestrictedAccess": {
                  "style": "form"
                },
                "IsTestCompany": {
                  "style": "form"
                },
                "BypassSupplementalTerms": {
                  "style": "form"
                },
                "SecurityId": {
                  "style": "form"
                },
                "InternalCodeId": {
                  "style": "form"
                },
                "NewInternalCodeValue": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/FormHelper": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Form Helper [Roles]",
        "description": "<p>Get company details for child forms like contacts and team members.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyFormHelperDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Companies List [Roles]",
        "description": "<p>Search credit explorer companies list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/Compliance/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Compliance Companies List [Roles]",
        "description": "<p>Search compliance companies (companies that manage debt or financials) filtered by name and status. The subscriptions count is only returned to employees with the Access Subscriptions permission.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplianceCompanySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Merge": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Merge Company [Roles]",
        "description": "<p>Merge the source company with the target company passed as a parameter.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/Companies/{companyGuid}/StatusBar": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Status Bar [Roles]",
        "description": "<p>Get company status bar information such as name and logo.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyStatusBarDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Company Contacts [Roles]",
        "description": "<p>Search company contacts list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanyContactSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts/{contactGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Contact [Roles]",
        "description": "<p>Gets a specific company contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactDetailedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts/{contactGuid}/ResetMfa": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Reset Company Contact MFA [Roles]",
        "description": "<p>Resets the multi-factor authentication configuration of a specific company contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Contact [Roles]",
        "description": "<p>Adding a company contact associated to a company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts/{companyContactGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Company Contact [Roles]",
        "description": "<p>Editing a company contact associated to a company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyContacts/{contactGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Contact Account Details For Send [Roles]",
        "description": "<p>Get specific company contact account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Company Contact Account Details [Roles]",
        "description": "<p>Will send specific company contact account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyOffices/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Company Offices [Roles]",
        "description": "<p>Search company offices list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchCompanyOfficeItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyOffices": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Office [Roles]",
        "description": "<p>Adding a company office associated to a company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanyOffices/{companyOfficeGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Company Office [Roles]",
        "description": "<p>Editing a company office associated to a company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyOfficeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Company Office [Roles]",
        "description": "<p>Deleting a company office associated to a company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyOfficeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Ndas": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company NDAs [Roles]",
        "description": "<p>Gets a list of NDAs for a specific company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company NDA. [Roles]",
        "description": "<p>Adds a company NDA record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EffectiveDate",
                  "ExpirationDate"
                ],
                "type": "object",
                "properties": {
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Ndas/{ndaGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download company NDA file. [Roles]",
        "description": "<p>Gets S3 File for a company NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Ndas/{ndaGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Company NDA. [Roles]",
        "description": "<p>Updates a specific company NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EffectiveDate",
                  "ExpirationDate"
                ],
                "type": "object",
                "properties": {
                  "EffectiveDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationDate": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "EffectiveDate": {
                  "style": "form"
                },
                "ExpirationDate": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Company NDA. [Roles]",
        "description": "<p>Deletes a specific company NDA record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ndaGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Banks": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Banks [Roles]",
        "description": "<p>Gets a list of banks for a specific company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyBankDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Bank. [Roles]",
        "description": "<p>Adds a company bank record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyBankFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyBankFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyBankFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Banks/Available": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Available Company Banks [Roles]",
        "description": "<p>Lookup banks available to create as company banks by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Banks/{bankGuid}": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Company Bank [Roles]",
        "description": "<p>Deletes a specific company bank record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Notes": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Notes [Roles]",
        "description": "<p>Gets a list of notes for a specific company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.ActionTakenDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Note. [Roles]",
        "description": "<p>Adds a company note record.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ActionTakenFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ActionTakenFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ActionTakenFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/LoanRequests/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Company Loan Requests [Roles]",
        "description": "<p>Search company loan requests list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanRequestSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanRequestSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanRequestSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.SearchLoanRequestItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/LoanRequests": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Loan Request. [Roles]",
        "description": "<p>Adds a company loan request.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/LoanRequests/{dealGuid}/Copy": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Copy Loan Request. [Roles]",
        "description": "<p>Will create a copy of a company loan request.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CopyLoanRequestFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CopyLoanRequestFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CopyLoanRequestFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Company Invoices List [Roles]",
        "description": "<p>Search company invoices list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchInvoiceItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Invoice [Roles]",
        "description": "<p>Get specific bank invoice by unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Invoice [Roles]",
        "description": "<p>Adding a company invoice to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Credit Memo Invoice [Roles]",
        "description": "<p>Adding a company credit memo invoice to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/{invoiceGuid}/Send": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Send Invoice Details [Roles]",
        "description": "Will return all the data required for the Send Invoice form for the specific company invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.EmployeeSendInvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/Invoices/{invoiceGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Payment Method Details [Roles]",
        "description": "Will return all the data required for the Apply Payment form for the specific company invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Subscriptions [Roles]",
        "description": "<p>Get list of company subscriptions for a specific company by unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.CompanySubscriptionPage"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download Company Subscription Agreement [Roles]",
        "description": "<pDownloads the agreement file for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Company Subscription [Roles]",
        "description": "<p>Updates a specific company subscription record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "AllowUploadContract",
                  "AutoRenew",
                  "BillingFrequency",
                  "CompanyName",
                  "DealsPerYear",
                  "ExcludedLendersCount",
                  "GuaranteeTerms",
                  "HasIncentivePricing",
                  "IncludePrimaryOperatingAccountsClause",
                  "IncludeSbaExclusion",
                  "ReducedFeeLendersCount",
                  "RefinanceBenefitType",
                  "Send30DayNotice",
                  "SubscriptionFee",
                  "SubscriptionFeePaymentSchedule",
                  "SuccessFeePaymentSchedule",
                  "SuccessFeeType",
                  "Term"
                ],
                "type": "object",
                "properties": {
                  "CompanyName": {
                    "type": "string"
                  },
                  "AccountManagerId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "Address1": {
                    "type": "string"
                  },
                  "City": {
                    "type": "string"
                  },
                  "PostalCode": {
                    "type": "string"
                  },
                  "StateId": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "AutoRenew": {
                    "type": "boolean"
                  },
                  "Send30DayNotice": {
                    "type": "boolean"
                  },
                  "Term": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "GuaranteeTerms": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "DealsPerYear": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "BillingFrequency": {
                    "enum": [
                      "OneTime",
                      "Monthly",
                      "Quarterly",
                      "BiAnnually",
                      "Annually"
                    ],
                    "type": "string"
                  },
                  "SubscriptionFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "SubscriptionFeePaymentSchedule": {
                    "enum": [
                      "Now",
                      "Net7",
                      "Net15",
                      "Net30",
                      "Net60",
                      "Custom"
                    ],
                    "type": "string"
                  },
                  "ExcludedLendersCount": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "ReducedFeeLendersCount": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "FirstYearSubscriptionFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "SuccessFeeType": {
                    "enum": [
                      "None",
                      "Flat",
                      "Tiered"
                    ],
                    "type": "string"
                  },
                  "BasisPoints": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "SuccessFeePaymentSchedule": {
                    "enum": [
                      "Now",
                      "Net7",
                      "Net15",
                      "Net30",
                      "Net60",
                      "Custom"
                    ],
                    "type": "string"
                  },
                  "SuccessFeeCap": {
                    "type": "number",
                    "format": "double"
                  },
                  "MinimumSuccessFee": {
                    "maximum": 999999999.99,
                    "minimum": 0.01,
                    "type": "number",
                    "format": "double"
                  },
                  "RefinanceBenefitAmount": {
                    "type": "number",
                    "format": "double"
                  },
                  "RefinanceBenefitType": {
                    "enum": [
                      "IncrementAmountOnly",
                      "PercentDiscount"
                    ],
                    "type": "string"
                  },
                  "RefinanceSuccessFeeDiscount": {
                    "type": "number",
                    "format": "double"
                  },
                  "IncludeSbaExclusion": {
                    "type": "boolean"
                  },
                  "IncludePrimaryOperatingAccountsClause": {
                    "type": "boolean"
                  },
                  "IncludeConfessionOfJudgment": {
                    "type": "boolean"
                  },
                  "TreasuryFeeAmount": {
                    "type": "number",
                    "format": "double"
                  },
                  "HasIncentivePricing": {
                    "type": "boolean"
                  },
                  "IncentiveSubscriptionFee": {
                    "type": "number",
                    "format": "double"
                  },
                  "IncentiveExpirationDate": {
                    "type": "string",
                    "format": "date"
                  },
                  "TailPeriodsMonths": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "SignedBy": {
                    "type": "string"
                  },
                  "SignedOn": {
                    "type": "string",
                    "format": "date"
                  },
                  "AllowUploadContract": {
                    "type": "boolean"
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "CompanyName": {
                  "style": "form"
                },
                "AccountManagerId": {
                  "style": "form"
                },
                "Address1": {
                  "style": "form"
                },
                "City": {
                  "style": "form"
                },
                "PostalCode": {
                  "style": "form"
                },
                "StateId": {
                  "style": "form"
                },
                "AutoRenew": {
                  "style": "form"
                },
                "Send30DayNotice": {
                  "style": "form"
                },
                "Term": {
                  "style": "form"
                },
                "GuaranteeTerms": {
                  "style": "form"
                },
                "DealsPerYear": {
                  "style": "form"
                },
                "BillingFrequency": {
                  "style": "form"
                },
                "SubscriptionFee": {
                  "style": "form"
                },
                "SubscriptionFeePaymentSchedule": {
                  "style": "form"
                },
                "ExcludedLendersCount": {
                  "style": "form"
                },
                "ReducedFeeLendersCount": {
                  "style": "form"
                },
                "FirstYearSubscriptionFee": {
                  "style": "form"
                },
                "SuccessFeeType": {
                  "style": "form"
                },
                "BasisPoints": {
                  "style": "form"
                },
                "SuccessFeePaymentSchedule": {
                  "style": "form"
                },
                "SuccessFeeCap": {
                  "style": "form"
                },
                "MinimumSuccessFee": {
                  "style": "form"
                },
                "RefinanceBenefitAmount": {
                  "style": "form"
                },
                "RefinanceBenefitType": {
                  "style": "form"
                },
                "RefinanceSuccessFeeDiscount": {
                  "style": "form"
                },
                "IncludeSbaExclusion": {
                  "style": "form"
                },
                "IncludePrimaryOperatingAccountsClause": {
                  "style": "form"
                },
                "IncludeConfessionOfJudgment": {
                  "style": "form"
                },
                "TreasuryFeeAmount": {
                  "style": "form"
                },
                "HasIncentivePricing": {
                  "style": "form"
                },
                "IncentiveSubscriptionFee": {
                  "style": "form"
                },
                "IncentiveExpirationDate": {
                  "style": "form"
                },
                "TailPeriodsMonths": {
                  "style": "form"
                },
                "SignedBy": {
                  "style": "form"
                },
                "SignedOn": {
                  "style": "form"
                },
                "AllowUploadContract": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Cancel": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Cancel Company Subscription [Roles]",
        "description": "<p>Cancellation of a specific company subscription record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelCompanySubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelCompanySubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelCompanySubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Hubspots/{hubspotGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Company Subscription Hubspot. [Roles]",
        "description": "<p>Updates a specific company subscription hubspot record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionHubspotFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionHubspotFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionHubspotFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Company Subscription Invoice [Roles]",
        "description": "<p>Gets a specific invoice for a company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Invoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Subscription Invoice [Roles]",
        "description": "<p>Creates an invoice for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Invoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Subscription Credit Memo Invoice [Roles]",
        "description": "<p>Creates a credit memo refund invoice for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/SuccessFeeTiers": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Subscription Success Fee Tier [Roles]",
        "description": "<p>Creates a success fee tier for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/SuccessFeeTiers/{tierGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Company Subscription Success Fee Tier [Roles]",
        "description": "<p>Updates a success fee tier for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Company Subscription Success Fee Tier [Roles]",
        "description": "<p>Deletes a success fee tier for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Hubspots/{hubspotGuid}/BillingPeriods/{periodGuid}/SuccessFeeTiers": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Company Subscription Billing Period Success Fee Tier [Roles]",
        "description": "<p>Creates a success fee tier for a specific company subscription hubspot billing period.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Hubspots/{hubspotGuid}/BillingPeriods/{periodGuid}/SuccessFeeTiers/{tierGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Billing Period Success Fee Tier [Roles]",
        "description": "<p>Updates a success fee tier for a specific company subscription hubspot billing period.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Billing Period Success Fee Tier [Roles]",
        "description": "<p>Deletes a success fee tier for a specific company subscription hubspot billing period.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Hubspots/{hubspotGuid}/BillingPeriods/{periodGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Billing Period [Roles]",
        "description": "<p>Updates a specific company subscription hubspot billing period.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Hubspots/{hubspotGuid}/BillingPeriods/{periodGuid}/SendTerms": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Send Billing Period Terms [Roles]",
        "description": "<p>Retrieves a specific company subscription hubspot billing period terms email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Billing Period Terms [Roles]",
        "description": "<p>Sends a specific company subscription hubspot billing period terms email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hubspotGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/SendTerms": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Send Renewal Billing Period Terms [Roles]",
        "description": "<p>Retrieves a specific company subscription renewal terms email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Renewal Billing Period Terms [Roles]",
        "description": "<p>Sends a specific company subscription hubspot billing period terms email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/CompanySubscriptions/{subscriptionGuid}/Renewal": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Renewal Billing Period [Roles]",
        "description": "<p>Updates a specific company subscription hubspot billing period.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Single Engagement Subscriptions [Roles]",
        "description": "<p>Get list of single engagement product subscriptions for a specific company by unique identifier.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/Download": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download Company Single Engagement Subscription Agreement [Roles]",
        "description": "<pDownloads the agreement file for a specific company single engagement subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/Cancel": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Cancel Company Subscription [Roles]",
        "description": "<p>Gets information required to cancel a company single engagement subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Cancel Company Subscription [Roles]",
        "description": "<p>Cancellation of a specific company single engagement subscription record by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/Billing": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Toggle Single Engagement Billing [Roles]",
        "description": "Toggles the active status for a single pain point facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/PaymentTerms": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Single Engagement Payment Term [Roles]",
        "description": "<p>Will create a payment term for a specific company single engagement subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/PaymentTerms/{termGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Single Engagement Payment Term [Roles]",
        "description": "<p>Will update a payment term for a specific company single engagement subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Single Engagement Payment Term [Roles]",
        "description": "<p>Will delete a payment term for a specific company single engagement subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/Invoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Single Engagement Invoice [Roles]",
        "description": "<p>Creates an invoice for a specific single engagment product subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/SingleEngagements/{subscriptionGuid}/Invoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Single Engagement Credit Memo Invoice [Roles]",
        "description": "<p>Creates a credit memo refund invoice for a specific company subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/PortfolioParent": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Portfolio Parent Company [Roles]",
        "description": "<p>Will get a specific parent company used for the portfolio page.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanyPortfolioItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/ExplorerPortfolio": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Explorer Company Portfolio [Roles]",
        "description": "<p>Search child companies list filtered by various parameters for a specific parent company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchItemDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/AssociateExistingCompany": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Associate Existing Company [Roles]",
        "description": "<p>Associated the source company with the target company passed as a parameter as a child portfolio company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Companies/{companyGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Company Payment Method [Roles]",
        "description": "<p>Gets the payment method details from Stripe for a specific company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealAgentConfig": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Deal Agent Configuration [Roles] [Controlled Objects]",
        "description": "Gets the deal agent's configuration: the kill switch and rollout flags, models, active hours, capacity, budgets and lender contact rules.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Deal Agent</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealAgentConfigDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Deal Agent Configuration [Roles] [Controlled Objects]",
        "description": "Saves the deal agent's configuration. The agent uses the new values on its next check.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Deal Agent</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealAgentConfigFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealAgentConfigFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealAgentConfigFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealAgentConfigDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Deal Partners List [Roles] [Controlled Objects]",
        "description": "<p>Search deal partners list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Deal Partner [Roles] [Controlled Objects]",
        "description": "<p>Adding a deal partner to the system.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddDealPartnerFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddDealPartnerFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AddDealPartnerFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/DealPartners/{dealPartnerGuid}/StatusBar": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Deal Partner Status Bar [Roles] [Controlled Objects]",
        "description": "<p>Get deal partner status bar information such as name and logo.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerStatusBarDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Deal Partner [Roles] [Controlled Objects]",
        "description": "<p>Get the deal partner profile.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Deal Partner [Roles] [Controlled Objects]",
        "description": "<p>Editing a deal partner, including uploading the logo and partnership agreement.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EffectiveOn",
                  "IsActive",
                  "Name"
                ],
                "type": "object",
                "properties": {
                  "Name": {
                    "maxLength": 150,
                    "minLength": 0,
                    "type": "string"
                  },
                  "IsActive": {
                    "type": "boolean"
                  },
                  "EffectiveOn": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "ExpirationOn": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "Notes": {
                    "type": "string"
                  },
                  "LogoFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "AgreementFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Name": {
                  "style": "form"
                },
                "IsActive": {
                  "style": "form"
                },
                "EffectiveOn": {
                  "style": "form"
                },
                "ExpirationOn": {
                  "style": "form"
                },
                "Notes": {
                  "style": "form"
                },
                "LogoFile": {
                  "style": "form"
                },
                "AgreementFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/LoanApplications/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Deal Partner Loan Applications [Roles] [Controlled Objects]",
        "description": "<p>Search the loan applications referred by a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/LoanAssessments/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Deal Partner Loan Assessments [Roles] [Controlled Objects]",
        "description": "<p>Search the loan assessments referred by a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Deal Partner Contacts [Roles] [Controlled Objects]",
        "description": "<p>Get all of the contacts for a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactSearchItemDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Deal Partner Contact [Roles] [Controlled Objects]",
        "description": "<p>Adding a contact to a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts/{contactGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Deal Partner Contact [Roles] [Controlled Objects]",
        "description": "<p>Get a specific deal partner contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Deal Partner Contact [Roles] [Controlled Objects]",
        "description": "<p>Editing a deal partner contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts/{contactGuid}/ResetMfa": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Reset Deal Partner Contact MFA [Roles] [Controlled Objects]",
        "description": "<p>Resets the multi-factor authentication configuration of a specific deal partner contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts/{contactGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Deal Partner Contact Account Details For Send [Roles] [Controlled Objects]",
        "description": "<p>Get the deal partner contact account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Send Deal Partner Contact Account Details [Roles] [Controlled Objects]",
        "description": "<p>Will send the deal partner contact account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts/{contactGuid}/ReferralCode": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Setup Deal Partner Contact Referral Code [Roles] [Controlled Objects]",
        "description": "<p>Sets up the referral code for a deal partner contact. A referral code cannot be changed once it has been set.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SetupDealPartnerReferralCodeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SetupDealPartnerReferralCodeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SetupDealPartnerReferralCodeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Logo": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Deal Partner Logo [Roles] [Controlled Objects]",
        "description": "<p>Deletes the logo of a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Agreement": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Deal Partner Agreement [Roles] [Controlled Objects]",
        "description": "<p>Deletes the partnership agreement document of a deal partner.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/DealPartners/{dealPartnerGuid}/Contacts/{contactGuid}/LoanApplicationStart": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Deal Partner Contact Loan Application Start [Roles] [Controlled Objects]",
        "description": "<p>Validates the email address used to start a loan application referred by a deal partner contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailAddress",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CreateDealValidationResultDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Start Deal Partner Contact Loan Application [Roles] [Controlled Objects]",
        "description": "<p>Starts a loan application referred by a deal partner contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Deal Partners</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealPartnerGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Prospects/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Loan Watch Prospects [Roles]",
        "description": "<p>Search loan watch prospects filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchProspectsParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchProspectsParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchProspectsParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LoanWatchProspectSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Prospects/ExportToExcel": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Download Loan Watch Prospects [Roles]",
        "description": "<p>Search loan watch prospects filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/Search": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Search Bank Contact Subscriptions [Roles]",
        "description": "<p>Search bank contact subscriptions filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchBankContactSubscriptionsParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchBankContactSubscriptionsParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchBankContactSubscriptionsParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Subscriptions [Roles]",
        "description": "Will get a specific bank contact subscription along with the associated invoices for the given GUID.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.VwBankContactSubscriptionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Bank Contact Subscription [Roles]",
        "description": "<p>Updates a specific bank contact loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankContactSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankContactSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditBankContactSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Cancel": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Cancel Bank Contact Subscription [Roles]",
        "description": "<p>Cancels a specific bank contact loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Invoices/AddInvoice": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Subscription Invoice [Roles]",
        "description": "<p>Creates an invoice for a specific bank enterprise loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Invoices/AddCreditMemo": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Bank Subscription Credit Memo Invoice [Roles]",
        "description": "<p>Creates a credit memo refund invoice for a specific bank enterprise loan watch subscription.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Subscription Invoice [Roles]",
        "description": "<p>Gets a specific invoice for a bank contact loan watch subscription,.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Payment Method Details [Roles]",
        "description": "Will return all the data required for the Apply Payment form for the specific bank invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/BankContactSubscriptions/{subscriptionGuid}/Invoices/{invoiceGuid}/Send": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Bank Contact Send Invoice Details [Roles]",
        "description": "Will return all the data required for the Send Invoice form for the specific bank contact subscription invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.EmployeeSendInvoiceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/LoanWatch/MarketTracker": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Market Tracker [Roles]",
        "description": "Pulls a page of market tracker data along with charting information for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "View Term Sheet Facility [Roles]",
        "description": "Fetches term sheet facility and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/LoanWatch/RefinanceOpportunities": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Refinance Opportunities [Roles]",
        "description": "Pulls a page of market tracker refinancing opportunities data along with charting information for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerRefinancingOpportunitiesSearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "View Pain Point Facility [Roles]",
        "description": "Fetches term sheet pain point facility for loan watch subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Edit Pain Point [Roles]",
        "description": "Edits a single pain point facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditPainPointFacilityFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditPainPointFacilityFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EditPainPointFacilityFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Pain Point [Roles]",
        "description": "Deletes a single pain point facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Excluded": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Pain Point Excluded Lenders [Roles]",
        "description": "Fetches term sheet pain point facility for loan watch subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointExcludedLendersPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Pain Point Excluded Lender [Roles]",
        "description": "Will add a pain point facility excluded lender<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "IsIncumbentLender",
                  "NewLender"
                ],
                "type": "object",
                "properties": {
                  "BankGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "NewLender": {
                    "type": "boolean"
                  },
                  "NewBankName": {
                    "type": "string"
                  },
                  "Tier1BankType": {
                    "enum": [
                      "Commercial",
                      "NonBank",
                      "Other"
                    ],
                    "type": "string"
                  },
                  "IsIncumbentLender": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "BankGuid": {
                  "style": "form"
                },
                "NewLender": {
                  "style": "form"
                },
                "NewBankName": {
                  "style": "form"
                },
                "Tier1BankType": {
                  "style": "form"
                },
                "IsIncumbentLender": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Excluded/AvailableToExclude": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Available to Exclude Banks [Roles]",
        "description": "<p>Lookup banks available to exclude by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Excluded/{excludedGuid}": {
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Pain Point Excluded Lender [Roles]",
        "description": "Will delete a pain point facility excluded lender<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "excludedGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Financials": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Pain Point Financials [Roles]",
        "description": "Fetches term sheet pain point facility financials for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialsPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Add Pain Point Financial History [Roles]",
        "description": "Adds a facility financial history details<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Financials/{financialGuid}": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Update Pain Point Financial History [Roles]",
        "description": "Updates a facility financial history details<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "financialGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "summary": "Delete Pain Point Financial History [Roles]",
        "description": "Will delete a pain point facility financial history<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "financialGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/LoanWatch/Facilities/{facilityGuid}/PainPoint/Status": {
      "patch": {
        "tags": [
          "Employees"
        ],
        "summary": "Toggle Pain Point Status [Roles]",
        "description": "Toggles the active status for a single pain point facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/LoanWatch/PreMarketDeals": {
      "post": {
        "tags": [
          "Employees"
        ],
        "summary": "Pre-Market Deals [Roles]",
        "description": "Pulls a page of pre-market deals for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeePreMarketDealsSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeePreMarketDealsSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeePreMarketDealsSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PreMarketDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/LoanWatch/PreMarketDeals/{dealGuid}": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "Get Pre-Market Deal Tracking [Roles]",
        "description": "Pulls a page of pre-market deals for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PreMarketDealTrackingEmailDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/LoanWatch/DealOpportunities": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Deal Opportunities [Roles]",
        "description": "Pulls a page of deal opportunities for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee App Reports [Roles]",
        "description": "Gets the reports converted to the employee app that the user can access, either the admin reports or the standard reports, with sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "IsAdminReport",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDir",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAppReportDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/OpenDiligenceReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Open Diligence Report [Roles]",
        "description": "Gets a specific page of the open diligence employee report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OpenDiligenceReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OpenDiligenceReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OpenDiligenceReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.OpenDiligenceReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/OpenDiligenceReport/{diligenceGuid}/SendReminder": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Send Diligence Request Reminder [Roles]",
        "description": "Sends a reminder email for the diligence request to the company contacts on the associated data room deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "diligenceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/OffMarketDealActivityReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Off-Market Deal Activity Report [Roles]",
        "description": "Gets a specific page of the off-market deal activity employee report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OffMarketDealActivityReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OffMarketDealActivityReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OffMarketDealActivityReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.OffMarketDealActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSonarActivityReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Deal Sonar Activity Report [Roles]",
        "description": "Gets a specific page of the deal sonar activity employee report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSonarActivityReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSonarActivityReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSonarActivityReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSonarActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/MarketTrackerActivityReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Market Tracker Activity Report [Roles]",
        "description": "Gets a specific page of the market tracker activity employee report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MarketTrackerActivityReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MarketTrackerActivityReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MarketTrackerActivityReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.MarketTrackerActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TreasuryReferralReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Treasury Referral Report [Roles]",
        "description": "Gets a specific page of the treasury referral employee report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TreasuryReferralReportParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TreasuryReferralReportParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TreasuryReferralReportParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TreasuryReferralSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TreasuryReferralReport/{referralGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Treasury Referral [Roles]",
        "description": "Gets a specific treasury referral by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Treasury Referral [Roles]",
        "description": "Updates a specific treasury referral by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateTreasuryReferralFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateTreasuryReferralFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateTreasuryReferralFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TreasuryReferralReport/{referralGuid}/CreateDeal": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Create Treasury Referral Deal [Roles]",
        "description": "Gets the details associated to creation of a deal for a specific treasury referral by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailAddress",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CreateDealValidationResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Treasury Referral Deal [Roles]",
        "description": "Creates a deal for a specific treasury referral by guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referralGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSummaries": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Deal Summaries Report Page [Roles]",
        "description": "Gets the deal summaries data for the page filters.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Seach Deal Summaries Report [Roles]",
        "description": "Gets a specific page of the deal summaries report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSummarySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSummaries/{dealGuid}/ViewInterestedLenders": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Seach Deal Summaries Report [Roles]",
        "description": "Gets a specific page of the deal summaries report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealInterestedLenderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSummaries/{dealGuid}/ConvertToDirectConnect": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Convert Deal to DirectConnect [Roles]",
        "description": "Converts a specific deal to DirectConnect marketplace deal.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CompanySubscriptions": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Seach Company Subscriptions Report [Roles]",
        "description": "Gets a specific page of the company subscriptions report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanySubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/SingleEngagements": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Single Engagement Report [Roles]",
        "description": "Gets a specific page of the single engagement report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleEngagementReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleEngagementReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleEngagementReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.SingleEngagementReportSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DataSubscriptions": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Data Subscriptions Report [Roles]",
        "description": "Gets a specific page of the data subscriptions report with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DataSubscriptionReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DataSubscriptionReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DataSubscriptionReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DataSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DataSubscriptions/ReferenceFile": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Data Subscriptions Reference File [Roles]",
        "description": "Downloads the reference file for the data subscriptions report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Manage Users Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the employee and consultant users with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageUsersReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageUsersReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageUsersReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ManageUsersSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/Download": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Employee Users Summary Report [Roles] [Controlled Objects]",
        "description": "Downloads the employee users summary report as an Excel file for the provided filters.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "lastName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Employee User [Roles] [Controlled Objects]",
        "description": "Creates a new employee or consultant user and sends the welcome email when the account is not locked.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "CanAccessRestrictedCompanies",
                  "Currency",
                  "EmailAddress",
                  "FirstName",
                  "IsAuthorizedContractSigner",
                  "IsComplianceEmployee",
                  "IsLenderRelationsManager",
                  "IsLockedOut",
                  "IsSalesRep",
                  "IsTransactionManager",
                  "LastName",
                  "Role",
                  "TimeZoneId"
                ],
                "type": "object",
                "properties": {
                  "FirstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "LastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "EmailAddress": {
                    "maxLength": 50,
                    "type": "string",
                    "format": "email"
                  },
                  "Phone": {
                    "maxLength": 20,
                    "type": "string"
                  },
                  "JobTitle": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "Role": {
                    "enum": [
                      "None",
                      "CompanyUser",
                      "BankUser",
                      "TeamMember",
                      "Employee",
                      "Consultant",
                      "DealPartner"
                    ],
                    "type": "string"
                  },
                  "TimeZoneId": {
                    "type": "string"
                  },
                  "Currency": {
                    "type": "string"
                  },
                  "HubSpotId": {
                    "type": "string"
                  },
                  "IsLockedOut": {
                    "type": "boolean"
                  },
                  "IsTransactionManager": {
                    "type": "boolean"
                  },
                  "IsLenderRelationsManager": {
                    "type": "boolean"
                  },
                  "IsSalesRep": {
                    "type": "boolean"
                  },
                  "IsComplianceEmployee": {
                    "type": "boolean"
                  },
                  "CanAccessRestrictedCompanies": {
                    "type": "boolean"
                  },
                  "IsAuthorizedContractSigner": {
                    "type": "boolean"
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "FirstName": {
                  "style": "form"
                },
                "LastName": {
                  "style": "form"
                },
                "EmailAddress": {
                  "style": "form"
                },
                "Phone": {
                  "style": "form"
                },
                "JobTitle": {
                  "style": "form"
                },
                "Role": {
                  "style": "form"
                },
                "TimeZoneId": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "HubSpotId": {
                  "style": "form"
                },
                "IsLockedOut": {
                  "style": "form"
                },
                "IsTransactionManager": {
                  "style": "form"
                },
                "IsLenderRelationsManager": {
                  "style": "form"
                },
                "IsSalesRep": {
                  "style": "form"
                },
                "IsComplianceEmployee": {
                  "style": "form"
                },
                "CanAccessRestrictedCompanies": {
                  "style": "form"
                },
                "IsAuthorizedContractSigner": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee User [Roles] [Controlled Objects]",
        "description": "Gets the details of a specific employee or consultant user for editing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee User [Roles] [Controlled Objects]",
        "description": "Updates the details of a specific employee or consultant user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "CanAccessRestrictedCompanies",
                  "Currency",
                  "EmailAddress",
                  "FirstName",
                  "IsAuthorizedContractSigner",
                  "IsComplianceEmployee",
                  "IsLenderRelationsManager",
                  "IsLockedOut",
                  "IsSalesRep",
                  "IsTransactionManager",
                  "LastName",
                  "Role",
                  "TimeZoneId"
                ],
                "type": "object",
                "properties": {
                  "FirstName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "LastName": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "EmailAddress": {
                    "maxLength": 50,
                    "type": "string",
                    "format": "email"
                  },
                  "Phone": {
                    "maxLength": 20,
                    "type": "string"
                  },
                  "JobTitle": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "Role": {
                    "enum": [
                      "None",
                      "CompanyUser",
                      "BankUser",
                      "TeamMember",
                      "Employee",
                      "Consultant",
                      "DealPartner"
                    ],
                    "type": "string"
                  },
                  "TimeZoneId": {
                    "type": "string"
                  },
                  "Currency": {
                    "type": "string"
                  },
                  "HubSpotId": {
                    "type": "string"
                  },
                  "IsLockedOut": {
                    "type": "boolean"
                  },
                  "IsTransactionManager": {
                    "type": "boolean"
                  },
                  "IsLenderRelationsManager": {
                    "type": "boolean"
                  },
                  "IsSalesRep": {
                    "type": "boolean"
                  },
                  "IsComplianceEmployee": {
                    "type": "boolean"
                  },
                  "CanAccessRestrictedCompanies": {
                    "type": "boolean"
                  },
                  "IsAuthorizedContractSigner": {
                    "type": "boolean"
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "FirstName": {
                  "style": "form"
                },
                "LastName": {
                  "style": "form"
                },
                "EmailAddress": {
                  "style": "form"
                },
                "Phone": {
                  "style": "form"
                },
                "JobTitle": {
                  "style": "form"
                },
                "Role": {
                  "style": "form"
                },
                "TimeZoneId": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "HubSpotId": {
                  "style": "form"
                },
                "IsLockedOut": {
                  "style": "form"
                },
                "IsTransactionManager": {
                  "style": "form"
                },
                "IsLenderRelationsManager": {
                  "style": "form"
                },
                "IsSalesRep": {
                  "style": "form"
                },
                "IsComplianceEmployee": {
                  "style": "form"
                },
                "CanAccessRestrictedCompanies": {
                  "style": "form"
                },
                "IsAuthorizedContractSigner": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Photo": {
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Employee User Photo [Roles] [Controlled Objects]",
        "description": "Deletes the photo of a specific employee or consultant user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/ResetPassword": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Reset Employee User Password [Roles] [Controlled Objects]",
        "description": "Sends a password reset email to a specific employee or consultant user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/ResetMfa": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Reset Employee User MFA [Roles] [Controlled Objects]",
        "description": "Resets the multi-factor authentication configuration of a specific employee or consultant user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Preferences": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee User Preferences [Roles] [Controlled Objects]",
        "description": "Gets the communication preferences of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPreferencesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee User Preferences [Roles] [Controlled Objects]",
        "description": "Updates the communication preferences of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPreferencesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPreferencesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPreferencesDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Pages": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee User Pages [Roles] [Controlled Objects]",
        "description": "Gets every page (controlled object) and the access a specific employee user has to each.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Pages/{pageGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee User Page [Roles] [Controlled Objects]",
        "description": "Grants or denies a specific employee user access to a page (controlled object).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Companies": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee User Companies [Roles] [Controlled Objects]",
        "description": "Gets the company permissions of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Add Employee User Company [Roles] [Controlled Objects]",
        "description": "Adds a company permission to a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/Companies/{permissionGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee User Company [Roles] [Controlled Objects]",
        "description": "Updates a company permission of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "permissionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Employee User Company [Roles] [Controlled Objects]",
        "description": "Deletes a company permission of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "permissionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/DataRooms": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee User Data Rooms [Roles] [Controlled Objects]",
        "description": "Gets the data room permissions of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionsPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Add Employee User Data Room [Roles] [Controlled Objects]",
        "description": "Adds a data room permission to a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageUsers/{employeeGuid}/DataRooms/{permissionGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee User Data Room [Roles] [Controlled Objects]",
        "description": "Updates a data room permission of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "permissionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Employee User Data Room [Roles] [Controlled Objects]",
        "description": "Deletes a data room permission of a specific employee user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employeeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "permissionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageBankAccounts": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Manage Bank Accounts Report [Roles] [Controlled Objects]",
        "description": "Gets every Cerebro bank account used for receiving invoice payments.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Bank Account Management</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.BankAccountDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageBankAccounts/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Bank Account [Roles] [Controlled Objects]",
        "description": "Creates a new Cerebro bank account, clearing the existing default when the new account is the default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Bank Account Management</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageBankAccounts/{bankAccountGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Bank Account [Roles] [Controlled Objects]",
        "description": "Updates a specific Cerebro bank account while ensuring there is always one active default bank account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Bank Account Management</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankAccountGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankAccountFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageTrancheDebtCapacityConfigs": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Manage Tranche Debt Capacity Configs Report [Roles] [Controlled Objects]",
        "description": "Gets every tranche debt capacity configuration used by the matching algorithm.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageTrancheDebtCapacityConfigs/{configGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Tranche Debt Capacity Config [Roles] [Controlled Objects]",
        "description": "Updates a specific tranche debt capacity configuration.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "configGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageTrancheDebtCapacityConfigs/{configGuid}/NetworkDetails": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Tranche Debt Capacity Network Details [Roles] [Controlled Objects]",
        "description": "Gets how many lender profiles in the network lend on a tranche and their average leverage ratio or advance rate for a lender type.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "configGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tier1BankType",
            "in": "query",
            "schema": {
              "enum": [
                "Commercial",
                "NonBank",
                "Other"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTrancheCapacityDetailDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageLoanPurposeFacilities": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Manage Loan Purpose Facilities Report [Roles] [Controlled Objects]",
        "description": "Gets every loan purpose facility mapping used to price and structure loans.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Loan Purpose Facilities</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageLoanPurposeFacilities/{facilityGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Loan Purpose Facility [Roles] [Controlled Objects]",
        "description": "Updates a specific loan purpose facility and queues loan structure recalculations when pricing or amortization changes.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Loan Purpose Facilities</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageNaicsCodes": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Manage NAICS Codes Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of NAICS codes with a search term or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>NAICS Codes</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.NaicsCodeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageNaicsCodes/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create NAICS Code [Roles] [Controlled Objects]",
        "description": "Creates a new NAICS code.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>NAICS Codes</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageNaicsCodes/{naicsCodeGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update NAICS Code [Roles] [Controlled Objects]",
        "description": "Updates a specific NAICS code.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>NAICS Codes</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "naicsCodeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageIndustries": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Manage Industries Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of industries with a search term or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Industries</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.IndustrySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageIndustries/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Industry [Roles] [Controlled Objects]",
        "description": "Creates a new industry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Industries</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageIndustries/{industryGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Industry [Roles] [Controlled Objects]",
        "description": "Updates a specific industry.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Industries</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "industryGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustryFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageApplicationSettings": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Manage Application Settings Report [Roles] [Controlled Objects]",
        "description": "Gets every application setting used to configure the platform.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Application Settings</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.ApplicationSettingDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageApplicationSettings/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Application Setting [Roles] [Controlled Objects]",
        "description": "Creates a new application setting with a unique name.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Application Settings</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageApplicationSettings/{settingGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Application Setting [Roles] [Controlled Objects]",
        "description": "Updates the type and value of a specific application setting.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Application Settings</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "settingGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderNetworkTrancheCapacities": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Lender Network Tranche Capacities Report [Roles] [Controlled Objects]",
        "description": "Gets the stored lender network capacity and pricing for every tranche used by the matching algorithm.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderNetworkTrancheCapacityDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderNetworkTrancheCapacities/Recalculate": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Recalculate Lender Network Tranche Capacities [Roles] [Controlled Objects]",
        "description": "Recalculates the lender network tranche capacities from the current lender profiles and flags active deals for a matching update.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DebtCapacityConfig": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Debt Capacity Config [Roles] [Controlled Objects]",
        "description": "Gets the debt capacity configuration used by the matching algorithm.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DebtCapacityConfigFormDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Debt Capacity Config [Roles] [Controlled Objects]",
        "description": "Updates the debt capacity configuration used by the matching algorithm.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DebtCapacityConfigFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DebtCapacityConfigFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DebtCapacityConfigFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanOptionConfigurations": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Loan Option Configurations Report [Roles] [Controlled Objects]",
        "description": "Gets every loan option configuration displayed on the loan option cards.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanOptionConfigDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanOptionConfigurations/{configGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Loan Option Config [Roles] [Controlled Objects]",
        "description": "Updates a specific loan option configuration.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Matching Configuration</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "configGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanOptionConfigFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanOptionConfigFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanOptionConfigFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/SingleSignOnTemplates": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Single Sign-On Templates Report [Roles] [Controlled Objects]",
        "description": "Gets every single sign-on template with its organization and number of assigned users.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>SSO Templates</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateReportItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/SingleSignOnTemplates/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Single Sign-On Template [Roles] [Controlled Objects]",
        "description": "Creates a new single sign-on template and assigns the users of its organization to it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>SSO Templates</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/SingleSignOnTemplates/{templateGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Single Sign-On Template [Roles] [Controlled Objects]",
        "description": "Updates a specific single sign-on template and reassigns the users of its organization to it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>SSO Templates</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ConditionTypes": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Condition Types Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the term sheet condition types with a search term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypesReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypesReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypesReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ConditionTypeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ConditionTypes/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Condition Type [Roles] [Controlled Objects]",
        "description": "Creates a new term sheet condition type.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ConditionTypes/{conditionTypeGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Condition Type [Roles] [Controlled Objects]",
        "description": "Updates the name of a specific term sheet condition type.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conditionTypeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Condition Type [Roles] [Controlled Objects]",
        "description": "Deletes a specific term sheet condition type that is not used on any term sheet.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conditionTypeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetFees": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Term Sheet Fees Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the term sheet fees with a search term, frequency or active filter.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeesReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeesReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeesReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetFeeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetFees/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Term Sheet Fee [Roles] [Controlled Objects]",
        "description": "Creates a new term sheet fee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetFees/{feeGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Term Sheet Fee [Roles] [Controlled Objects]",
        "description": "Updates a specific term sheet fee.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "feeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Term Sheet Fee [Roles] [Controlled Objects]",
        "description": "Deletes a specific term sheet fee that is not used on any term sheet facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Term Sheet Fees & Conditions</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "feeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/FinancialCovenantTypes": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Financial Covenant Types Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the financial covenant types with a search term.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Financial Covenant Types</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypesReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypesReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypesReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/FinancialCovenantTypes/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Financial Covenant Type [Roles] [Controlled Objects]",
        "description": "Creates a new financial covenant type.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Financial Covenant Types</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/FinancialCovenantTypes/{typeGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Financial Covenant Type [Roles] [Controlled Objects]",
        "description": "Updates a specific financial covenant type.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Financial Covenant Types</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "typeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Financial Covenant Type [Roles] [Controlled Objects]",
        "description": "Deletes a specific financial covenant type that is not used on any term sheet.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Financial Covenant Types</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "typeGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ApplicationErrors": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Application Errors Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the application errors with their statuses, owners or when they last occurred, the newest errors first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Application Errors</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ApplicationErrorSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ApplicationErrors/Owners": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Application Errors Report Owners [Roles] [Controlled Objects]",
        "description": "Gets the owners of the application errors with the statuses and last occurrence dates, to filter the application errors by.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Application Errors</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportFiltersDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportFiltersDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportFiltersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorOwnerDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ApplicationErrors/AssignableOwners": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Application Error Assignable Owners [Roles] [Controlled Objects]",
        "description": "Gets the employees and consultants that can own an application error, in name order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Application Errors</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorOwnerDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ApplicationErrors/{applicationErrorGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Application Error [Roles] [Controlled Objects]",
        "description": "Gets a specific application error with its request details, stack trace and who manages it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Application Errors</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "applicationErrorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Application Error [Roles] [Controlled Objects]",
        "description": "Updates the status, owner and notes of a specific application error.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Application Errors</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "applicationErrorGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CancellationReasons": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Cancellation Reasons [Roles] [Controlled Objects]",
        "description": "Gets the reasons customers can give when cancelling a subscription, in name order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CancellationReasons/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Cancellation Reason [Roles] [Controlled Objects]",
        "description": "Creates a new subscription cancellation reason.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CancellationReasons/{reasonGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Cancellation Reason [Roles] [Controlled Objects]",
        "description": "Updates a specific subscription cancellation reason.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reasonGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDeclineReasons": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Lender Decline Reasons [Roles] [Controlled Objects]",
        "description": "Gets the reasons lenders can give when declining a deal, in name order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDeclineReasons/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Lender Decline Reason [Roles] [Controlled Objects]",
        "description": "Creates a new lender decline reason.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDeclineReasons/{reasonGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Lender Decline Reason [Roles] [Controlled Objects]",
        "description": "Updates a specific lender decline reason.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reasonGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Questions": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Questions [Roles] [Controlled Objects]",
        "description": "Gets the company, loan application and loan assessment questions with a search term, category, format, feature or active filter.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Questions/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Question [Roles] [Controlled Objects]",
        "description": "Creates a new active company question.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Questions/{questionGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Question [Roles] [Controlled Objects]",
        "description": "Updates a specific company question.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Questions/{questionGuid}/Active": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Question Active [Roles] [Controlled Objects]",
        "description": "Activates or deactivates a specific company question.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionActiveDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionActiveDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyQuestionActiveDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/QuestionCategories": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Question Categories [Roles] [Controlled Objects]",
        "description": "Gets the question categories with a search term, in display order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/QuestionCategories/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Question Category [Roles] [Controlled Objects]",
        "description": "Creates a new question category.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/QuestionCategories/{categoryGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Question Category [Roles] [Controlled Objects]",
        "description": "Updates a specific question category.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "categoryGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Question Category [Roles] [Controlled Objects]",
        "description": "Deletes a specific question category, leaving its questions without a category.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Task Checklist Document Info</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "categoryGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageReports": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Manage Employee Reports [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the employee reports with a search term, category, controlled object or admin report filter.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Employee Reports</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportsParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportsParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportsParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ManageEmployeeReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageReports/Categories": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee Report Categories [Roles] [Controlled Objects]",
        "description": "Gets the employee report categories and the controlled objects reports can require, for the manage employee reports filters and form.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Employee Reports</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeReportCategoryLookupDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageReports/ControlledObjects": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Employee Report Controlled Objects [Roles] [Controlled Objects]",
        "description": "Gets the employee report categories and the controlled objects reports can require, for the manage employee reports filters and form.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Employee Reports</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ControlledObjectLookupDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageReports/{reportGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Employee Report [Roles] [Controlled Objects]",
        "description": "Updates a specific employee report's name, category, urls, description, controlled object and admin report flag.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Employee Reports</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageProducts": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Manage Products [Roles] [Controlled Objects]",
        "description": "Gets the products customers can subscribe to with a category and status filter, in category and name order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductsParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductsParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductsParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageProducts/{productGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Manage Product [Roles] [Controlled Objects]",
        "description": "Gets a specific product with its success fee tiers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Manage Product [Roles] [Controlled Objects]",
        "description": "Updates a specific product, removing its success fee tiers when it is no longer a tiered credit explorer product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageProducts/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Manage Product [Roles] [Controlled Objects]",
        "description": "Creates a new product, with the default success fee tiers for tiered credit explorer products.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageProductFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageProducts/{productGuid}/SuccessFeeTiers/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Product Success Fee Tier [Roles] [Controlled Objects]",
        "description": "Adds a success fee tier to a specific tiered credit explorer product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ManageProducts/{productGuid}/SuccessFeeTiers/{tierGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Product Success Fee Tier [Roles] [Controlled Objects]",
        "description": "Updates a specific success fee tier of a product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Product Success Fee Tier [Roles] [Controlled Objects]",
        "description": "Deletes a specific success fee tier of a product.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Products</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tierGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/AISourceDocuments": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get AI Source Documents [Roles] [Controlled Objects]",
        "description": "Gets the documents the AI features use as their sources, the newest first, with links to download them.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage AI Source Documents</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.AISourceDocumentItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/AISourceDocuments/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create AI Source Document [Roles] [Controlled Objects]",
        "description": "Uploads a new AI source document.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage AI Source Documents</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DocumentType",
                  "InternalUseOnly"
                ],
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "enum": [
                      "ProductAndPlatformDocumentation",
                      "SalesAndMarketingReferences",
                      "CustomerAndDealReference",
                      "TechnicalAndOperationalResources",
                      "AdministrativeAndPolicyDocuments",
                      "Miscellaneous"
                    ],
                    "type": "string"
                  },
                  "DocumentDescription": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "InternalUseOnly": {
                    "type": "boolean"
                  },
                  "File": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "Required for new documents, replaces the existing file when provided for an existing document."
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "DocumentDescription": {
                  "style": "form"
                },
                "InternalUseOnly": {
                  "style": "form"
                },
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/AISourceDocuments/{documentGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update AI Source Document [Roles] [Controlled Objects]",
        "description": "Updates a specific AI source document, replacing its file when one is provided.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage AI Source Documents</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DocumentType",
                  "InternalUseOnly"
                ],
                "type": "object",
                "properties": {
                  "DocumentType": {
                    "enum": [
                      "ProductAndPlatformDocumentation",
                      "SalesAndMarketingReferences",
                      "CustomerAndDealReference",
                      "TechnicalAndOperationalResources",
                      "AdministrativeAndPolicyDocuments",
                      "Miscellaneous"
                    ],
                    "type": "string"
                  },
                  "DocumentDescription": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "InternalUseOnly": {
                    "type": "boolean"
                  },
                  "File": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "Required for new documents, replaces the existing file when provided for an existing document."
                  }
                }
              },
              "encoding": {
                "DocumentType": {
                  "style": "form"
                },
                "DocumentDescription": {
                  "style": "form"
                },
                "InternalUseOnly": {
                  "style": "form"
                },
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete AI Source Document [Roles] [Controlled Objects]",
        "description": "Deletes a specific AI source document and its file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage AI Source Documents</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/MaturingLoans": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Maturing Loans Report [Roles]",
        "description": "Gets the credit facilities maturing in the next three years, by quarter, in the employee's currency.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MaturingLoansReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/UserLogins": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get User Logins Report [Roles]",
        "description": "Gets the number of lender and borrower logins for each day between two dates, up to 90 days.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UserLoginChartDayDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/MissingUnderwritingProfiles": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Missing Deal Criteria Report [Roles] [Controlled Objects]",
        "description": "Gets the active lender contacts without deal criteria, other than equity providers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MissingUnderwritingProfileItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CurrencyExchangeRates": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Currency Exchange Rates [Roles]",
        "description": "Gets the exchange rates used to convert amounts between currencies, optionally for one target currency. Sorted by base currency then target currency unless sortBy (baseCurrency, targetCurrency, conversionRate or lastUpdatedOn) and sortDir (asc or desc) say otherwise.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "targetCurrency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CurrencyExchangeRatesReportDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/FederalReserveData": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Federal Reserve Data [Roles]",
        "description": "Gets the federal reserve lending survey periods with the net percent of lenders increasing credit costs and the resulting price adjustment, the newest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FederalReserveDataItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CommitmentChart": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Commitment Chart Report [Roles]",
        "description": "Gets the maximum facility amounts of the active credit facilities by lender and by industry, in the employee's currency.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CommitmentChartReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CommitmentChart/Lenders/{lenderGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Commitment Chart Lender Loans [Roles]",
        "description": "Gets the active credit facilities behind one lender on the commitment chart, with the lender's share in the employee's currency. An empty lender guid gets the facilities without a bank provider.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lenderGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CommitmentChartLenderLoanDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CompanyAndLenderAddCounts": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Company And Lender Counts Report [Roles]",
        "description": "Gets the companies and lenders added, and the lender profiles completed, for each of the last 24 months, oldest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyAndLenderAddCountMonthDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ComplianceCustomerSummary": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Compliance Customer Summary [Roles]",
        "description": "Gets a page of the customers with an active compliance subscription, optionally whose name contains the company name, with their companies, loan agreements and users. In company name order unless sortBy (companyName, startDate, endDate, companyCount, loanAgreementCount or companyContactCount) and sortDir (asc or desc) say otherwise.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplianceCustomerSummaryItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DebtCapacityCalculators": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Debt Capacity Calculators [Roles]",
        "description": "Gets a page of the debt capacity calculator submissions, newest first unless sortBy (name, annualRevenue, ebitda, accountsReceivable, inventory, equipment, realEstate, existingDebt, cashFlowCapacity, assetCapacity, ventureDebtCapacity or createdOn) and sortDir (asc or desc) say otherwise, optionally for submitter email addresses containing the text and submitted on or between two dates. The amounts are in the employee's currency.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailAddress",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "submittedOnOrAfter",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "submittedOnOrBefore",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DebtCapacityCalculatorItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadData": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Data [Roles]",
        "description": "Gets a page of the DirectConnect marketplace deals, most recently modified first unless sortBy (companyName, emailAddress, industryName, stateCode, totalRequestAmount, balanceSheetAr, balanceSheetEquipment, createdOn, modifiedOn, interestCount or notInterestedCount) and sortDir (asc or desc) say otherwise. The filters are the legacy page's; the leads lenders can see are the default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EmailAddress",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "DateRange",
            "in": "query",
            "description": "1 is under 30 days old, 2 is 30 to 90 days and 3 is over 90 days.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Industry",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Geography",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Acquisition",
            "in": "query",
            "description": "1 for acquisitions, 2 for the others.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "RequestRange",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "RevenueRange",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EbitdaRange",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Ar",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Equipment",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "RealEstate",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "AdditionalInformation",
            "in": "query",
            "description": "1 for deals with additional information, 2 for the others.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "InterestLevel",
            "in": "query",
            "description": "1 for deals lenders are interested in, 2 for deals lenders are not interested in.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Visibility",
            "in": "query",
            "description": "0 for any lead, visible or not, 1 for the leads lenders can see, 2 for the others. Like the legacy page, the visible leads are the default.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "LimitRestricted",
            "in": "query",
            "description": "1 for deals with a restricted number of lender invites, 2 for the others.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "BrokerSubmitted",
            "in": "query",
            "description": "1 for deals a broker submitted, 2 for the others.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "DealGuid",
            "in": "query",
            "description": "Only this deal.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PerPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadData/{dealGuid}/Audits": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Deal Audits [Roles]",
        "description": "Gets the changes made to a DirectConnect marketplace deal, most recent first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadDealAuditDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadData/{dealGuid}/RemoveRestriction": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Remove DirectConnect Marketplace Restriction [Roles]",
        "description": "Lets the borrower of a DirectConnect marketplace deal see all of its lender invites.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadData/{dealGuid}/RemoveFromDirectConnect": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Remove Deal from DirectConnect [Roles]",
        "description": "Removes a deal from the DirectConnect marketplace, hiding the lead from lenders, and records the changes.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadData/{dealGuid}/Detail": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Deal Detail [Roles]",
        "description": "Gets the details of a DirectConnect marketplace deal, with the lists of its states and industries, to be edited.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealEditDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update DirectConnect Marketplace Deal Detail [Roles]",
        "description": "Updates the details of a DirectConnect marketplace deal, recording the changes in its audit records.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealEditDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealEditDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealEditDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ChatHistory": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Chat History [Roles]",
        "description": "Gets a page of the chatbot conversations, the newest first, optionally only those of email addresses containing the user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "username",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ChatHistoryReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ChatHistory/{conversationGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Chat Conversation Messages [Roles]",
        "description": "Gets the messages of a chatbot conversation, oldest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "conversationGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ChatHistoryMessageDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ChatRules": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Chat Rules Document Link [Roles] [Controlled Objects]",
        "description": "Gets a link to download the rules document of the prospect chat, or of the employee chat.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Chat Rules</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "isEmployeeChat",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ChatRulesUrlDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Upload Chat Rules Document [Roles] [Controlled Objects]",
        "description": "Replaces the rules document of the prospect chat, or of the employee chat, with a text file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Chat Rules</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "IsEmployeeChat": {
                    "type": "boolean",
                    "description": "Whether the rules are the employee chat's, the prospect chat's otherwise."
                  },
                  "File": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "IsEmployeeChat": {
                  "style": "form"
                },
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ProspectPrompt": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Prospect Prompt [Roles] [Controlled Objects]",
        "description": "Gets the system prompt of the prospect chat.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Prospect Prompt</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProspectPromptDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Prospect Prompt [Roles] [Controlled Objects]",
        "description": "Replaces the system prompt of the prospect chat. The chat uses the new prompt within five minutes.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage Prospect Prompt</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProspectPromptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProspectPromptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProspectPromptDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/PendingFinancialLoads": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Pending Financial Loads [Roles]",
        "description": "Gets a page of the uploaded company documents whose financials are waiting to be loaded, newest first, optionally searching the company names by each word.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PendingFinancialLoadItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/PendingFinancialLoads/{documentGuid}/Complete": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Complete Pending Financial Load [Roles]",
        "description": "Marks an uploaded company document's financials as loaded, optionally emailing the uploader, or the company's users when a company user did not upload it.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "documentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Jobs": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Jobs Report [Roles] [Controlled Objects]",
        "description": "Gets the batch jobs filtered by status (0 = all, 1 = enabled, 2 = disabled).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Jobs/{jobId}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Job [Roles] [Controlled Objects]",
        "description": "Gets a specific batch job and its schedule.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Job [Roles] [Controlled Objects]",
        "description": "Updates the name and schedule of a specific batch job. Schedules are in Eastern time.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Jobs/{jobId}/Enabled": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Job Enabled [Roles] [Controlled Objects]",
        "description": "Enables or disables a specific batch job.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobEnabledFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobEnabledFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobEnabledFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/Jobs/{jobId}/Run": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Run Job Now [Roles] [Controlled Objects]",
        "description": "Runs a specific enabled batch job immediately.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/JobExecutions": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Job Executions Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of batch job executions filtered by job, date range or status.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.JobExecutionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/JobExecutions/{executionId}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Job Execution [Roles] [Controlled Objects]",
        "description": "Gets a specific batch job execution with each action it performed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage/View Jobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanApplicationTaskTemplates": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Loan Application Task Templates Report [Roles]",
        "description": "Gets a specific page of the loan application required document templates with a search term, folder or default filter.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplatesReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplatesReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplatesReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplateSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanApplicationTaskTemplates/FolderTemplates": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Data Room Document Folder Templates [Roles]",
        "description": "Gets the data room document folder templates required documents can be uploaded to.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DataRoomDocumentFolderTemplateLookupDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanApplicationTaskTemplates/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Loan Application Task Template [Roles]",
        "description": "Creates a new loan application required document template with an optional example file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DisplayOrder",
                  "FolderTemplateGuid",
                  "IsCustomFolder",
                  "IsLoanApplicationDefault",
                  "Summary",
                  "Title"
                ],
                "type": "object",
                "properties": {
                  "Title": {
                    "type": "string"
                  },
                  "DisplayOrder": {
                    "type": "number",
                    "format": "double"
                  },
                  "IsCustomFolder": {
                    "type": "boolean"
                  },
                  "IsLoanApplicationDefault": {
                    "type": "boolean"
                  },
                  "FolderTemplateGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "Summary": {
                    "type": "string"
                  },
                  "TemplateFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "Optional example file that replaces the existing one (DOC, DOCX, PDF, XLS, XLSX, PPT, PPTX or CSV up to 50 MB)."
                  }
                }
              },
              "encoding": {
                "Title": {
                  "style": "form"
                },
                "DisplayOrder": {
                  "style": "form"
                },
                "IsCustomFolder": {
                  "style": "form"
                },
                "IsLoanApplicationDefault": {
                  "style": "form"
                },
                "FolderTemplateGuid": {
                  "style": "form"
                },
                "Summary": {
                  "style": "form"
                },
                "TemplateFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanApplicationTaskTemplates/{templateGuid}": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Loan Application Task Template [Roles]",
        "description": "Updates a specific loan application required document template, replacing the example file when one is provided.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "DisplayOrder",
                  "FolderTemplateGuid",
                  "IsCustomFolder",
                  "IsLoanApplicationDefault",
                  "Summary",
                  "Title"
                ],
                "type": "object",
                "properties": {
                  "Title": {
                    "type": "string"
                  },
                  "DisplayOrder": {
                    "type": "number",
                    "format": "double"
                  },
                  "IsCustomFolder": {
                    "type": "boolean"
                  },
                  "IsLoanApplicationDefault": {
                    "type": "boolean"
                  },
                  "FolderTemplateGuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "Summary": {
                    "type": "string"
                  },
                  "TemplateFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "Optional example file that replaces the existing one (DOC, DOCX, PDF, XLS, XLSX, PPT, PPTX or CSV up to 50 MB)."
                  }
                }
              },
              "encoding": {
                "Title": {
                  "style": "form"
                },
                "DisplayOrder": {
                  "style": "form"
                },
                "IsCustomFolder": {
                  "style": "form"
                },
                "IsLoanApplicationDefault": {
                  "style": "form"
                },
                "FolderTemplateGuid": {
                  "style": "form"
                },
                "Summary": {
                  "style": "form"
                },
                "TemplateFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Loan Application Task Template [Roles]",
        "description": "Deletes a specific loan application required document template along with every task created from it and their uploaded documents.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LoanApplicationTaskTemplates/{templateGuid}/File": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Loan Application Task Template File [Roles]",
        "description": "Downloads the example file of a specific loan application required document template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Remove Loan Application Task Template File [Roles]",
        "description": "Removes the example file of a specific loan application required document template.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Term Sheet Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the term sheet report's term sheet facilities with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/CustomReports/Create": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Create Custom Term Sheet Report [Roles] [Controlled Objects]",
        "description": "Saves the term sheet facilities matching the term sheet report filters as a custom report. At least one filter must be set.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportFiltersDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportFiltersDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportFiltersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/Facilities/{termSheetFacilityGuid}/Fees": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Facility Fees [Roles] [Controlled Objects]",
        "description": "Gets the fees of a specific term sheet facility.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetFacilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportFacilityFeeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/CustomReports": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Custom Term Sheet Reports [Roles]",
        "description": "Gets a specific page of the custom term sheet reports with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportsParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportsParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportsParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CustomTermSheetReportListItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/CustomReports/{reportGuid}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Custom Term Sheet Report [Roles]",
        "description": "Gets a specific custom term sheet report with its filters, shown columns and items.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update Custom Term Sheet Report [Roles]",
        "description": "Renames a specific custom term sheet report, and updates the columns it shows and the items it includes.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Delete Custom Term Sheet Report [Roles]",
        "description": "Deletes a specific custom term sheet report and its items.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/CustomReports/{reportGuid}/Excel": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Custom Term Sheet Report Excel [Roles]",
        "description": "Downloads a specific custom term sheet report as an Excel file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetReport/CustomReports/{reportGuid}/Pdf": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Custom Term Sheet Report PDF [Roles]",
        "description": "Downloads a specific custom term sheet report as a PDF file.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderSummaryReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the lender summary report's lender deal profiles with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderSummarySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderSummaryReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Lender Summary Report [Roles] [Controlled Objects]",
        "description": "Downloads every lender deal profile matching the lender summary report filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderSummaryReport/MatchedLenders": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Lender Summary Report Matched Lenders [Roles] [Controlled Objects]",
        "description": "Gets the active lenders matching the lender name and bank type filters that have no contacts, so are not in the lender summary report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportFiltersDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportFiltersDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryReportFiltersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryMatchedLenderDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/MissingTermSheetFacilityReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Missing Term Sheet Facility Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the term sheet revisions lenders have sent without any facilities, with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetOverallDashboardReport": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Overall Dashboard Report [Roles] [Controlled Objects]",
        "description": "Gets the term sheet counts by year and the interest rate, term, commitment, fee and cost of capital statistics for a range of years, the last five years by default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "StartYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EndYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetDashboardReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetOverallDashboardReport/Years/{year}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Overall Dashboard Report Year [Roles] [Controlled Objects]",
        "description": "Gets the term sheet revisions received in a year of the term sheet overall dashboard report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetPeriodDrillInItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetTrancheSummaryReport": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Tranche Summary Report [Roles] [Controlled Objects]",
        "description": "Gets the term sheet facility statistics for each structure tranche, with the most facilities first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetTrancheSummaryItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetTrancheSummaryReport/Tranches/{tranche}": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Tranche Summary Report Tranche [Roles] [Controlled Objects]",
        "description": "Gets the term sheet facilities of a structure tranche in the term sheet tranche summary report.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tranche",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetTrancheDrillInItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetAnnuallyQuarterlyReport": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Annually Quarterly Report [Roles] [Controlled Objects]",
        "description": "Gets the term sheet counts, borrowers and commitments by year or by quarter for a range of years, the last five years by default, with totals.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "StartYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EndYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ReportType",
            "in": "query",
            "description": "1 for annually, 2 for quarterly.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "CurrentRevision",
            "in": "query",
            "description": "1 for only current revisions, 0 for all revisions.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetAnnuallyQuarterlyReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/TermSheetAnnuallyQuarterlyReport/DrillIn": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Term Sheet Annually Quarterly Report Period [Roles] [Controlled Objects]",
        "description": "Gets the term sheet revisions of a year or quarter in the term sheet annually / quarterly report, either the term loan, revolver and line of credit term sheets (mode 1) or the factor and purchase order term sheets (mode 2).<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Quarter",
            "in": "query",
            "description": "The quarter, 0 for the whole year.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "CurrentRevision",
            "in": "query",
            "description": "1 for only current revisions, 0 for all revisions.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Mode",
            "in": "query",
            "description": "1 for term loan, revolver and line of credit term sheets, 2 for factor and purchase order term sheets.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetPeriodDrillInItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/OutstandingTeasersReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Outstanding Teasers Report [Roles]",
        "description": "Gets a specific page of the teasers sent to lenders on open data rooms for pre-launch and in-market deals that the lenders have not responded to, scoped to the data rooms the employee can see.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderTeaserReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/AcceptedTeasersReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Accepted Teasers Report [Roles]",
        "description": "Gets a specific page of the teasers lenders have accepted on pre-launch and in-market deals without being added to the data room yet, scoped to the data rooms the employee can see.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderTeaserReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderReferralsReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Referrals Report [Roles]",
        "description": "Gets a specific page of the borrowers lenders have referred to Cerebro, with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderReferralsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderReferralsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderReferralsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderReferralReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderFinderFeeAgreementsReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Finder Fee Agreements Report [Roles]",
        "description": "Gets a specific page of the lender finder fee agreements, active agreements by default, with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementsReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementsReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementsReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadActivityReport": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Activity Report [Roles]",
        "description": "Gets the DirectConnect Marketplace deals, lender interests, borrower responses and active users for each month of a year, the current year by default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadActivityReportItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsLenderDashboard": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search DirectConnect Marketplace Lender Dashboard [Roles]",
        "description": "Gets a specific page of the lender contacts that sent DirectConnect Marketplace invites, with their borrower accepts and monthly limit.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsLenderDashboard/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download DirectConnect Marketplace Lender Dashboard [Roles]",
        "description": "Downloads every lender contact in the DirectConnect Marketplace lender dashboard matching the filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsLenderDashboard/Lenders/{bankContactGuid}/Usage": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Lender Usage [Roles]",
        "description": "Gets a lender contact's DirectConnect Marketplace interests, not interesteds and borrower accepts for each of the last twelve months, the current month first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderUsageItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsLenderDashboard/Lenders/{bankContactGuid}/Invites": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Lender Invites [Roles]",
        "description": "Gets the DirectConnect Marketplace deals a lender contact sent invites to, the newest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsBorrowerDashboard": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search DirectConnect Marketplace Borrower Dashboard [Roles]",
        "description": "Gets a specific page of the DirectConnect Marketplace borrower deals, with their lender invites, responses and logins.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsBorrowerDashboard/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download DirectConnect Marketplace Borrower Dashboard [Roles]",
        "description": "Downloads every DirectConnect Marketplace borrower deal matching the filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadsBorrowerDashboard/Deals/{dealGuid}/Interests": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get DirectConnect Marketplace Deal Interests [Roles]",
        "description": "Gets every lender interest in a DirectConnect Marketplace borrower deal, the newest first.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadInterestReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search DirectConnect Marketplace Interest Report [Roles]",
        "description": "Gets a specific page of the lender interests in DirectConnect Marketplace deals, with the borrower and lender statuses.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadInterestReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download DirectConnect Marketplace Interest Report [Roles]",
        "description": "Downloads every DirectConnect Marketplace lender interest matching the filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadInterestReport/Interests/{interestGuid}/BorrowerStatus": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update DirectConnect Marketplace Borrower Status [Roles]",
        "description": "Marks the borrower as interested (connected) or not interested in a lender's DirectConnect Marketplace interest for the borrower, emailing the borrower and lender like the borrower's own response. Only interests the borrower has not responded to can be updated.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "interestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadBorrowerStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadBorrowerStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadBorrowerStatusDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/RawLeadInterestReport/Interests/{interestGuid}/LenderStatus": {
      "patch": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Update DirectConnect Marketplace Lender Status [Roles]",
        "description": "Updates a lender's DirectConnect Marketplace connection status for a connected borrower, like the lender's own status update. A decline reason is required when the status is closed out.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "interestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadLenderStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadLenderStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.UpdateRawLeadLenderStatusDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDataRoomReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Data Room Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the data rooms with their lender teaser responses and active and opted-out lenders, optionally as of a number of days ago.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderDataRoomReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDataRoomReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Lender Data Room Report [Roles] [Controlled Objects]",
        "description": "Downloads every data room in the lender data room report matching the filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderPerformanceReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Performance Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the lenders with their teaser responses, term sheets and closed deals on deals created between the start and end dates, the last year by default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderPerformanceReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderPerformanceReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Lender Performance Report [Roles] [Controlled Objects]",
        "description": "Downloads every lender in the lender performance report matching the filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDealsSummaryReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Deal Count by Lender Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the lenders in active deals, with how many are launched, have a term sheet issued or are in underwriting.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDealsSummaryReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Deal Count by Lender Report [Roles] [Controlled Objects]",
        "description": "Downloads every lender in the deal count by lender report matching the bank name as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderDealsSummaryReport/Lenders/{bankGuid}/Deals": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Deal Count by Lender Deals [Roles] [Controlled Objects]",
        "description": "Gets a lender's active deals for one of the deal count by lender report's columns: deal launched, term sheet issued, underwriting or total deals.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "description": "The deal count by lender drill ins, the values the legacy report passed as the scope.",
            "schema": {
              "enum": [
                "DealLaunched",
                "TermSheetIssued",
                "Underwriting",
                "TotalDeals"
              ],
              "type": "string",
              "description": "The deal count by lender drill ins, the values the legacy report passed as the scope."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryDrillInItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderProfileReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Lender Profile Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the active lender contacts' deal profiles, with the status of each underwriting criteria tab and their SBA lending.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderProfileReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderProfileReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderProfileReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderProfileReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/CashLeverageRatioReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Cash Leverage Ratio Report [Roles]",
        "description": "Gets the senior and junior cash flow lenders' target leverage ratio statistics, for the lenders matching a company's revenue, EBITDA, state, industry, years in operation and leverage ratio, or every lender when no revenue, EBITDA or years in operation are set. When fewer than 3 lenders match, the statistics of every lender are returned.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ClosedDealFacilityRenewalReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Closed Deal Facility Renewal Report [Roles]",
        "description": "Gets a specific page of the facilities on accepted term sheets of closed funded deals with a selected funding lender, with an estimated maturity date from the funding date and facility term. Maturing in the next 12 months by default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ExistingDebtMaturityReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Existing Debt Maturity Report [Roles]",
        "description": "Gets a specific page of the existing debt facilities entered on loan applications, with the estimated maturity date from the loan application's maturity date or year and quarter, or the deal's created date when it has neither. Maturing in the next 12 months by default.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/LenderCoverageReport": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Lender Coverage Report [Roles] [Controlled Objects]",
        "description": "Gets the number of active commercial bank or non-bank lender contacts covering each tier 3 contact type, for lenders that lend nationwide or target a state.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Lender Profiles</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Tier1",
            "in": "query",
            "description": "Commercial banks or non-banks, non-banks by default like the legacy report.",
            "schema": {
              "enum": [
                "Commercial",
                "NonBank",
                "Other"
              ],
              "type": "string"
            }
          },
          {
            "name": "StateId",
            "in": "query",
            "description": "The state the lenders target, -1 or empty for lenders that lend nationwide.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderCoverageReportItemDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/PendingInvoices": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Pending Invoices Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the invoices of every customer (companies, banks, data subscriptions and bank contact subscriptions), with filters or sort criteria. The newest invoices first by default, or the latest payment for paid invoices.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PendingInvoicesReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PendingInvoicesReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PendingInvoicesReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PendingInvoiceItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/PendingInvoices/DataSubscriptions/{dataSubscriptionGuid}/AddInvoice": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Add Data Subscription Invoice [Roles] [Controlled Objects]",
        "description": "Starts a pending invoice for a data subscription, like the legacy invoice report. Company and bank invoices are started with the company and bank invoice endpoints.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Edit Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dataSubscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSearchReport": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Deal Search Report [Roles] [Controlled Objects]",
        "description": "Gets a specific page of the deals matching keywords in their content, their financials, deal size, leverage ratio, cash equity, industry and state, with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSearchReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/DealSearchReport/Excel": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Download Deal Search Report [Roles] [Controlled Objects]",
        "description": "Downloads every deal matching the deal search report filters as an Excel file, in the requested sort order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ComplimentaryAnalysis": {
      "post": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Search Loan Assessments Report [Roles]",
        "description": "Gets a specific page of the loan assessments matching their company name, email address, status, submitted date and referring deal partner, with filters or sort criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Reports/ComplimentaryAnalysis/DealPartners": {
      "get": {
        "tags": [
          "Employee Reports",
          "Employees"
        ],
        "summary": "Get Loan Assessments Report Deal Partners [Roles]",
        "description": "Gets the deal partners loan assessments can be filtered by, in name order.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisDealPartnerDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/Current": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Employees"
        ],
        "summary": "Current User [Roles]",
        "description": "Gets the user entity tied to the currently authenticate user making the request.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCurrentUserDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/AccountSettings": {
      "get": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Get Employee Account Settings [Roles]",
        "description": "Will get the employee account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Update Employee Account Settings [Roles]",
        "description": "Will update the employee account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/SMSSettings": {
      "get": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Get Employee SMS Settings [Roles]",
        "description": "Will get the employee SMS communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Update Employee SMS Settings [Roles]",
        "description": "Will update the employee account SMS communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Dashboard": {
      "get": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Employee Dashboard [Roles]",
        "description": "<p>Gets all of the details of an employee dashboard.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDashboardDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Dashboard/ReportHelper": {
      "get": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Dashboard Deal Summary Report [Roles]",
        "description": "<p>Gets the data required to populate drop-downs and other reporting needs.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DashboardReportHelperDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Dashboard/DealSummaryReport": {
      "post": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Dashboard Deal Summary Report [Roles]",
        "description": "<p>Search the dashboard deal summary report by the provided parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryDashboardReportParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryDashboardReportParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryDashboardReportParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealStatusCountAndAverageDealSizeReportDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Dashboard/DealSummaryReport/CountDrillIn": {
      "post": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Deal Summary Report Count Drill-In [Roles]",
        "description": "<p>Drill-in data details of deal summary report data filtered down for counts display.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ViewDealStatusDashboardCountDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Dashboard/DealSummaryReport/AmountDrillIn": {
      "post": {
        "tags": [
          "Employees",
          "Users"
        ],
        "summary": "Deal Summary Report Amount Drill-In [Roles]",
        "description": "<p>Drill-in data details of deal summary report data filtered down for amounts display.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ViewDealStatusDashboardAmountDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Companies": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Companies [Roles]",
        "description": "<p>Lookup companies by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Banks": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Banks [Roles]",
        "description": "<p>Lookup banks by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Companies/{companyGuid}/AvailableForMerge": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Available For Merge Companies [Roles]",
        "description": "<p>Lookup companies available for merge by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Companies/{companyGuid}/AvailableAsPortfolio": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Available As Portfolio Companies [Roles]",
        "description": "<p>Lookup companies available to be added as a portfolio company by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "companyGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Banks/{bankGuid}/AvailableForMerge": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Available For Merge Banks [Roles]",
        "description": "<p>Lookup banks available for merge by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/BankDealProfiles": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Bank Deal Profiles [Roles]",
        "description": "<p>Lookup banks by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankProfileLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Deals": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Deals [Roles]",
        "description": "<p>Lookup deals by either deal name or company name. Deals without a deal name are found by company name.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDealLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Reports": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Reports [Roles]",
        "description": "<p>Lookup reports by name to populate auto-complete options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeBankProfileLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/Lookups/Users": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Lookup Users [Roles]",
        "description": "<p>Lookup users by last name or email address. Employee and consultant users are returned once, other users are returned once per company or bank they belong to.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "term",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/TransactionManagers": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Get Transaction Managers [Roles]",
        "description": "Gets list of active Cerebro employee transaction managers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Employees/{userGuid}/EmployeeUsers": {
      "get": {
        "tags": [
          "Employees",
          "Lookups"
        ],
        "summary": "Get Employee Users [Roles]",
        "description": "Gets list of active Cerebro employees.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExistingDebtTerms": {
      "get": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Get Existing Debt Terms [Roles]",
        "description": "<p>Get all term sheets for a data room by deal guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExistingDebtTerms/{termSheetGuid}": {
      "get": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Existing Debt Term Sheet [Roles] [Controlled Objects]",
        "description": "<p>Gets a specific term sheet by deal guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Delete Existing Debt Term [Roles] [Controlled Objects]",
        "description": "<p>Deletes a term sheet and it's child records (fees and collateral) by deal guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExistingDebtTerms/{termSheetGuid}/Revisions/{revisionGuid}": {
      "get": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Existing Debt Term Sheet Revision [Roles] [Controlled Objects]",
        "description": "<p>Gets specific revision by term sheet and all detail.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Update Term Sheet Revision [Roles] [Controlled Objects]",
        "description": "<p>Will update the data room term sheet revision.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "termSheetGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revisionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Deals/{dealGuid}/ExistingDebtTerms/Add": {
      "post": {
        "tags": [
          "Deals",
          "Existing Debt Terms"
        ],
        "summary": "Add Existing Debt Term [Roles] [Controlled Objects]",
        "description": "<p>Adds a new term sheet from a specified lender for a deal data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AddExistingTermFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AddExistingTermFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.AddExistingTermFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Integrations/Config": {
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": " [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Companies/{id}": {
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Company by Id [Roles]",
        "description": "<p>Gets HubSpot company by id.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Update Company [Roles]",
        "description": "<p>Updates a HubSpot Company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Companies/GetByDomain": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Company by domain [Roles]",
        "description": "<p>Gets HubSpot company by domain.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Companies/GetByName": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Company by name [Roles]",
        "description": "<p>Gets HubSpot company by name.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Companies": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Create Company [Roles]",
        "description": "<p>Creates a HubSpot Company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Companies/{companyId}": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Upsert Company [Roles]",
        "description": "<p>Creates or Updates a HubSpot Company .</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.Decimal, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.Decimal, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.Decimal, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.UpsertContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/{id}": {
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Contact by Id [Roles]",
        "description": "<p>Gets HubSpot contact by id.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Update Contact [Roles]",
        "description": "<p>Updates a HubSpot Contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/GetByEmail": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Contact by email [Roles]",
        "description": "<p>Gets HubSpot contact by email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Create Contact [Roles]",
        "description": "<p>Creates a HubSpot Contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/CompanyContact/{contactId}": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Upsert Company Contact [Roles]",
        "description": "<p>Creates or Updates a HubSpot Company Contact (and associated company if needed).</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.UpsertContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/BankContact/{contactId}": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Upsert Bank Contact [Roles]",
        "description": "<p>Creates or Updates a HubSpot Bank Contact (and associated company if needed).</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.UpsertContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/BankContactTeamMember/{contactId}": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Create Bank Contact Team Member [Roles]",
        "description": "<p>Creates or Updates a HubSpot Bank Contact Team Member (and associated company if needed).</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.UpsertContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Contacts/{id}/Associate": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Associate Contact [Roles]",
        "description": "<p>Associates a HubSpot Contact with a Company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Associated Companies [Roles]",
        "description": "<p>Gets a HubSpot contact associated companies.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals/{id}": {
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Deal by Id [Roles]",
        "description": "<p>Gets HubSpot deal by id.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Update Deal [Roles]",
        "description": "<p>Updates a HubSpot Deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Delete Deal [Roles]",
        "description": "<p>Deletes a HubSpot Deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals/GetByName": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Deal by name [Roles]",
        "description": "<p>Gets HubSpot deal by name.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Create Deal [Roles]",
        "description": "<p>Creates a HubSpot Deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals/{id}/AssociateContacts": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Associate Contact [Roles]",
        "description": "<p>Associates a HubSpot Deal with a Contact.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals/{id}/AssociateCompanies": {
      "put": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Associate Company [Roles]",
        "description": "<p>Associates a HubSpot Deal with a Company.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Associatated Companies [Roles]",
        "description": "<p>Get Companies associated with a HubSpot Deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpot/Deals/Pipelines": {
      "get": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Get Pipelines [Roles]",
        "description": "<p>Gets Hubspot pipelines.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/HubSpotWebhooks/DealUpdate": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/SubscriptionDealUpdate": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/BreadcrumbUpdate": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/AssignSalesRep": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/RawLeadOptOut": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/RawLeadUpdate": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/HubSpotWebhooks/ContactTypeUpdate": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Chat/SyncHubSpot": {
      "post": {
        "tags": [
          "HubSpot"
        ],
        "summary": "Sync Chat Conversation with HubSpot [Roles] [Scopes]",
        "description": "Finds or creates the HubSpot Contact matching a Xavier chat lead's email, and creates/updates a Note on it with the full chat transcript.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>SyncWithHubspot</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Get [Roles]",
        "description": "<p>Gets an invoice by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Invoices"
        ],
        "summary": "Delete Invoice [Roles]",
        "description": "<p>Deleting an invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Payments/{paymentGuid}/SyncHubspot": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Sync Payment to Hubspot [Roles] [Scopes]",
        "description": "Will sync a cerebro invoice payment details to hubspot.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>SyncWithHubspot</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoicePaymentDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Download": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Downloads Invoice File [Roles]",
        "description": "<p>Downloads the invoice PDF file from AWS.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/RegeneratePdf": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Regenerate Invoice File [Roles]",
        "description": "<p>Downloads the invoice PDF file from AWS.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/MakePayment": {
      "post": {
        "tags": [
          "Stripe"
        ],
        "summary": "Make Payment [Roles]",
        "description": "<p>Makes a payment for an invoice using an existing payment method. Creates a customer profile and saves payment method for future use if specified.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.MakePaymentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.MakePaymentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.MakePaymentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Payments": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Apply Payment [Roles] [Controlled Objects]",
        "description": "<p>Records a manual payment (check, wire transfer, cash, write-off, etc.) against an invoice. Nothing is charged. Sends the invoice paid email (except for credit memos, write-offs and lender Credit Explorer invoices) and syncs to HubSpot.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Subscriptions, Products & Invoices</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Process": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Process Invoice [Roles]",
        "description": "<p>Will create invoice PDF, process payment if configured, and email if requested.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ProcessInvoiceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ProcessInvoiceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.ProcessInvoiceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.PaymentResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/PaymentScheduleItems/{itemGuid}/Process": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Process Invoice Payment Schedule Item [Roles]",
        "description": "Will paid the payment schedule item if a card is on file, otherwise it will email the invoice.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "itemGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.PaymentResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Approve": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Approve Pending Invoice [Roles]",
        "description": "<p>Approving a pending invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Contacts": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Add Invoice Contact [Roles]",
        "description": "<p>Adding a contact to an invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Contacts/{contactId}": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "summary": "Edit Invoice Contact [Roles]",
        "description": "<p>Updating a specific contact for a system invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Details": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "summary": "Edit Invoice Details [Roles]",
        "description": "<p>Editing invoice details.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDetailsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDetailsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDetailsFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/PaymentScheduleItems": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Add Payment Schedule Item [Roles]",
        "description": "<p>Adding a custom payment schedule item to an invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/PaymentScheduleItems/{scheduleGuid}": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "summary": "Edit Payment Schedule Item [Roles]",
        "description": "<p>Updating a specific custom payment schedule item for a system invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scheduleGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Invoices"
        ],
        "summary": "Delete Payment Schedule Item [Roles]",
        "description": "<p>Deleting a specific custom payment schedule item for a system invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scheduleGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/LineItems": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Add Invoice Line Item [Roles]",
        "description": "<p>Adding a line item to an invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/LineItems/{lineItemGuid}": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "summary": "Edit Invoice Line Item [Roles]",
        "description": "<p>Updating a specific line item for a system invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Invoices"
        ],
        "summary": "Delete Invoice Line Item [Roles]",
        "description": "<p>Deleting a specific line item for a system invoice.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lineItemGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/{invoiceGuid}/Send": {
      "patch": {
        "tags": [
          "Invoices"
        ],
        "summary": "Send Invoice [Roles]",
        "description": "<p>Sending an invoice email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Consultant</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "Body",
                  "From",
                  "Subject"
                ],
                "type": "object",
                "properties": {
                  "To": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "int64"
                    }
                  },
                  "From": {
                    "type": "string"
                  },
                  "Recipients": {
                    "type": "string"
                  },
                  "RecipientList": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Cc": {
                    "type": "string"
                  },
                  "CcList": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Subject": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string"
                  },
                  "Attachments": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "To": {
                  "style": "form"
                },
                "From": {
                  "style": "form"
                },
                "Recipients": {
                  "style": "form"
                },
                "RecipientList": {
                  "style": "form"
                },
                "Cc": {
                  "style": "form"
                },
                "CcList": {
                  "style": "form"
                },
                "Subject": {
                  "style": "form"
                },
                "Body": {
                  "style": "form"
                },
                "Attachments": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Invoices/BankAccounts": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Get Active Bank Accounts [Roles]",
        "description": "Gets all of the active bank accounts that can be used for invoicing.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.BankAccountDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/IronPdf/GenerateInvoice/{invoiceGuid}": {
      "get": {
        "tags": [
          "IronPDF"
        ],
        "summary": "Generate Invoice PDF [Roles]",
        "description": "<p>Will generate an IronPDF invoice file and save it to S3 and invoice record by invoice guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "invoiceGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Jobs/{jobGuid}/Run": {
      "post": {
        "tags": [
          "Jobs"
        ],
        "summary": "Run Job [Roles] [Scopes]",
        "description": "Will run a specific lambda job by job guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>RunJobs</li>\n</ul>\n",
        "parameters": [
          {
            "name": "jobGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Messaging.LambdaResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lambda/NonFinancialCovenantUpload": {
      "post": {
        "tags": [
          "Lambda"
        ],
        "summary": "Non-Financial Covenant Upload [Roles] [Scopes]",
        "description": "Will run a specific lambda for calling the non-financial covenant upload request.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>ExcelDownloads</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lambda.Models.NonFinancialCovenantUploadParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lambda.Models.NonFinancialCovenantUploadParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lambda.Models.NonFinancialCovenantUploadParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Messaging.LambdaResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/Current": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Lenders"
        ],
        "summary": "Current User [Roles]",
        "description": "Gets the user entity tied to the currently authenticate user making the request.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LenderCurrentUserDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Settings": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Bank Contact Settings [Roles]",
        "description": "Will get the bank contact account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.AccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Update Bank Contact Settings [Roles]",
        "description": "Will update the bank contact account communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.AccountSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.AccountSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.AccountSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.AccountSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Banks/{bankGuid}/Lookups/BankContacts": {
      "get": {
        "tags": [
          "Lenders"
        ],
        "summary": "Bank Contacts Lookup List [Roles]",
        "description": "<p>Gets a list of bank contacts to be displayed in a list.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactLookupDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Invoices": {
      "get": {
        "tags": [
          "Lenders"
        ],
        "summary": " [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/LoanWatchProductDetails": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Loan Watch Product for Checkout [Roles]",
        "description": "Gets the active loan watch product and other checkout details needed.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.ActivateLoanWatchPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/StartLoanWatch": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Start Loan Watch Subscription [Roles]",
        "description": "Will create a new loan watch subscription and attempt to pay the initial invoice with Stripe.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.StartSubscriptionFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.StartSubscriptionFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.StartSubscriptionFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.ActivateLoanWatchPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Bank Contact Subscriptions [Roles]",
        "description": "Will get the bank contact account subscriptions.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LoanWatchSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/Active": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Active Bank Contact Subscription [Roles]",
        "description": "Will get the bank contact account subscriptions.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.GetActiveLoanWatchSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/Cancel": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Cancel Bank Contact Subscription [Roles]",
        "description": "Will cancel a specific bank contact account subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CancelBankContactSubscriptionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CancelBankContactSubscriptionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CancelBankContactSubscriptionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactSubscriptionDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PreMarketDeals/{emailGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "View Pre-Market Deal for Bank Contact [Roles]",
        "description": "Fetches pre-market deals for a bank contact and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewPreMarketDealDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PreMarketDeals/{emailGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Express Interest for Bank Contact [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PreMarketDeals/{emailGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Not Interested for Bank Contact [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "emailGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/RawLeadDeals/{dealGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Raw Lead Deal Details for Lender [Roles]",
        "description": "Gets the configuration information for the raw lead deals for lenders.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.RawLeadDealDetailDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/RawLeadDeals/{dealGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Raw Lead Deal Express Interest for Bank Contact [Roles]",
        "description": "Will update/create a raw lead deal interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/RawLeadDeals/{dealGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Raw Lead Deal Not Interested for Bank Contact [Roles]",
        "description": "Will update/create a raw lead deal interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "View Pain Point Facility [Roles]",
        "description": "Fetches term sheet pain point facility for loan watch subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Pain Point Facility Clear Interest [Roles]",
        "description": "Will remove the term sheet paint point facility interest record for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Express Interest [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Not Interested [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise View Pain Point Facility [Roles]",
        "description": "Fetches term sheet pain point facility for enterprise loan watch subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Pain Point Facility Clear Interest [Roles]",
        "description": "Will remove the term sheet paint point facility interest record for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Term Sheet Facility Express Interest [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/PainPointFacility/{facilityGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Term Sheet Facility Not Interested [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as not interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PainPointFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "View Pain Point Facility for Bank Contact [Roles]",
        "description": "Fetches term sheet pain point facility for lender without a subscription and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PainPointFacility/{facilityGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Pain Point Facility Clear Interest for Bank Contact [Roles]",
        "description": "Will remove the term sheet paint point facility interest record for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PainPointFacility/{facilityGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Express Interest for Bank Contact [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PainPointFacility/{facilityGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Not Interested for Bank Contact [Roles]",
        "description": "Will update/create a term sheet paint point facility interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "View Term Sheet Facility [Roles]",
        "description": "Fetches term sheet facility and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Clear Interest [Roles]",
        "description": "Will remove the term sheet facility interest record for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Express Interest [Roles]",
        "description": "Will update/create a term sheet facility interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Term Sheet Facility Not Interested [Roles]",
        "description": "Will update/create a term sheet facility interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise View Term Sheet Facility [Roles]",
        "description": "Fetches term sheet facility and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Term Sheet Facility Clear Interest [Roles]",
        "description": "Will remove the term sheet facility interest record for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Term Sheet Facility Express Interest [Roles]",
        "description": "Will update/create a term sheet facility interest record marked as interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/TermSheetFacility/{facilityGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Term Sheet Facility Not Interested [Roles]",
        "description": "Will update/create a term sheet facility interest record marked as not interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "facilityGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "View Deal Opportunity [Roles]",
        "description": "Fetches deal and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewDealOpportunityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Deal Opportunity Clear Interest [Roles]",
        "description": "Will remove the deal opportunity interest record for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Deal Opportunity Express Interest [Roles]",
        "description": "Will update/create a deal opportunity interest record marked as interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Subscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Deal Opportunity Not Interested [Roles]",
        "description": "Will update/create a deal opportunity interest record marked as not interested for a specific bank contact subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise View Deal Opportunity [Roles]",
        "description": "Fetches deal and associated details for view.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.ViewDealOpportunityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/ClearInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Deal Opportunity Clear Interest [Roles]",
        "description": "Will remove the deal opportunity interest record for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/ExpressInterest": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Deal Opportunity Express Interest [Roles]",
        "description": "Will update/create a deal opportunity interest record marked as interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/DealOpportunities/{dealGuid}/NotInterested": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Deal Opportunity Not Interested [Roles]",
        "description": "Will update/create a deal opportunity interest record marked as not interested for a specific enterprise loan watch subscription account.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/BankContacts": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Bank Contacts [Roles]",
        "description": "Fetches all bank contacts for a enterprise loan watch subscription bank.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Create Enterprise Bank Contact [Roles]",
        "description": "Creates new bank contact from an enterprise loan watch subscription bank.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/BankContacts/{bankContactGuid}": {
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Update Enterprise Bank Contact [Roles]",
        "description": "Creates new bank contact from an enterprise loan watch subscription bank.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/BankContacts/{bankContactGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Account Details For Send [Roles]",
        "description": "<p>Get specific bank contact account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Send Bank Contact Account Details [Roles]",
        "description": "<p>Will send specific bank contact account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankContactGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/EnterpriseSubscriptions/{subscriptionGuid}/BankOffices": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Enterprise Bank Offices [Roles]",
        "description": "Fetches bank offices for an enterprise loan watch subscription bank.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankOfficeDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/SMSSettings": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Bank Contact SMS Settings [Roles]",
        "description": "Will get the bank contact SMS communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Update Bank Contact SMS Settings [Roles]",
        "description": "Will update the bank contact account SMS communication settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.SmsSettingsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/TeamMembers": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Gets Team Members [Roles]",
        "description": "<p>Get list of bank contact team members for the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/TeamMembers": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Creates Team Member [Roles]",
        "description": "<p>Create a new bank contact team member for the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/TeamMembers/{teamMemberGuid}": {
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Edit Team Member [Roles]",
        "description": "<p>Edits an existing bank contact team member for the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Team Member [Roles]",
        "description": "<p>Get specific bank contact team member for a lender by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactTeamMemberDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/TeamMembers/{teamMemberGuid}/AccountDetails": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Get Account Details For Send [Roles]",
        "description": "<p>Get specific bank contact team member account details to be emailed.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Send Team Member Account Details [Roles]",
        "description": "<p>Will send specific bank contact team member account details through email.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teamMemberGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/BorrowerReferrals": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Gets Lender Borrower Referrals [Roles]",
        "description": "<p>Get list of bank contact submitted borrower referrals.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BorrowerReferralDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Creates Lender Borrower Referral [Roles]",
        "description": "<p>Create a new bank contact lender borrower referral.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BorrowerReferralFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BorrowerReferralFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BorrowerReferralFormDto"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Gets Lender Finder Fee Details [Roles]",
        "description": "<p>Get all bank details for lender surrounding finder fee agreements and contacts, also known as premium options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Add Finder Fee Agreement [Roles]",
        "description": "<p>Add a new finder fee agreement for the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions/{agreementGuid}": {
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Update Finder Fee Agreement [Roles]",
        "description": "<p>Updates a finder fee agreement for the lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions/{agreementGuid}/Expire": {
      "post": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Expire Finder Fee Agreement [Roles]",
        "description": "<p>Updates a finder fee agreement for the lender, by setting expiration date to yesterday.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions/{agreementGuid}/Associate": {
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Associate Contacts Finder Fee Agreement [Roles]",
        "description": "<p>Associates bank contacts with a finder fee agreement not applied to all.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.AssociateFinderFeeContactsFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.AssociateFinderFeeContactsFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.AssociateFinderFeeContactsFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions/{agreementGuid}/Upload": {
      "patch": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Upload Finder Fee Agreement [Roles]",
        "description": "<p>Upload agreement document with a finder fee agreement.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "AgreementFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "AgreementFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PremiumOptions/{agreementGuid}/Download": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Downloads Finder Fee Agreement Document [Roles]",
        "description": "<p>Get all bank details for lender surrounding finder fee agreements and contacts, also known as premium options.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "agreementGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/StatusBar/BankContact": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Lender Status Bar [Roles]",
        "description": "<p>Gets all of the details of a bank contact dashboard.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LenderStatusBarDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Dashboard/BankContact": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Bank Contact Dashboard [Roles]",
        "description": "<p>Gets all of the details of a bank contact dashboard.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankDashboardDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/RawLeadInterests/{interestGuid}": {
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Update Raw Lead Interest [Roles]",
        "description": "<p>Updates a raw lead interest connection status.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "interestGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.UpdateRawLeadInterestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.UpdateRawLeadInterestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.UpdateRawLeadInterestDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Dashboard/TeamMember": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Team Member Dashboard [Roles]",
        "description": "<p>Gets all of the details of a bank contact dashboard.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberDashboardDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/Dashboard/Teasers/{teaserGuid}": {
      "get": {
        "tags": [
          "Data Room Teasers",
          "Lenders",
          "Users"
        ],
        "summary": "Get a Dashboard Teaser [Roles]",
        "description": "<p>Gets a data room teaser by guid for a specific lender.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "teaserGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.DashboardTeaserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/RawLeadInterests": {
      "post": {
        "tags": [
          "Lenders"
        ],
        "summary": "Search Raw Lead Interests [Roles]",
        "description": "<p>Searches raw lead interests for a specific lender and paged result.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.RawLeadInterestsSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.RawLeadInterestsSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.RawLeadInterestsSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.RawLeadInterestPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/PaymentMethod": {
      "get": {
        "tags": [
          "Lenders",
          "Users"
        ],
        "summary": "Payment Method [Roles]",
        "description": "<p>Gets all of the users payment method details from Stripe.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Lenders/{userGuid}/DirectConnectFilter": {
      "post": {
        "tags": [
          "Lenders"
        ],
        "summary": "Save DirectConnect Filter [Roles]",
        "description": "<p>Will create filter record if one does not exist, or update the existing one with the provided values.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/MarketTracker": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Market Tracker [Roles]",
        "description": "Pulls a page of market tracker data along with charting information for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/RefinanceOpportunities": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Refinance Opportunities [Roles]",
        "description": "Pulls a page of market tracker refinancing opportunities data along with charting information for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerRefinancingOpportunitiesSearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/DealOpportunities": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Deal Opportunities [Roles]",
        "description": "Pulls a page of deal opportunities for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>CompanyUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchResultDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/TreasuryReferrals/{subscriptionGuid}": {
      "get": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Treasury Referrals [Roles]",
        "description": "Pulls all the treasury referrals for the current user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.TreasuryReferralDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Submit Treasury Referrals [Roles]",
        "description": "Pulls all the treasury referrals for the current user.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.SubmitTreasuryFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.SubmitTreasuryFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.SubmitTreasuryFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.TreasuryReferralDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/PreMarketDeals": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Pre-Market Deals [Roles]",
        "description": "Pulls a page of pre-market deals for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealsSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealsSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealsSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/RawLeadDeals": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Raw Lead Deals [Roles]",
        "description": "Pulls a page of raw lead deals for a set of filter criteria.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RawLeadDealsSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RawLeadDealsSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RawLeadDealsSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LenderRawLeadDealPageDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/RawLeadDeals/{dealGuid}": {
      "get": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Get Single Raw Lead Deal [Roles]",
        "description": "Gets the details for a single raw lead deal by deal guid.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RawLeadDealDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/RawLeadDeals/ViewFilters": {
      "get": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "View Used Deal Critieria [Roles]",
        "description": "Gets the filter criteria for the raw lead deals list associated to the current users deal critiera.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.ViewDealCriteriaProfileFilteresDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/{userGuid}/FormHelper": {
      "get": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Loan Watch Form Helper [Roles]",
        "description": "Gets the form helper data for Loan Watch.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.LoanWatchFormHelperDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/LoanWatch/BankDeals": {
      "post": {
        "tags": [
          "Loan Watch"
        ],
        "summary": "Search Bank Deals [Roles]",
        "description": "<p>Search bank contacts list filtered by various parameters.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankGuid",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/EnterpriseLoanWatchSubscriptions/{subscriptionGuid}/CreateInvoice": {
      "post": {
        "tags": [
          "Invoices",
          "Loan Watch Subscriptions"
        ],
        "summary": "Create Subscription Invoice [Roles]",
        "description": "Will generate a monthly invoice for bank enterprise loan watch subscription.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/BankContactSubscriptions/{subscriptionGuid}/CreateInvoice": {
      "post": {
        "tags": [
          "Invoices",
          "Loan Watch Subscriptions"
        ],
        "summary": "Create Subscription Invoice [Roles]",
        "description": "Will delete the deal subscription and any child records as long as there are no invoice payments.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "parameters": [
          {
            "name": "subscriptionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Settings/All": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Application Settings [Roles]",
        "description": "Gets all application settings from the system.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.ApplicationSettingDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/ConditionTypes": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Condition Types [Roles]",
        "description": "Gets all configured condition types.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ConditionTypeDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ConditionTypeDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ConditionTypeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/DeclineReasons": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": " [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/FinancialCovenantTypes": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": " [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Industries": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Industries [Roles]",
        "description": "Gets a list of all industries.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/NaicsCodes": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Naics Codes [Roles]",
        "description": "<p>Get Naics Codes</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.NaicsCodeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/NaicsCodes/{code}": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Naics Code [Roles]",
        "description": "<p>Get's an NaicsCodeDto for a given Naics Code</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.NaicsCodeDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Questions": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Questions [Roles]",
        "description": "<p>Looks up the currently configured questions and their categories.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "activeOnly",
            "in": "query",
            "description": "If true, only active questions will be returned.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "includeLoanAppQuestions",
            "in": "query",
            "description": "If true, only questions for loan applications will be returned.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeCompanyQuestions",
            "in": "query",
            "description": "If true, only company questions will be returned.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "organizationGuid",
            "in": "query",
            "description": "Investment Organization's have their own set of questions to ask. If a valid guid is provided, the questions for that organization will be returned.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.QuestionDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/States": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get States - Country Code [Roles]",
        "description": "Get a list of states for a specified country, based on country code.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "countryCode",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "US"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/States/{countryId}": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get States - Country Id [Roles]",
        "description": "Get a list of states for a specified country, based on country identification number.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "countryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/TermSheetFees": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Term Sheet Fees [Roles]",
        "description": "Gets all configured term sheet fees.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFeeDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFeeDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFeeDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Timezone": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "summary": "Get Timezones [Roles]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "countryCode",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "US"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/IsProcessing": {
      "get": {
        "tags": [
          "Data Rooms",
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Matching Processing [Roles]",
        "description": "<p>Will return error to force retries while matching is processing.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{guid}": {
      "get": {
        "tags": [
          "Data Rooms",
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Get [Roles] [Controlled Objects]",
        "description": "<p>Gets the flattened details of a deal's matching data by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Data Rooms",
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Get [Roles] [Controlled Objects]",
        "description": "<p>Gets the flattened details of a deal's matching data by guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "guid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.DealMatchingDataUpdateResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/DealSizeLenderStats": {
      "get": {
        "tags": [
          "Matching"
        ],
        "summary": "Pulls the number of bank and non-bank lender matches against Industry, State, Revenue, EBTIDA, and Deal Size.",
        "description": "<p>Pulls the number of bank and non-bank lender matches against Industry, State, Revenue, EBTIDA, and Deal Size.</p>",
        "parameters": [
          {
            "name": "InvestorOwned",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "State",
            "in": "query",
            "required": true,
            "schema": {
              "maxLength": 3,
              "type": "string"
            }
          },
          {
            "name": "AcquisitionState",
            "in": "query",
            "schema": {
              "maxLength": 3,
              "type": "string"
            }
          },
          {
            "name": "Industry",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AcquisitionIndustry",
            "in": "query",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "name": "Revenue",
            "in": "query",
            "required": true,
            "schema": {
              "maximum": 300000000,
              "minimum": 0,
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Ebitda",
            "in": "query",
            "required": true,
            "schema": {
              "maximum": 300000000,
              "minimum": -300000000,
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "DealSize",
            "in": "query",
            "required": true,
            "schema": {
              "maximum": 300000000,
              "minimum": 0,
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "CountryType",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "B2b",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "B2c",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "B2g",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matches successfully returned",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealSizeLenderStat"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/api/Matching/{dealGuid}/Params": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Get deal matching params [Roles] [Controlled Objects]",
        "description": "<p>Gets the matching entity params that is used for the base of all other matching calls.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingParamsDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/Stats": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Get deal matching stats [Roles] [Controlled Objects]",
        "description": "<p>Get deal matching stats.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.DealMatchingStatDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/Tranches": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets the deal matching tranches [Roles] [Controlled Objects]",
        "description": "<p>Get the list of tranches for a deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.TrancheEvaluation"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/DealTypePreferences": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets the deal matching tranche preferences [Roles] [Controlled Objects]",
        "description": "<p>Get the list of available preference tranches for deal types.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.DealTypePreferenceDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/DealTypePreferences/{optionGuid}": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Update Loan Option Card [Roles] [Controlled Objects]",
        "description": "Updates the capacity and matched lenders details of a deal loan option card.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "optionGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LoanOptionOverrideFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LoanOptionOverrideFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LoanOptionOverrideFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LoanOptionOverrideDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/Lenders": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets lenders in tranche for deal. [Roles] [Controlled Objects]",
        "description": "<p>Get the list of lenders that match a specific tranche.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tier1",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "finderFee",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "filterType",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LenderMatchDrillInDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/TermSheets": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets term sheet facilities in tranche for deal. [Roles] [Controlled Objects]",
        "description": "<p>Get the list of term sheet facilities that match a deal and specific tranche.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tier1",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.TermSheetFacilityMatchDrillInDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/Search": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets lenders in tranche for deal. [Roles] [Controlled Objects]",
        "description": "<p>Get the list of lenders that match search criteria.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tier1",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tier3",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "geographyMode",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.LenderMatchDrillInDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/OutputAnalysis": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Gets deals output analysis. [Roles] [Controlled Objects]",
        "description": "<p>Get the output analysis for a specific deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.OutputAnalysisStructure"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/OutputAnalysis/Header": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Updates output analysis header. [Roles] [Controlled Objects]",
        "description": "<p>Adds or updates the output analysis header for a specific deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/OutputAnalysis/Item": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Updates output analysis item. [Roles] [Controlled Objects]",
        "description": "<p>Adds or updates the output analysis group line item for a specific deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/DealSearch": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Searches Teasers to Add From [Roles] [Controlled Objects]",
        "description": "Returns a list of data room teasers based on search criteria against exsiting deals.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.SearchOtherDealsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.SearchOtherDealsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.SearchOtherDealsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.TermSheetFacilityMatchDrillInDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/AddToDataRoom": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Creates Data Room Participants [Roles]",
        "description": "<p>Get the list of teasers and add them as participants in data room.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/AddToTeaser": {
      "post": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Creates Data Room Teasers [Roles]",
        "description": "<p>Get the list of teasers and create data room teasers.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/CurrentRates": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Current Rates [Roles] [Controlled Objects]",
        "description": "<p>Gets debt capacity config rates.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.DebtCapacityConfigDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Matching/{dealGuid}/Unavailable": {
      "get": {
        "tags": [
          "Deals",
          "Loan Applications",
          "Matching"
        ],
        "summary": "Tranche Unavailable Reasons [Roles] [Controlled Objects]",
        "description": "<p>Gets the reasons why a tranche is unavailable for a deal.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "dealGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "structure",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tier1",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Products/CreditExplorer": {
      "get": {
        "tags": [
          "Lookups",
          "Products"
        ],
        "summary": "Get Credit Explorer Products [Roles]",
        "description": "Get all the credit explorer products and any associated success fee tiers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Products/ComplianceNavigator": {
      "get": {
        "tags": [
          "Lookups",
          "Products"
        ],
        "summary": "Get Compliance Navigator Products [Roles]",
        "description": "Get all the compliance navigator products and any associated success fee tiers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n<li>TeamMember</li>\n<li>BankUser</li>\n</ul>\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/SMS/VerifyPhone": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Send SMS Phone Verification [Roles]",
        "description": "Will set the verification code and text message the provided phone number for verification.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/SMS/ResendCode": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Resend SMS Phone Verification [Roles]",
        "description": "Will resend the verification code already set to the provided phone number.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.VerifyPhoneDto"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/SMS/Send": {
      "post": {
        "tags": [
          "SMS"
        ],
        "summary": "Send SMS [Roles]",
        "description": "Will send an SMS text message to a specified phone number.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsDto"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.SendSmsResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Stripe": {
      "post": {
        "tags": [
          "Stripe"
        ],
        "summary": "Webhook",
        "description": "<p>webhook function configured to check that the event type was received, to handle the event, and return a 200 response.</p>",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Stripe/PaymentIntent/Confirm": {
      "post": {
        "tags": [
          "Stripe"
        ],
        "summary": "Update Payment Intent [Roles]",
        "description": "<p>Finalizes a payment for an invoice. Creates a customer profile and saves payment method for future use if specified.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Api Consumer</li>\n</ul>\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.StripeConfirmPaymentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.StripeConfirmPaymentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.StripeConfirmPaymentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Stripe/Customer/{customerId}/PaymentMethod/{paymentMethodId}": {
      "get": {
        "tags": [
          "Stripe"
        ],
        "summary": "Get Payment Method [Roles]",
        "description": "<p>Retreives a payment method for a given customer.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentMethodId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.PaymentMethodDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Stripe/PaymentMethod/{paymentMethodId}": {
      "patch": {
        "tags": [
          "Stripe"
        ],
        "summary": "Update Payment Method [Roles]",
        "description": "<p>Adds a new payment method to the stripe customer. Deletes any existing payment method(s).</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "paymentMethodId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/FormHelper": {
      "get": {
        "tags": [
          "Lookups",
          "Users"
        ],
        "summary": "Get the collection of helpers lists for a person form.",
        "responses": {
          "200": {
            "description": "Form List Helper Collections",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.PersonFormHelperDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets a user entity. [Roles] [Scopes] [Controlled Objects]",
        "description": "<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>Api Consumer</li>\n</ul>\n<br/>\n<h3>Scopes</h3>\n<p>All of the following scopes are required if an api consumer makes calls to this endpoint:</p>\n<ul>\n<li>GetUser</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Manage User Accounts</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A user entity",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/Person": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Users"
        ],
        "summary": "Gets the person based on user guid.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A Person Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.CurrentPersonDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Update Profile",
        "description": "Will update the current logged in users person details.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "EmailAddress",
                  "FirstName",
                  "LastName"
                ],
                "type": "object",
                "properties": {
                  "Prefix": {
                    "type": "string"
                  },
                  "FirstName": {
                    "type": "string"
                  },
                  "LastName": {
                    "type": "string"
                  },
                  "Suffix": {
                    "type": "string"
                  },
                  "Fullname": {
                    "type": "string"
                  },
                  "EmailAddress": {
                    "type": "string"
                  },
                  "Phone": {
                    "type": "string"
                  },
                  "AltPhone": {
                    "type": "string"
                  },
                  "TimeZoneId": {
                    "type": "string"
                  },
                  "Currency": {
                    "type": "string"
                  },
                  "JobTitle": {
                    "type": "string"
                  },
                  "ImageFile": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "Prefix": {
                  "style": "form"
                },
                "FirstName": {
                  "style": "form"
                },
                "LastName": {
                  "style": "form"
                },
                "Suffix": {
                  "style": "form"
                },
                "Fullname": {
                  "style": "form"
                },
                "EmailAddress": {
                  "style": "form"
                },
                "Phone": {
                  "style": "form"
                },
                "AltPhone": {
                  "style": "form"
                },
                "TimeZoneId": {
                  "style": "form"
                },
                "Currency": {
                  "style": "form"
                },
                "JobTitle": {
                  "style": "form"
                },
                "ImageFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.CurrentPersonDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/Current/{dataRoomGuid}/IsTeamMember": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Users"
        ],
        "summary": "Gets the person based on user guid.",
        "parameters": [
          {
            "name": "dataRoomGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A Person Entity",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/Current": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Users"
        ],
        "summary": "Gets the user entity tied to the currently authenticate user making the request.",
        "responses": {
          "200": {
            "description": "A User Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.CurrentUserDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/Current/Person": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Users"
        ],
        "summary": "Gets the person entity tied to the currently authenticate user making the request.",
        "responses": {
          "200": {
            "description": "A Person Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.CurrentPersonDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/AuthToken": {
      "get": {
        "tags": [
          "Authentication / Authorization",
          "Users"
        ],
        "summary": "Gets a Json Web Token (JWT) that can be used to make requests on behalf of a user.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Authentication was successfull",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.TokenModel"
                }
              }
            }
          },
          "400": {
            "description": "Something went wrong"
          }
        }
      }
    },
    "/api/Users/GetTransactionManagers/{selectedGuid}": {
      "get": {
        "tags": [
          "Lookups",
          "Users"
        ],
        "summary": "Get Transaction Managers [Roles] [Controlled Objects]",
        "description": "Gets list of active Cerebro employee transaction managers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "selectedGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/GetSalesReps/{selectedGuid}": {
      "get": {
        "tags": [
          "Lookups",
          "Users"
        ],
        "summary": "Get Sales Reps [Roles] [Controlled Objects]",
        "description": "Gets list of active Cerebro employee sales representatives.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "selectedGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/GetLenderRelationsManagers/{selectedGuid}": {
      "get": {
        "tags": [
          "Lookups",
          "Users"
        ],
        "summary": "Get Lender Relation Managers [Roles] [Controlled Objects]",
        "description": "Gets list of active Cerebro lender relation managers.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>CompanyUser</li>\n<li>Employee</li>\n<li>DealPartner</li>\n</ul>\n<br/>\n<h3>Controlled Objects</h3>\n<p>All of the following controlled objects are required if an employee user makes calls to this endpoint:</p>\n<ul>\n<li>Access Data Rooms</li>\n</ul>\n",
        "parameters": [
          {
            "name": "selectedGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/ControlledObjects": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get Lender Relation Managers [Roles]",
        "description": "<p></p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserControlledObjectDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserControlledObjectDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserControlledObjectDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/Unlock": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Unlocks User [Roles]",
        "description": "<p>Unlocks a user by their user guid.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/HelpForm": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Help Form [Roles]",
        "description": "<p>Sends a help request email to the customer support email address.</p><br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.HelpFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.HelpFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.HelpFormDto"
              }
            }
          }
        },
        "responses": {
          "404": {
            "description": "Not Found"
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/Contact": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the user contact information so that navigation can properly be rendered.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User Contact Object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserContactDto"
                }
              }
            }
          },
          "404": {
            "description": "User not found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/ConfigureMfa": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Configure MFA [Roles]",
        "description": "Will return the model needed for configuring MFA.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n<li>Consultant</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.ConfigureMfaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Save MFA Configuration [Roles]",
        "description": "Will update the users MFA configuration settings.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n<li>Consultant</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.MfaConfigurationForm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.MfaConfigurationForm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.MfaConfigurationForm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.ConfigureMfaDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/ChangePassword": {
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Change Password [Roles]",
        "description": "Will only allow the current logged in user to update their own password.<br/>\n<h3>Roles</h3>\n<p>One of the following roles are required makes calls to this endpoint:</p>\n<ul>\n<li>Employee</li>\n<li>BankUser</li>\n<li>TeamMember</li>\n<li>CompanyUser</li>\n<li>DealPartner</li>\n</ul>\n",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.ChangePasswordFormDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.ChangePasswordFormDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.ChangePasswordFormDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cerebro.Api.Shared.Common.ViewModels.PasswordValidationDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "deprecated": true,
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/api/Users/{userGuid}/DeleteEmployeePhoto": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Delete Employee Photo",
        "description": "Will delete the current logged in user's employee photo.",
        "parameters": [
          {
            "name": "userGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Cerebro.Api.Controllers.DebtCapacityHelpResponse": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.DTOs.ComplianceReportRequest": {
        "required": [
          "timeZoneId",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "The Id corresponding to the user requesting the generation of the compliance report.",
            "format": "int64"
          },
          "timeZoneId": {
            "type": "string",
            "description": "The timezone of the user requesting the generation of the compliance report."
          },
          "jobTitle": {
            "type": "string",
            "description": "The job title of the person who approved the compliance report.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.DTOs.CovenantCalculationRequest": {
        "required": [
          "targetIds"
        ],
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "targetIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.AcceptTermsRequest": {
        "type": "object",
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.AuthenticateApiRequest": {
        "type": "object",
        "properties": {
          "accessKeyId": {
            "type": "string",
            "description": "Your Application's Access Key Id.",
            "format": "uuid"
          },
          "secretAccessKey": {
            "type": "string",
            "description": "Your Application's Secret Access Key.",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.ForgotPasswordRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The email address (username) of the account. Validated by the handler so a malformed value gets the contract message, at most 254 characters.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.LoginRequest": {
        "required": [
          "password",
          "username"
        ],
        "type": "object",
        "properties": {
          "username": {
            "minLength": 1,
            "type": "string",
            "description": "An email address corresponding to the username of a Cerebro Capital account.",
            "format": "email"
          },
          "password": {
            "minLength": 1,
            "type": "string",
            "description": "The matching password for the provided username."
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.LoginResponse": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "factor": {
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.LogoutRequest": {
        "type": "object",
        "properties": {
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.MessageResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.MfaBypassRequest": {
        "required": [
          "code",
          "username"
        ],
        "type": "object",
        "properties": {
          "username": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "code": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.MfaStatus": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "graceEndsOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "canSkip": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.NextStep": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.PasswordResetInfoResponse": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "requiresTermsAcceptance": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.ResetPasswordErrorsResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": false,
        "description": "Field errors of the password reset: the keys are \"password\", \"confirmPassword\" and \"acceptTerms\"."
      },
      "Cerebro.Api.Features.Auth.Models.ResetPasswordRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "The code from the emailed reset link.",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "confirmPassword": {
            "type": "string",
            "nullable": true
          },
          "acceptTerms": {
            "type": "boolean",
            "description": "The supplemental terms of use were accepted (required when the reset info says so)."
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Every property is nullable on purpose: a missing or null value must reach the handler (generic 404 / field errors), not the implicit ModelState 400."
      },
      "Cerebro.Api.Features.Auth.Models.SendTotpCodeOverSmsResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Message explaining the outcome of the request."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.SessionResponse": {
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isSingleSignOn": {
            "type": "boolean"
          },
          "mfa": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.MfaStatus"
          },
          "termsDue": {
            "type": "boolean"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.VerifySecondFactorRequest": {
        "required": [
          "code"
        ],
        "type": "object",
        "properties": {
          "code": {
            "maxLength": 6,
            "minLength": 1,
            "type": "string",
            "description": "The six-digit code sent to the user's second factor for verification"
          },
          "createMfaTrustCookie": {
            "type": "boolean",
            "description": "Whether an Mfa Trust cookie should be appended to the response allowing the user to skip Mfa Verification for the next set of logins."
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.VerifyUserRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "The verification code of the link in the verification e-mail (the vCode query value).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Auth.Models.VerifyUserResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "resetCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "ResetCode is set only for a user who never logged in: the page goes to Reset Password with it, anyone else goes to Login."
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "doesAssetBasedDeals": {
            "type": "boolean"
          },
          "assetMaximumLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "accountsReceivableValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "accountsReceivableAdvanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInventory": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "advanceRateInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "equipmentValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "advanceRateNewHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "usedEquipmentValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "advanceRateUsedHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "fleetVehicleValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "usedFleetVehicleValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetUsedFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "marineVesselsValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "usedMarineVesselsValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetUsedMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "helicoptersValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedAssetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "usedHelicoptersValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetUsedHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "fixedWingAircraftValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "usedFixedWingAircraftValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetUsedFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "intellectualPropertyValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "assetIntellectualPropertyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetRoyalty": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "royaltyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "assetInterestMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "assetBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetPoFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "assetPoFinancingDescription": {
            "type": "string"
          },
          "doesAssetFactoring": {
            "type": "boolean",
            "nullable": true
          },
          "doesInventoryOnly": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedSectionNotes": {
            "type": "string"
          },
          "assetLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetWorkingCapitalAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetTangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetIntangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetBasedTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.AssetBasedProfileFormDto": {
        "type": "object",
        "properties": {
          "assetMaximumLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "accountsReceivableValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "accountsReceivableAdvanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInventory": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "advanceRateInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "doesInventoryOnly": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetPoFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "assetPoFinancingDescription": {
            "type": "string",
            "nullable": true
          },
          "doesAssetFactoring": {
            "type": "boolean",
            "nullable": true
          },
          "assetEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "equipmentValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "advanceRateNewHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "usedEquipmentValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "advanceRateUsedHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "fleetVehicleValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "usedFleetVehicleValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetUsedFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "marineVesselsValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "usedMarineVesselsValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetUsedMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "helicoptersValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedAssetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "usedHelicoptersValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetUsedHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "fixedWingAircraftValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "usedFixedWingAircraftValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetUsedFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "intellectualPropertyValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "assetIntellectualPropertyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetRoyalty": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyValuationMethod": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string",
            "nullable": true
          },
          "royaltyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "assetInterestMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "assetBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileAuditDto": {
        "required": [
          "createdOnDisplay"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "isFirstSave": {
            "type": "boolean"
          },
          "statusComments": {
            "type": "string"
          },
          "step1Changes": {
            "type": "string"
          },
          "step2Changes": {
            "type": "string"
          },
          "step3Changes": {
            "type": "string"
          },
          "step4Changes": {
            "type": "string"
          },
          "step5Changes": {
            "type": "string"
          },
          "step6Changes": {
            "type": "string"
          },
          "step7Changes": {
            "type": "string"
          },
          "step8Changes": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "createdOnDisplay": {
            "type": "string"
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "enum": [
              "Pending",
              "Approved",
              "Declined"
            ],
            "type": "string"
          },
          "lastReminderOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lineAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileLineAuditDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileDto": {
        "required": [
          "assetBasedList",
          "cashFlowLendingList",
          "contactSelectedItemTypeList",
          "dealCriteriaSections",
          "governmentProgramList",
          "otherList",
          "tier3ContactTypeList"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "bankName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "primaryCapitalType": {
            "enum": [
              "Debt",
              "Equity",
              "None"
            ],
            "type": "string"
          },
          "tier3ContactTypeList": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "Sba7a",
                "Sba504",
                "SeniorCash",
                "AssetWorkingCapital",
                "AssetEquipment",
                "RealEstateSenior",
                "MiddleMarket",
                "LeveragedFinance",
                "SyndicatedCapitalMarkets",
                "JuniorCash",
                "Mezzanine",
                "StructuredPrivateEquity",
                "RealEstateJunior",
                "EquityMinority",
                "EquityControl",
                "UnitrancheStretchSenior",
                "VentureCapital",
                "MiddleMarketSpecialist",
                "AssetIntangible",
                "Usda",
                "VentureDebt",
                "RecurringRevenue",
                "BridgeMcaLending"
              ],
              "type": "string"
            }
          },
          "isOnlyBridgeMcaLending": {
            "type": "boolean"
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastApprovedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "excludeFromDeals": {
            "type": "boolean"
          },
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "lenderScoreFlagText": {
            "type": "string",
            "nullable": true
          },
          "dealCriteriaSections": {
            "type": "array",
            "items": {
              "enum": [
                "General",
                "CriteriaSeniorCashFlow",
                "CriteriaJuniorCashFlow",
                "CriteriaAssetBased",
                "CriteriaVentureDebt",
                "CriteriaSba",
                "CriteriaSeniorRealEstate",
                "CriteriaJuniorRealEstate",
                "CriteriaEquityInvesting"
              ],
              "type": "string"
            }
          },
          "contactSelectedItemTypeList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          },
          "assetBasedList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          },
          "cashFlowLendingList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          },
          "governmentProgramList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          },
          "otherList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          },
          "generalBorrowerProfileStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalDealPurposeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalIndustriesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalGeographyStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetWorkingCapitalAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetTangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetIntangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetBasedTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaProgramsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaOtherDetailsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateFacilitiesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateUnderwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorRealEstateUnderwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorRealEstateTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorStructuresStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDealTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDealSizeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDebtTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "doesDealTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "underwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "equityInvestmentCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "equityInvestmentTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "hasSbaLending": {
            "type": "boolean"
          },
          "doesSeniorCashFlowDeals": {
            "type": "boolean"
          },
          "doesJuniorCashFlowDeals": {
            "type": "boolean"
          },
          "doesAssetBasedDeals": {
            "type": "boolean"
          },
          "doesVentureDebtDeals": {
            "type": "boolean"
          },
          "canCommercialRealEstateSenior": {
            "type": "boolean"
          },
          "canCommercialRealEstateJunior": {
            "type": "boolean"
          },
          "doesEquityInvestments": {
            "type": "boolean"
          },
          "activeAudit": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileAuditDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileLineAuditDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "lineChanges": {
            "type": "string"
          },
          "step": {
            "type": "integer",
            "format": "int32"
          },
          "isDelete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileRealEstateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "realEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string"
          },
          "realEstateTranche": {
            "enum": [
              "Senior",
              "JuniorMezzanine"
            ],
            "type": "string"
          },
          "office": {
            "type": "boolean"
          },
          "lendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumLtv": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tenor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isFixed": {
            "type": "boolean"
          },
          "baseRateType": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "spreadLow": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spreadHigh": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.EnumerationItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "doesEquityInvestments": {
            "type": "boolean"
          },
          "equityEnterpriseValueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityEnterpriseValueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityStructuredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityPreferredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityConvertibleInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityCommonInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equityNonControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equitySecRegistered": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateHighNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFamilyOffice": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeUnfundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeVenture": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateFund": {
            "type": "boolean",
            "nullable": true
          },
          "equitySectionNotes": {
            "type": "string"
          },
          "equityInvestmentCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "equityInvestmentTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.EquityInvestmentProfileFormDto": {
        "type": "object",
        "properties": {
          "equityEnterpriseValueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityEnterpriseValueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityStructuredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityPreferredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityConvertibleInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityCommonInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equityNonControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equitySecRegistered": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateHighNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFamilyOffice": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeUnfundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeVenture": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateFund": {
            "type": "boolean",
            "nullable": true
          },
          "equitySectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.FlagBankContactFormDto": {
        "required": [
          "lenderScoreFlag"
        ],
        "type": "object",
        "properties": {
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "lenderScoreFlagText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "legalLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isBusiness2Business": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Consumer": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Government": {
            "type": "boolean",
            "nullable": true
          },
          "mustHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "minimumYearsOperating": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mustNotHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "criteriaLendingStyle": {
            "enum": [
              "Generalist",
              "Specialist"
            ],
            "type": "string"
          },
          "specialtyFinanceLending": {
            "type": "boolean",
            "nullable": true
          },
          "lenderInsuranceFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mortgageWholesaleFinance": {
            "type": "boolean",
            "nullable": true
          },
          "consumerReceivablesFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mcaLenderFinance": {
            "type": "boolean",
            "nullable": true
          },
          "nonPerformingLoanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "sponsorFinance": {
            "type": "boolean",
            "nullable": true
          },
          "fundFinance": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyFinance": {
            "type": "boolean",
            "nullable": true
          },
          "ipFinance": {
            "type": "boolean",
            "nullable": true
          },
          "affordableHousingFinance": {
            "type": "boolean",
            "nullable": true
          },
          "energyIncentiveFinance": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "internationalLending": {
            "type": "boolean",
            "nullable": true
          },
          "countryTypeList": {
            "type": "array",
            "items": {
              "enum": [
                "UnitedStates",
                "Canada",
                "Mexico",
                "Brazil",
                "Europe",
                "Other"
              ],
              "type": "string"
            }
          },
          "countryTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "dealTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "generalSectionNotes": {
            "type": "string"
          },
          "generalBorrowerProfileStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalDealPurposeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalIndustriesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalGeographyStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "generalTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "specialtyIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetIndustryDto"
            }
          },
          "specialtyIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "specialtyIndustriesDisplay": {
            "type": "string"
          },
          "excludedIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetIndustryDto"
            }
          },
          "excludedIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "excludedIndustriesDisplay": {
            "type": "string"
          },
          "targetStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetStateDto"
            }
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "targetStateDisplay": {
            "type": "string"
          },
          "targetDealTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.TargetDealTypeDto"
            }
          },
          "targetDealTypeDisplay": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.GeneralProfileFormDto": {
        "type": "object",
        "properties": {
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "legalLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isBusiness2Business": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Consumer": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Government": {
            "type": "boolean",
            "nullable": true
          },
          "mustHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "minimumYearsOperating": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mustNotHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "criteriaLendingStyle": {
            "enum": [
              "Generalist",
              "Specialist"
            ],
            "type": "string",
            "nullable": true
          },
          "specialtyFinanceLending": {
            "type": "boolean",
            "nullable": true
          },
          "lenderInsuranceFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mortgageWholesaleFinance": {
            "type": "boolean",
            "nullable": true
          },
          "consumerReceivablesFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mcaLenderFinance": {
            "type": "boolean",
            "nullable": true
          },
          "nonPerformingLoanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "sponsorFinance": {
            "type": "boolean",
            "nullable": true
          },
          "fundFinance": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyFinance": {
            "type": "boolean",
            "nullable": true
          },
          "ipFinance": {
            "type": "boolean",
            "nullable": true
          },
          "affordableHousingFinance": {
            "type": "boolean",
            "nullable": true
          },
          "energyIncentiveFinance": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "excludedIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "specialtyIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "internationalLending": {
            "type": "boolean",
            "nullable": true
          },
          "countryTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "countryTypeEnum": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "dealTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "generalSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "doesJuniorCashFlowDeals": {
            "type": "boolean"
          },
          "juniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSecuredCollateralShortfall": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSecondLienTangibleOnly": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSecondLienAllAssets": {
            "type": "boolean",
            "nullable": true
          },
          "juniorMezzanine": {
            "type": "boolean",
            "nullable": true
          },
          "juniorStructuredEquity": {
            "type": "boolean",
            "nullable": true
          },
          "juniorInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "juniorCashTargetMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorCashTargetMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSourceReturnExitFees": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnWarrants": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnEquityCoInvest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnAccruedInterest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnIrr": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnMoic": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashSectionNotes": {
            "type": "string"
          },
          "juniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorStructuresStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.JuniorCashFlowProfileFormDto": {
        "type": "object",
        "properties": {
          "juniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSecondLienTangibleOnly": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSecondLienAllAssets": {
            "type": "boolean",
            "nullable": true
          },
          "juniorMezzanine": {
            "type": "boolean",
            "nullable": true
          },
          "juniorStructuredEquity": {
            "type": "boolean",
            "nullable": true
          },
          "juniorInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "juniorCashTargetMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorCashTargetMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSourceReturnExitFees": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnWarrants": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnEquityCoInvest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnAccruedInterest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnIrr": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnMoic": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.PostalCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "latitude": {
            "type": "number",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.ProfileFormHelperDto": {
        "type": "object",
        "properties": {
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "dealTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EnumerationItemDto"
            }
          },
          "countryTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.EnumerationItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.RealEstateFormDto": {
        "type": "object",
        "properties": {
          "hasSeniorRealEstateTermLoans": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateRevolvers": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateBridgeFacility": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateFacilitySaleLeaseback": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateSectionNotes": {
            "type": "string"
          },
          "juniorRealEstateSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.RealEstateProfileFormDto": {
        "type": "object",
        "properties": {
          "office": {
            "type": "boolean"
          },
          "lendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumLtv": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tenor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isFixed": {
            "type": "boolean"
          },
          "baseRateType": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string",
            "nullable": true
          },
          "spreadLow": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spreadHigh": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "hasSbaLending": {
            "type": "boolean"
          },
          "sba7aProgram": {
            "type": "boolean",
            "nullable": true
          },
          "sba504Program": {
            "type": "boolean",
            "nullable": true
          },
          "usdaBusinessProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaRuralEnergyProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCommunityProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usda9003Program": {
            "type": "boolean",
            "nullable": true
          },
          "isPreferredSbaLender": {
            "type": "boolean",
            "nullable": true
          },
          "usdaAllStates": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaSectionNotes": {
            "type": "string"
          },
          "showSba": {
            "type": "boolean"
          },
          "showUsda": {
            "type": "boolean"
          },
          "isSba7a": {
            "type": "boolean",
            "readOnly": true
          },
          "sbaPariPassuLending": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuRealEstateRequired": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuTargetDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuEquityInjectionPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sbaProgramsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaOtherDetailsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "sbaTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.SbaProfileFormDto": {
        "type": "object",
        "properties": {
          "sba7aProgram": {
            "type": "boolean",
            "nullable": true
          },
          "sba504Program": {
            "type": "boolean",
            "nullable": true
          },
          "usdaBusinessProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaRuralEnergyProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCommunityProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usda9003Program": {
            "type": "boolean",
            "nullable": true
          },
          "isPreferredSbaLender": {
            "type": "boolean",
            "nullable": true
          },
          "usdaAllStates": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuLending": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuRealEstateRequired": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuTargetDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuEquityInjectionPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "usdaCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "doesSeniorCashFlowDeals": {
            "type": "boolean"
          },
          "seniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorSecuredCollateralShortfall": {
            "type": "boolean",
            "nullable": true
          },
          "seniorInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "seniorLowEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorHighEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeMostlyRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeLtvLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeEbitdaLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeNegotiation": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeNeverRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorCashSectionNotes": {
            "type": "string"
          },
          "seniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.SeniorCashFlowProfileFormDto": {
        "type": "object",
        "properties": {
          "seniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeMostlyRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeLtvLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeEbitdaLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeNegotiation": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeNeverRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorInterestType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "seniorLowEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorHighEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorCashSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.SeniorRealEstateProfileDisplayDto": {
        "required": [
          "realEstates"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "canCommercialRealEstateSenior": {
            "type": "boolean"
          },
          "hasSeniorRealEstateTermLoans": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateRevolvers": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateBridgeFacility": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateFacilitySaleLeaseback": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateSectionNotes": {
            "type": "string"
          },
          "realEstates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.BankDealProfileRealEstateDto"
            }
          },
          "seniorRealEstateFacilitiesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateUnderwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.StartProfileFormDto": {
        "type": "object",
        "properties": {
          "tiers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.TargetDealTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dealType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.TargetIndustryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
          },
          "isSpecialty": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "postalCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.PostalCodeDto"
          },
          "milesRadius": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.TargetPostalCodeFormDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "milesRadius": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.TargetStateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileDisplayDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "doesVentureDebtDeals": {
            "type": "boolean"
          },
          "ventureSaasCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "ventureMedicalTechDevices": {
            "type": "boolean",
            "nullable": true
          },
          "ventureHealthCareIt": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherLifeSciences": {
            "type": "boolean",
            "nullable": true
          },
          "ventureTechEnabledBusinesses": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherTechnology": {
            "type": "boolean",
            "nullable": true
          },
          "ventureServicesBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "ventureIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendMonthlyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendAnnuallyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEbitda": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEnterpriseValue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureSectionNotes": {
            "type": "string"
          },
          "ventureDealTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDealSizeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDebtTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.VentureDebtProfileFormDto": {
        "type": "object",
        "properties": {
          "ventureSaasCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "ventureMedicalTechDevices": {
            "type": "boolean",
            "nullable": true
          },
          "ventureHealthCareIt": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherLifeSciences": {
            "type": "boolean",
            "nullable": true
          },
          "ventureTechEnabledBusinesses": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherTechnology": {
            "type": "boolean",
            "nullable": true
          },
          "ventureServicesBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "ventureIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendMonthlyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendAnnuallyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEbitda": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEnterpriseValue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureSectionNotes": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.BankDealProfiles.Models.ViewDealCriteriaProfileFilteresDto": {
        "type": "object",
        "properties": {
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "criteriaLendingStyle": {
            "enum": [
              "Generalist",
              "Specialist"
            ],
            "type": "string"
          },
          "excludedIndustriesDisplay": {
            "type": "string"
          },
          "specialtyIndustriesDisplay": {
            "type": "string"
          },
          "targetStateDisplay": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Banks.Models.ActionTakenDto": {
        "required": [
          "actionTakenBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "actionTakenType": {
            "enum": [
              "CalledXLeftVoicemail",
              "CalledXSpokeToContact",
              "EmailedContact",
              "NoneXNewInfo",
              "DeclinedDataRoomTeaser",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "actionTakenBy": {
            "type": "string"
          },
          "actionTakenDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionTakenNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Banks.Models.FinderFeeAgreementDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Banks.Models.PartialBank": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Request": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "transcriptText": {
            "type": "string"
          },
          "existingHubSpotContactId": {
            "type": "string",
            "nullable": true
          },
          "existingHubSpotNoteId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Chat.SyncChatConversationToHubSpot+Response": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "hubSpotContactId": {
            "type": "string",
            "nullable": true
          },
          "hubSpotNoteId": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.BorrowerNdaDto": {
        "type": "object",
        "properties": {
          "hasActiveCompanySubscription": {
            "type": "boolean"
          },
          "isContactParentCompany": {
            "type": "boolean"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.ParticipantCompanyDto"
            }
          },
          "activeNda": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
          },
          "availableNdas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyNdaDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.BorrowerParticipantsDto": {
        "type": "object",
        "properties": {
          "hasActiveCompanySubscription": {
            "type": "boolean"
          },
          "isContactParentCompany": {
            "type": "boolean"
          },
          "hasFullAccess": {
            "type": "boolean"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.ParticipantCompanyDto"
            }
          },
          "availableContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDto"
            }
          },
          "dataRoomContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanyContactDataRoomDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isAdmin": {
            "type": "boolean",
            "nullable": true
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "isBillingContact": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "canAccessDataRoom": {
            "type": "boolean"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "companyContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "accessType": {
            "enum": [
              "FullAccess",
              "LimitedAccess",
              "NoAccess"
            ],
            "type": "string",
            "readOnly": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanyContactDto": {
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ownershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "taxIdNumber": {
            "type": "string",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "treasuryMgmtFees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "foreignExchangeVolume": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sizeOf401Kplan": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "outstandingSwapValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "source": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reasonForComing": {
            "type": "string",
            "nullable": true
          },
          "referredBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "accountManagerPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "imageFileName": {
            "type": "string",
            "nullable": true
          },
          "existingBank": {
            "type": "string",
            "nullable": true
          },
          "existingAccountant": {
            "type": "string",
            "nullable": true
          },
          "existingLawFirm": {
            "type": "string",
            "nullable": true
          },
          "isGovtContractor": {
            "type": "boolean",
            "nullable": true
          },
          "percentGovtRevenue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "emailDomain": {
            "type": "string",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalDebt": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "numExistingFacilities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "salesRepPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "requiresFinancialApproval": {
            "type": "boolean",
            "nullable": true
          },
          "requiresCovenantApproval": {
            "type": "boolean",
            "nullable": true
          },
          "canAccessRelatedCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "isManagingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "isManagingFinancials": {
            "type": "boolean",
            "nullable": true
          },
          "isSoftwareSaasCompany": {
            "type": "boolean",
            "nullable": true
          },
          "customerType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showCreditExplorer": {
            "type": "boolean",
            "nullable": true
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "restrictedAccess": {
            "type": "boolean",
            "nullable": true
          },
          "covenantReminderTiming": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "accountingSystemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ndaEffectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ndaExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanyNdaDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isActiveNda": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto": {
        "required": [
          "billingPeriods",
          "deals",
          "hubspots",
          "invoices",
          "paymentTerms",
          "successFeeTiers"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "guaranteeTerms": {
            "type": "integer",
            "format": "int32"
          },
          "dealsPerYear": {
            "type": "integer",
            "format": "int32"
          },
          "dealsThisYear": {
            "type": "integer",
            "format": "int32"
          },
          "isNextAdditionalDeal": {
            "type": "boolean"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "firstYearSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "additionalDealFee": {
            "type": "number",
            "format": "double"
          },
          "additionalDealFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "subscriptionEndDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "agreementSignedBy": {
            "type": "string"
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementFileName": {
            "type": "string"
          },
          "contractFileName": {
            "type": "string"
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "refinanceBenefitAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "includeSbaExclusion": {
            "type": "boolean"
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceBenefitType": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string"
          },
          "dealStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          },
          "accountManager": {
            "type": "string"
          },
          "accountManagerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "send30DayNotice": {
            "type": "boolean",
            "nullable": true
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto"
            }
          },
          "paymentTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermDto"
            }
          },
          "billingPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.BillingPeriodDto"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyInvoiceDto"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.HubspotDealDto"
            }
          },
          "hubspots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionHubspotDto"
            }
          },
          "paymentTermsComplete": {
            "type": "boolean"
          },
          "isFullyEditable": {
            "type": "boolean",
            "readOnly": true
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          },
          "isCancelled": {
            "type": "boolean",
            "readOnly": true
          },
          "hasIncentivePricing": {
            "type": "boolean"
          },
          "incentiveSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "incentiveExpirationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "successFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "allowUploadContract": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanySubscriptionFormDto": {
        "type": "object",
        "properties": {
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "guaranteeTerms": {
            "type": "integer",
            "format": "int32"
          },
          "dealsPerYear": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "firstYearSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "additionalDealFee": {
            "type": "number",
            "format": "double"
          },
          "additionalDealFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasIncentivePricing": {
            "type": "boolean"
          },
          "incentiveSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "incentiveExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "minimumSuccessFee": {
            "maximum": 999999999.99,
            "minimum": 0.01,
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "successFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "includeSbaExclusion": {
            "type": "boolean"
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceBenefitType": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string"
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "send30DayNotice": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceBenefitAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CompanySubscriptionHubspotDto": {
        "required": [
          "createdOn"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealLaunchedCount": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CreateCompanyContactAndDataRoomDto": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "accessStatus": {
            "enum": [
              "FullAccess",
              "LimitedAccess",
              "NoAccess"
            ],
            "type": "string"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CreateCompanyContactDataRoomDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "accessStatus": {
            "enum": [
              "FullAccess",
              "LimitedAccess",
              "NoAccess"
            ],
            "type": "string"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.CreateCompanyNdaDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.HedgeReportDetail": {
        "type": "object",
        "properties": {
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "lenders": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "facilityDetail": {
            "type": "string",
            "nullable": true
          },
          "isHedgeRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isHedgeInPlace": {
            "type": "boolean",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "hedgeLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hedgeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentHedged": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "nullable": true
          },
          "companyStatus": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementActive": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityActive": {
            "type": "string",
            "nullable": true
          },
          "internalCompanyCode": {
            "type": "string"
          },
          "securityId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.LoanReport": {
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.LoanReportDetail"
            },
            "description": "A collection of the detail records for each loan agreement for a given company and it's children companies"
          },
          "extracts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.LoanReportAgreementExtract"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.LoanReportAgreementExtract": {
        "type": "object",
        "properties": {
          "guarantor": {
            "type": "string",
            "nullable": true
          },
          "fund": {
            "type": "string",
            "nullable": true
          },
          "designation": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "commitmentExposure": {
            "type": "number",
            "format": "double"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalLoanAgreements": {
            "type": "integer",
            "format": "int32"
          },
          "companies": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.LoanReportDetail": {
        "type": "object",
        "properties": {
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "description": "A Guid that can be used to look up more information about the company who owns these details.",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "description": "The name of the company who owns these details.",
            "nullable": true
          },
          "lenders": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "facilityDetail": {
            "type": "string",
            "nullable": true
          },
          "collateralDetails": {
            "type": "string",
            "nullable": true
          },
          "jvNonJv": {
            "type": "string",
            "nullable": true
          },
          "maxAdvance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "creditSupport": {
            "type": "string",
            "nullable": true
          },
          "isLimitedRecourseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "directPaymentGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEquityFundingCommitment": {
            "type": "boolean",
            "nullable": true
          },
          "isEquityFundingCommitmentCap": {
            "type": "boolean",
            "nullable": true
          },
          "equityFundingCommitmentCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCarryGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCarryGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "carryGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCompletionGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCompletionGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "completionGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isFranchiseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isFranchiseGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "franchiseGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isOtherGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "creditSupportDetails": {
            "type": "string",
            "nullable": true
          },
          "marketToMarket": {
            "type": "string",
            "nullable": true
          },
          "marketToMarketDetail": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "maximumFacilityAmount": {
            "type": "integer",
            "format": "int64"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "originationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "initialMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "potentialMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "facilityHedgeRequired": {
            "type": "string",
            "nullable": true
          },
          "facilityRequirementDetails": {
            "type": "string",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRate": {
            "type": "string",
            "nullable": true
          },
          "hedgeCount": {
            "type": "integer",
            "format": "int32"
          },
          "outstandingAmountAsOf": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "additionalDrawExpiryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyStatus": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementActive": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityActive": {
            "type": "string",
            "nullable": true
          },
          "internalCompanyCode": {
            "type": "string"
          },
          "securityId": {
            "type": "string"
          },
          "paymentDate": {
            "type": "string"
          },
          "paymentFrequency": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.ParticipantCompanyDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "isParentCompany": {
            "type": "boolean"
          },
          "isChildCompany": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.UpdateCompanyContactDataRoomDto": {
        "type": "object",
        "properties": {
          "accessStatus": {
            "enum": [
              "FullAccess",
              "LimitedAccess",
              "NoAccess"
            ],
            "type": "string"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Companies.Models.UpdateCompanyDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ownershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "taxIdNumber": {
            "type": "string",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "treasuryMgmtFees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "foreignExchangeVolume": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sizeOf401Kplan": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "outstandingSwapValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "source": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reasonForComing": {
            "type": "string",
            "nullable": true
          },
          "referredBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "accountManagerPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "imageFileName": {
            "type": "string",
            "nullable": true
          },
          "existingBank": {
            "type": "string",
            "nullable": true
          },
          "existingAccountant": {
            "type": "string",
            "nullable": true
          },
          "existingLawFirm": {
            "type": "string",
            "nullable": true
          },
          "isGovtContractor": {
            "type": "boolean",
            "nullable": true
          },
          "percentGovtRevenue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "emailDomain": {
            "type": "string",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalDebt": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "numExistingFacilities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "salesRepPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "requiresFinancialApproval": {
            "type": "boolean",
            "nullable": true
          },
          "requiresCovenantApproval": {
            "type": "boolean",
            "nullable": true
          },
          "canAccessRelatedCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "isManagingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "isManagingFinancials": {
            "type": "boolean",
            "nullable": true
          },
          "isSoftwareSaasCompany": {
            "type": "boolean",
            "nullable": true
          },
          "customerType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showCreditExplorer": {
            "type": "boolean",
            "nullable": true
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "restrictedAccess": {
            "type": "boolean",
            "nullable": true
          },
          "covenantReminderTiming": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "accountingSystemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ndaEffectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ndaExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyDto": {
        "required": [
          "companyName",
          "companyTypeId",
          "countryId"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "companyTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryId": {
            "maximum": 9.223372036854776E+18,
            "minimum": 1,
            "type": "integer",
            "format": "int64"
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "internalCodeId": {
            "type": "integer",
            "description": "An internal code of the parent company; -1 creates Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyDto.NewInternalCodeValue.",
            "format": "int64",
            "nullable": true
          },
          "newInternalCodeValue": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyFormHelperDto": {
        "type": "object",
        "properties": {
          "parentCompanyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "parentCompanyName": {
            "type": "string"
          },
          "childCompanyTerm": {
            "type": "string",
            "nullable": true
          },
          "companyTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceStateItemDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceInternalCodeDto"
            },
            "description": "The internal codes of the parent company."
          },
          "defaultCountryId": {
            "type": "integer",
            "description": "The United States.",
            "format": "int64"
          },
          "defaultCurrency": {
            "type": "string",
            "description": "The currency of the parent company."
          }
        },
        "additionalProperties": false,
        "description": "The choices of the add related company form."
      },
      "Cerebro.Api.Features.Compliance.Models.AddRelatedCompanyResultDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ApproveCertificateReportDto": {
        "type": "object",
        "properties": {
          "approverName": {
            "type": "string",
            "description": "The typed full name of the signer (required, at most 128 characters); stored as `ApprovedByName` and printed on the certificate.",
            "nullable": true
          },
          "consent": {
            "type": "boolean",
            "description": "The consent to digitally sign the report; must be true (the legacy checkbox was a client side check only).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `POST .../Approve`. Both values are nullable so a missing one is a 400 on its key."
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeActionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "`add`, `replace` or `removeAll`."
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeContactDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "\"Last, First\"."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeCovenantDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "\"Last, First\" of the ACTIVE assignments."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeDto": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "description": "`add`, `replace` or `removeAll`.",
            "nullable": true
          },
          "contactGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The company contacts of the form; ignored for `removeAll`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "scope": {
            "type": "string",
            "description": "`financial` or `support`."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeContactDto"
            },
            "description": "Active, not third party contacts of the company, or of its parent when it has one."
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeCovenantDto"
            },
            "description": "The covenants a save affects, in the order of the page; empty = nothing to assign."
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.AssignSmeActionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssignSmeResultDto": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "covenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "changedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.AssociateExistingCompanyDto": {
        "type": "object",
        "properties": {
          "targetCompanyGuid": {
            "type": "string",
            "description": "The company to associate; a nullable guid so a missing value is a 400 and not the empty guid.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `POST .../RelatedCompanies/Existing`."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateAttachmentSavedDto": {
        "type": "object",
        "properties": {
          "attachment": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportAttachmentDto"
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
          }
        },
        "additionalProperties": false,
        "description": "201 of the attachment add."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          },
          "canManage": {
            "type": "boolean"
          },
          "canEditContent": {
            "type": "boolean"
          },
          "canEditRawText": {
            "type": "boolean"
          },
          "canAddReference": {
            "type": "boolean"
          },
          "canDeleteReference": {
            "type": "boolean"
          },
          "canMarkReady": {
            "type": "boolean"
          },
          "canApprove": {
            "type": "boolean"
          },
          "canGenerate": {
            "type": "boolean"
          },
          "canUpload": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean"
          },
          "canSendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "The flags of `ComplianceCertificateAuthorization` (P6.3), one property each."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportApprovedDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "approvedBy": {
            "type": "string"
          },
          "approvedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto"
          }
        },
        "additionalProperties": false,
        "description": "The answer of `POST .../Approve`: the approval is saved; the generation that signs the PDF is queued after it."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportAttachmentDto": {
        "type": "object",
        "properties": {
          "attachmentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "pageHeader": {
            "type": "string",
            "nullable": true
          },
          "reportTag": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "isProtected": {
            "type": "boolean",
            "description": "`SkipFile`: a protected PDF that is not merged."
          },
          "isCovenantDetails": {
            "type": "boolean",
            "description": "The generated placeholder of the covenant details pages: no file, no view."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportConflictDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "existingReportGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "409: an uploaded report of that template and period already exists."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportEditorDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The ISO currency code of the company (\"USD\" when it has none): the loan summary and the amounts of the page are shown in it (additive, 6b)."
          },
          "companyLogoUrl": {
            "type": "string",
            "description": "A presigned URL of the company logo; null without a logo or when signing failed.",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "description": "The `Quarter` column.",
            "format": "int32"
          },
          "periodText": {
            "type": "string",
            "description": "The legacy `ReportPeriodString`: \"2024 Q2\", \"2024 Full Year\", \"Mar 2024\"."
          },
          "template": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportTemplateDto"
          },
          "status": {
            "type": "string",
            "description": "pending, approved or approvedLoaded (the tokens of the tab)."
          },
          "isReadyForApproval": {
            "type": "boolean"
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time",
            "nullable": true
          },
          "usesTemplateText": {
            "type": "boolean"
          },
          "includeLogo": {
            "type": "boolean"
          },
          "isOutdated": {
            "type": "boolean",
            "description": "A covenant target of the period changed after `ModifiedOn` (the \"outdated\" alert)."
          },
          "covenantCalculationInProgress": {
            "type": "boolean",
            "description": "Any financial covenant of the agreement is being calculated."
          },
          "generation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportGenerationDto"
          },
          "text": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportTextInfoDto"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportAttachmentDto"
            },
            "description": "Id order."
          },
          "referenceDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportReferenceDto"
            },
            "description": "Id order."
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportFieldDto"
            },
            "description": "Id order; the report level copies only, listed for a PDF template or a deleted template."
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto"
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportAccessDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The page of `GET .../ComplianceReports/{reportGuid}`: the editor shell (the legacy `UpdateComplianceReport` view, read only)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportEmailFormDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodText": {
            "type": "string",
            "description": "The legacy `ReportPeriodString` (\"2024 Q2\", \"2024 Full Year\", \"Jan 2025\")."
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "description": "`recipients`, `lenders` or `general`."
          },
          "from": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSenderDto"
          },
          "replyTo": {
            "type": "string",
            "description": "Non employees: the address of the user.",
            "nullable": true
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string",
            "description": "`Regarding {reportName} Compliance Report - {agreement}`."
          },
          "body": {
            "type": "string",
            "description": "Prefilled sanitized HTML."
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailDocumentDto"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailLimitsDto"
          },
          "reportFile": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportFileDto"
          }
        },
        "additionalProperties": false,
        "description": "The prefilled e-mail drawer of a compliance report (the loan agreement form fields plus the report identity and file)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportEmailRecordsDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodText": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordRowDto"
            },
            "description": "The row also carries `certificateReportCount` (how many compliance reports the e-mail is linked to)."
          }
        },
        "additionalProperties": false,
        "description": "The e-mails sent about a compliance report: newest first, at most 200."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportFieldDetailDto": {
        "type": "object",
        "properties": {
          "fieldGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fieldName": {
            "type": "string",
            "description": "EMPLOYEES ONLY (E2): the PDF form field name the generator matches; null for a contact.",
            "nullable": true
          },
          "description": {
            "type": "string"
          },
          "prompt": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "contextHtml": {
            "type": "string",
            "description": "The context sanitized, with the company images signed (`ComplianceReferenceTextRenderer`); null when empty.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportFieldDto": {
        "type": "object",
        "properties": {
          "fieldGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fieldName": {
            "type": "string",
            "description": "EMPLOYEES ONLY (E2): the PDF form field name the generator matches; null for a contact.",
            "nullable": true
          },
          "description": {
            "type": "string"
          },
          "prompt": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "hasContext": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportFileDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "`{agreement} Compliance Report {period}{ext}`."
          },
          "size": {
            "type": "integer",
            "description": "The size in bytes.",
            "format": "int64"
          },
          "tooLarge": {
            "type": "boolean",
            "description": "The file is above the shared 7 MB e-mail total: it cannot be attached."
          }
        },
        "additionalProperties": false,
        "description": "The report file that can be attached to the e-mail."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportGenerationDto": {
        "type": "object",
        "properties": {
          "progress": {
            "type": "string",
            "description": "Idle, Queued, Processing, AddingAttachments, CreatingCovenantDetailsFile, Finalizing, Complete or ErrorComplete."
          },
          "progressText": {
            "type": "string",
            "description": "The legacy description of the progress (\"Report generation in progress\", ...; `Cerebro.Api.Shared.Data.Enums.ReportGenerationProgress`)."
          },
          "isInProgress": {
            "type": "boolean",
            "description": "Queued .. Finalizing."
          },
          "isComplete": {
            "type": "boolean",
            "description": "Complete."
          },
          "hasError": {
            "type": "boolean",
            "description": "ErrorComplete."
          },
          "hasFile": {
            "type": "boolean",
            "description": "The report file is set (the worker clears it while a regeneration runs)."
          },
          "lastGeneratedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The generation state of a report (the `ReportGenerationProgress` column, written by the worker at every step)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportLimitsDto": {
        "type": "object",
        "properties": {
          "titleMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "pageHeaderMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "tagMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "orderMin": {
            "type": "integer",
            "format": "int32"
          },
          "orderMax": {
            "type": "integer",
            "format": "int32"
          },
          "referenceTitleMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "textMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "fieldValueMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "approverNameMaxLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "attachmentExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "referenceExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "uploadExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportMessageFormDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodText": {
            "type": "string",
            "description": "The legacy `EntityName`: the report period text."
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose message drawer of a compliance report: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportMessagesDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodText": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer of a compliance report: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportReadyDto": {
        "type": "object",
        "properties": {
          "isReadyForApproval": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "The answer of `POST .../ReadyForApproval` (also when the report already was ready)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportReferenceDto": {
        "type": "object",
        "properties": {
          "referenceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportSectionDto": {
        "type": "object",
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportStartedDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "created": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "201 (created) or 200 (the existing, not uploaded report of that template and period; nothing was written)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportStatusDto": {
        "type": "object",
        "properties": {
          "generation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportGenerationDto"
          },
          "modifiedOn": {
            "type": "string",
            "description": "UTC; the \"Updated On\" of the tab (the worker moves it at every step).",
            "format": "date-time",
            "nullable": true
          },
          "covenantCalculationInProgress": {
            "type": "boolean",
            "description": "Any financial covenant of the agreement is being calculated (`CalculationInProgress`)."
          },
          "targetsPendingCalculation": {
            "type": "boolean",
            "description": "Any target of a financial covenant of the agreement is pending calculation (the Generate guard)."
          }
        },
        "additionalProperties": false,
        "description": "The answer of `GET .../Status`, polled by the page every 3 seconds while a generation runs."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportTemplateDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "\"{frequency} Template\" (`ComplianceManageCovenantsRules.TemplateName`)."
          },
          "type": {
            "type": "string",
            "description": "Text or Pdf."
          },
          "isDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportTextContentDto": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "description": "template (the report uses the report template text: sections) or standard (the user writes the text)."
          },
          "text": {
            "type": "string",
            "description": "The stored text, line ends `\\r\\n`: the textarea of a standard report and the employee branch of a template report. Empty for a contact on a\ntemplate report (it edits the sections; Cerebro.Api.Features.Compliance.Models.CertificateReportTextContentDto.Segments shows the text)."
          },
          "reportDate": {
            "type": "string",
            "description": "\"MMMM d, yyyy\": what `#reportDate` stands for."
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportTextSegmentDto"
            },
            "description": "Template mode: what the contents page shows (plain text only, never HTML)."
          },
          "reportTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The \"#file_...\" lines of the text, distinct, in order."
          }
        },
        "additionalProperties": false,
        "description": "What the Edit Report Text panel (standard report) and the contents page (template report) show."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportTextInfoDto": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "description": "none (a PDF template has no text), template (`UseLoanDefaultText`) or standard (the user writes it)."
          },
          "hasText": {
            "type": "boolean"
          },
          "sectionCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The \"#file_...\" lines of the text, distinct, in order: the choices of an attachment position."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportTextSegmentDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "text, pageBreak or section."
          },
          "text": {
            "type": "string",
            "description": "text: the plain text with `#reportDate` replaced (line ends kept); section: the current content between the markers; null for a page break.",
            "nullable": true
          },
          "number": {
            "type": "integer",
            "description": "The section number; null for the other kinds.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportUploadedDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "approvedBy": {
            "type": "string"
          },
          "approvedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "The answer of `POST .../Upload`: the report now reads \"Approved, loaded by {name}\" (the tab status `approvedLoaded`)."
      },
      "Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto": {
        "type": "object",
        "properties": {
          "generation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CertificateReportGenerationDto"
          },
          "queue": {
            "type": "string",
            "description": "queued, failed, notRequested (the write does not queue, D47) or skippedProtected (a protected attachment, no queue)."
          },
          "message": {
            "type": "string",
            "description": "Set when Cerebro.Api.Features.Compliance.Models.CertificateReportWriteResultDto.Queue is failed.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The answer of every write that may queue a generation (6b-6e)."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyContactRowDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Last name first."
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "officeAddress": {
            "type": "string",
            "nullable": true
          },
          "lastLoginOn": {
            "type": "string",
            "description": "UTC; the UI formats it in Cerebro.Api.Features.Compliance.Models.CompanyContactRowDto.TimeZoneId.",
            "format": "date-time",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "isSelf": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The legacy permission descriptions, in the legacy order."
          },
          "canEdit": {
            "type": "boolean"
          },
          "canSendInvite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyContactSavedDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string"
          },
          "invitationSent": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto": {
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "companyOfficeId": {
            "type": "integer",
            "description": "Null is no location; 0 creates an office from the fields below.",
            "format": "int64",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean",
            "description": "A third-party contact (for example an advisor) has no company permissions except viewing forecast data: when it is\non, admin, billing, internal codes, compliance settings, report approval and covenant assignment are ignored.\nNull keeps the stored value (false when adding); you cannot change it on your own contact.",
            "nullable": true
          },
          "internalCodeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Ignored (cleared) when the person is a company admin."
          },
          "financialDataEntry": {
            "type": "boolean"
          },
          "financialDataApproval": {
            "type": "boolean"
          },
          "covenantEntry": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "receiveCovenantReminderEmails": {
            "type": "boolean"
          },
          "covenantReportSignature": {
            "type": "boolean"
          },
          "approvalLevel1": {
            "type": "boolean"
          },
          "approvalLevel2": {
            "type": "boolean"
          },
          "approvalLevel3": {
            "type": "boolean"
          },
          "approvalLevel4": {
            "type": "boolean"
          },
          "covenantApprovalFinal": {
            "type": "boolean"
          },
          "assignmentOptionId": {
            "type": "integer",
            "description": "0 none, 1 replace an existing SME, 2 mirror an existing SME, 3 add the delta of an existing SME.",
            "format": "int32"
          },
          "smeContactGuid": {
            "type": "string",
            "description": "Required when Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto.AssignmentOptionId is above 0.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The values of the add and edit form. Limits are validated by `ComplianceContactValidator`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyContactsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean",
            "description": "The user is an admin of this company (employees: true)."
          },
          "canAdd": {
            "type": "boolean",
            "description": "The user is an admin and the company has no parent: shows the page actions menu."
          },
          "isThirdPartyViewer": {
            "type": "boolean",
            "description": "The user is a third party contact: the list is limited to the contacts they created."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The people (company contacts) of a company in the compliance app: the list, the add and edit form, the invite and\nthe two reports. See `docs/compliance-app-contacts-contract.md`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyCustomValuesPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "canManage": {
            "type": "boolean",
            "description": "The user may add, edit and delete custom values."
          },
          "isEmployee": {
            "type": "boolean",
            "description": "The user is a Cerebro employee (shows the report tag action)."
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The custom values of a company in the compliance app: the list, the add/edit form, the saves, the formula check and the\nusage. See `docs/compliance-app-customvalues-contract.md`. camelCase JSON; kinds, operators and trailing periods are\ntext so a bad value is a 400 on its field, not a binding error."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyDocumentsAllDto": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentAllRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyDocumentsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "canManage": {
            "type": "boolean",
            "description": "The user may add files and folders, edit, rename, move and delete."
          },
          "currentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentCurrentFolderDto"
          },
          "breadcrumbs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentBreadcrumbDto"
            },
            "description": "The root first, ending with the current folder; names as stored."
          },
          "financialStatementsFolderGuid": {
            "type": "string",
            "description": "The visible Financial Statements folder, so other pages can link to it; null when there is none.",
            "format": "uuid",
            "nullable": true
          },
          "folders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentFolderRowDto"
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentRowDto"
            }
          },
          "documentTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentTypeItemDto"
            },
            "description": "The types a document can have when it is added or edited."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The documents of a company in the compliance app: the folder you are in, the show all list, the folder tree and the\nsaves. See `docs/compliance-app-documents-contract.md`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventFormDto": {
        "type": "object",
        "properties": {
          "eventGuid": {
            "type": "string",
            "description": "Null when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxDescription": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventRowDto": {
        "type": "object",
        "properties": {
          "eventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "occurrenceCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastOccurrenceDate": {
            "type": "string",
            "description": "The date of the newest occurrence; null when none.",
            "nullable": true
          },
          "covenantCount": {
            "type": "integer",
            "description": "The number of related loan covenants.",
            "format": "int32"
          },
          "canDelete": {
            "type": "boolean",
            "description": "Cerebro.Api.Features.Compliance.Models.CompanyEventsPageDto.CanDelete and no related covenant."
          },
          "occurrences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventOccurrenceRowDto"
            }
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventCovenantRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventSavedDto": {
        "type": "object",
        "properties": {
          "eventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyEventsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "canManage": {
            "type": "boolean",
            "description": "The user may add, edit and report events."
          },
          "canDelete": {
            "type": "boolean",
            "description": "The user may delete events and occurrences (the rows refine it)."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyEventRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The events of a company in the compliance app: the list with its occurrences and related covenants, the event and\nreport forms and the saves. See `docs/compliance-app-events-contract.md`. Dates are `yyyy-MM-dd` text."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyFinancialsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "amountsCurrency": {
            "type": "string",
            "description": "The currency of the viewing user: every currency amount is already converted from the company currency."
          },
          "companyCurrency": {
            "type": "string",
            "description": "The currency of the company, the unit the cells are edited in (USD when the company has none)."
          },
          "canEnter": {
            "type": "boolean"
          },
          "canApprove": {
            "type": "boolean"
          },
          "canSeeForecast": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "requiresFinancialApproval": {
            "type": "boolean"
          },
          "canResetFinancials": {
            "type": "boolean",
            "description": "An employee with the Reset Company Financials claim (the Reset Financials item of the employee app, story #14776)."
          },
          "filters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsFiltersDto"
          },
          "applied": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsAppliedDto"
          },
          "paging": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialsPagingDto"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialColumnDto"
            },
            "description": "The columns of this page, oldest on the left."
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialSectionDto"
            },
            "description": "The statement types that have a visible statement in the filtered set, in the fixed type order."
          },
          "financialStatementsFolderGuid": {
            "type": "string",
            "description": "The visible Financial Statements document folder; null when there is none or the user cannot see it.",
            "format": "uuid",
            "nullable": true
          },
          "stagedUpload": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadSummaryDto"
          },
          "pendingLoads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PendingFinancialLoadDto"
            },
            "description": "The processing uploads of the company, newest first, max 5 (Phase 5); canEnter company users only, empty otherwise."
          },
          "orderConflicts": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictSummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "The financial statements of a company in the compliance app: the statement matrix of one page of columns, its\nfilters. See `docs/compliance-app-financials-contract.md`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLoansPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The currency of the company, \"USD\" when it has none."
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAccessDto"
          },
          "filter": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanFilterDto"
          },
          "statusCounts": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanStatusCountsDto"
          },
          "agreementOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementOptionDto"
            },
            "description": "Every visible agreement, in the order of the cards (the options do not change with the status)."
          },
          "agreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRowDto"
            },
            "description": "The filtered cards, same order as the options."
          },
          "pendingLoanDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PendingLoanDocumentDto"
            }
          },
          "canDownloadReports": {
            "type": "boolean",
            "description": "Any visible agreement or a child company: the Reports menu has something to report on."
          }
        },
        "additionalProperties": false,
        "description": "The loans page of a company in the compliance app (Company Profile > Loans, Phase 1). See\n`docs/compliance-app-loans-contract.md`. Dates are `yyyy-MM-dd` text without time zone conversion; amounts are\nnumbers in the COMPANY currency (`currency` tells which); statuses and groups are lower camel case text."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationFormDto": {
        "type": "object",
        "properties": {
          "locationGuid": {
            "type": "string",
            "description": "Null when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto"
          },
          "lookups": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationLookupsDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationLimitsDto": {
        "type": "object",
        "properties": {
          "maxOfficeName": {
            "type": "integer",
            "format": "int32"
          },
          "maxAddress": {
            "type": "integer",
            "format": "int32"
          },
          "maxCity": {
            "type": "integer",
            "format": "int32"
          },
          "maxZip": {
            "type": "integer",
            "format": "int32"
          },
          "maxPhone": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationLookupsDto": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            },
            "description": "The active countries by name."
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceStateItemDto"
            },
            "description": "The states of the active countries by name."
          },
          "timeZones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceTimeZoneDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationRowDto": {
        "type": "object",
        "properties": {
          "locationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "countryName": {
            "type": "string",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "description": "Address 1, 2 and 3 joined with commas, empty parts skipped; empty when there is none."
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "isHeadquarters": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationSavedDto": {
        "type": "object",
        "properties": {
          "locationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "officeName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationValuesDto": {
        "type": "object",
        "properties": {
          "officeName": {
            "type": "string",
            "description": "Blank on save: \"{City} Office\".",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "countryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "isHeadquarters": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "The values of the add and edit form. The rules are checked by `ComplianceLocationValidator`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyLocationsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "canAdd": {
            "type": "boolean",
            "description": "The user may add a location (equal to Cerebro.Api.Features.Compliance.Models.CompanyLocationsPageDto.CanEdit today)."
          },
          "canEdit": {
            "type": "boolean",
            "description": "The user may edit the locations."
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyLocationRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The locations (company offices) of a company in the compliance app: the list, the add and edit form and the saves.\nSee `docs/compliance-app-locations-contract.md`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyOverviewBankDto": {
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string"
          },
          "relationshipType": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyOverviewDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "description": "10 active, 20 inactive, 30 pending.",
            "format": "int32"
          },
          "statusName": {
            "type": "string"
          },
          "type": {
            "type": "integer",
            "format": "int32"
          },
          "typeName": {
            "type": "string"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "ownershipStructureName": {
            "type": "string",
            "description": "Read only: company users cannot edit it.",
            "nullable": true
          },
          "fiscalYearEnd": {
            "type": "string",
            "description": "\"December 31\" style; \"December 31\" when the month or day is missing."
          },
          "currency": {
            "type": "string",
            "description": "Read only."
          },
          "internalCode": {
            "type": "string",
            "nullable": true
          },
          "securityId": {
            "type": "string",
            "nullable": true
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "description": "Plain text.",
            "nullable": true
          },
          "accountManagerName": {
            "type": "string",
            "nullable": true
          },
          "salesRepName": {
            "type": "string",
            "nullable": true
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "requiresFinancialApproval": {
            "type": "boolean",
            "description": "Null unless the company manages financials.",
            "nullable": true
          },
          "requiresCovenantApproval": {
            "type": "boolean",
            "description": "Null unless the company manages debt.",
            "nullable": true
          },
          "covenantReminders": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantRemindersDto"
          },
          "creditExplorerDetails": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CreditExplorerDetailsDto"
          },
          "ndas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyOverviewNdaDto"
            },
            "description": "Ordered by expiration date, latest first; an empty list hides the panel."
          },
          "canEdit": {
            "type": "boolean",
            "description": "The user may edit the overview."
          }
        },
        "additionalProperties": false,
        "description": "The company profile overview of the compliance app (the legacy `Cerebro/CompanyOverview` page). See\n`docs/compliance-app-company-profile-contract.md`."
      },
      "Cerebro.Api.Features.Compliance.Models.CompanyOverviewNdaDto": {
        "type": "object",
        "properties": {
          "ndaGuid": {
            "type": "string",
            "format": "uuid"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceAccountSettingsDto": {
        "required": [
          "companyContactGuid",
          "receiveCovenantReminderEmails"
        ],
        "type": "object",
        "properties": {
          "companyContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "receiveCovenantReminderEmails": {
            "type": "boolean",
            "description": "Receive covenant reminder e-mail alerts."
          },
          "isManagingDebt": {
            "type": "boolean",
            "description": "Whether the company of the contact manages debt. Covenant reminders only exist for those companies, so the app only\nshows the switch when this is true (the legacy page hid it and posted the stored value). Ignored on a save."
          }
        },
        "additionalProperties": false,
        "description": "The Compliance Navigator notification settings of a company contact (port of the legacy `Cerebro/AccountSettings`\npage, which only has the covenant reminder e-mail switch, and only shows it for a company that manages debt)."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingInvoiceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subscriptionGuid": {
            "type": "string",
            "description": "The subscription the invoice belongs to; omitted for an invoice that is not a subscription invoice.",
            "format": "uuid",
            "nullable": true
          },
          "invoiceTypeDisplay": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "scheduleDueDate": {
            "type": "string",
            "format": "date"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "invoiceFileName": {
            "type": "string"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string"
          },
          "invoiceStage": {
            "enum": [
              "Pending",
              "Approved"
            ],
            "type": "string"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "scheduleStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          },
          "isCreditMemo": {
            "type": "boolean"
          },
          "isUnpaid": {
            "type": "boolean",
            "description": "The invoice is open: the status is not Paid (the legacy \"Invoices\" table)."
          },
          "isPaid": {
            "type": "boolean",
            "description": "The balance due is zero (the legacy \"Paid Invoices\" table)."
          }
        },
        "additionalProperties": false,
        "description": "An approved invoice of the company with the fields of the credit explorer `Invoice` model and the legacy split\ndone by the server: Cerebro.Api.Features.Compliance.Models.ComplianceBillingInvoiceDto.IsUnpaid (status is not Paid) and Cerebro.Api.Features.Compliance.Models.ComplianceBillingInvoiceDto.IsPaid (balance due is zero). The two\nflags are the legacy ones and are independent, so a written-off invoice with no balance is both."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementOptionDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "description": "\"Company (Loan)\", the text of the legacy drop down."
          }
        },
        "additionalProperties": false,
        "description": "An active loan agreement of the company or a related company that the slot may be assigned to."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementSlotDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "The loan agreement name; null while the slot is unassigned.",
            "nullable": true
          },
          "ownerCompanyName": {
            "type": "string",
            "description": "The company that owns the loan, only when it is not the company of the subscription.",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "description": "What the legacy page prints: \"Name\", \"Name (Company)\" or \"Unassigned\"."
          },
          "isAssigned": {
            "type": "boolean"
          },
          "cost": {
            "type": "number",
            "description": "Null means the slot is included in the subscription (\"Included\").",
            "format": "double",
            "nullable": true
          },
          "isIncluded": {
            "type": "boolean"
          },
          "isOriginal": {
            "type": "boolean"
          },
          "isImplementationPurchased": {
            "type": "boolean",
            "description": "The company already bought the implementation (setup) of this slot; an invoice was created for it and it cannot be undone."
          },
          "createdOn": {
            "type": "string",
            "description": "Dates in the default time zone (Eastern), like the legacy page.",
            "format": "date",
            "nullable": true
          },
          "assignedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A loan agreement slot of a subscription."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingPayInvoiceDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "The amount the page shows; refused with a 400 when it differs from the balance due.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of `POST Billing/Invoices/{invoiceGuid}/Pay`. The amount is optional: when sent it must equal the balance due of the server."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingPaymentMethodDto": {
        "required": [
          "paymentMethodId"
        ],
        "type": "object",
        "properties": {
          "paymentMethodId": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "The Stripe payment method id (`pm_...`) created in the browser."
          }
        },
        "additionalProperties": false,
        "description": "Body of `PATCH Billing/PaymentMethod`: only the id of the new Stripe payment method; everything else is derived from the company."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotOptionsDto": {
        "type": "object",
        "properties": {
          "slotGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isImplementationPurchased": {
            "type": "boolean"
          },
          "isOriginal": {
            "type": "boolean"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "loanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementOptionDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "What the slot form needs: the selectable loan agreements and the implementation price."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdateDto": {
        "type": "object",
        "properties": {
          "loanAgreementGuid": {
            "type": "string",
            "description": "The loan agreement to assign; null unassigns the slot.",
            "format": "uuid",
            "nullable": true
          },
          "isImplementationPurchased": {
            "type": "boolean",
            "description": "Required. true buys the implementation (setup) of the slot, which creates the setup fee invoice; once true it can never go back to false.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of `PATCH Billing/Subscriptions/{subscriptionGuid}/LoanAgreements/{slotGuid}`."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingSlotUpdatedDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "slot": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementSlotDto"
          },
          "invoiceCreated": {
            "type": "boolean",
            "description": "true when THIS call created the setup fee invoice."
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Answer of the slot PATCH."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceBillingSubscriptionDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "product": {
            "type": "string",
            "description": "The product category description (e.g. \"Compliance Navigator\")."
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "totalSubscriptionPrice": {
            "type": "number",
            "description": "The subscription fee plus the unit cost of the loan agreement slots that are not original.",
            "format": "double"
          },
          "frequency": {
            "type": "string",
            "description": "The frequency enum name (OneTime, Annually, BiAnnually, Quarterly, Monthly)."
          },
          "frequencyText": {
            "type": "string",
            "description": "The frequency as the legacy page shows it (\"One-Time\", \"Annual\", \"Bi-Annual\", \"Quarterly\", \"Monthly\")."
          },
          "additionalAgreementPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "termMonths": {
            "type": "integer",
            "description": "Term in months; only when the frequency is OneTime (as the legacy page).",
            "format": "int32",
            "nullable": true
          },
          "autoRenews": {
            "type": "boolean",
            "description": "Only when the frequency is OneTime (as the legacy page).",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "description": "Not cancelled, not past the end date and the deal (when any) is in an active status."
          },
          "agreementDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "hasAgreement": {
            "type": "boolean",
            "description": "The subscription has an agreement file that can be downloaded."
          },
          "loanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementSlotDto"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingInvoiceDto"
            },
            "description": "The approved invoices of the subscription, newest first."
          }
        },
        "additionalProperties": false,
        "description": "A compliance navigator subscription of the company for the (read only) billing Subscriptions page. Port of the legacy\n`Account > Subscriptions` table for the Navigator product. The agreement file name is never exposed: use\nCerebro.Api.Features.Compliance.Models.ComplianceBillingSubscriptionDto.HasAgreement and the Agreement download route."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceCompanyDto": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentCompanyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isChildCompany": {
            "type": "boolean"
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "canAccessRelatedCompanies": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "financialDataEntry": {
            "type": "boolean"
          },
          "financialDataApproval": {
            "type": "boolean"
          },
          "covenantEntry": {
            "type": "boolean"
          },
          "isCovenantApprover": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "isCovenantContact": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "An active company contact of the current user at a compliance company."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceContactSmeDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceCovenantLocationDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "`NonFinancial` or `Financial`."
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "description": "The company the covenant belongs to (an own company, a related company or any company for an employee).",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "Where a covenant lives (`GET api/Compliance/{userGuid}/Covenants/{kind}/{covenantGuid}/Location`, story #14790): the loan agreement and the\ncompany the pages of the apps need, found from the guid of the covenant that e-mail links carry. camelCase JSON."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceCurrentUserDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "defaultTimezone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceCompanyDto"
            }
          },
          "isMultiCompanyUser": {
            "type": "boolean",
            "description": "Same rule as the legacy IsMultiCompanyUser: more than one active contact, or a third party first contact."
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "hasComplianceSubscription": {
            "type": "boolean"
          },
          "isSingleSignOnUser": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "unreadMessageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The signed in compliance user, as returned by `GET api/Compliance/Current`."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceDashboardDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "hasLoanAgreement": {
            "type": "boolean"
          },
          "hasFinancialStatements": {
            "type": "boolean"
          },
          "isThirdPartyUser": {
            "type": "boolean"
          },
          "notifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceNotificationDto"
            }
          },
          "statistics": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceStatisticsDto"
          },
          "pendingFinancials": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompliancePendingFinancialsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceDebtCapacityDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "\"Debt Capacity\" when the company shows credit explorer, otherwise \"Debt Summary\"."
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "missingData": {
            "type": "boolean"
          },
          "showExample": {
            "type": "boolean"
          },
          "currency": {
            "type": "string"
          },
          "cashFlowDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "cashDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "securitiesDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "inventoryDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "receivablesDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "description": "The \"Maximum Facility Amount\".",
            "format": "double"
          },
          "outstandingDebt": {
            "type": "number",
            "description": "The \"Outstanding Loan Amount\".",
            "format": "double"
          },
          "portfolio": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceDebtCapacityPortfolioItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceDebtCapacityPortfolioItemDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceInternalCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "code": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "A company internal code, for the filter and the add company form."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceLoanSummaryDto": {
        "type": "object",
        "properties": {
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "facilityName": {
            "type": "string"
          },
          "providerNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maximumFacilityAmount": {
            "type": "number",
            "format": "double"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "financialCovenantStatus": {
            "enum": [
              "Passed",
              "HasFailed",
              "MissingData",
              "NoLoans",
              "NoCovenants"
            ],
            "type": "string"
          },
          "nonFinancialCovenantStatus": {
            "enum": [
              "Passed",
              "HasFailed",
              "MissingData",
              "NoLoans",
              "NoCovenants"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceNotificationDto": {
        "type": "object",
        "properties": {
          "key": {
            "enum": [
              "CompleteCompanyProfile",
              "UploadFinancials",
              "AddLoanAgreement",
              "AddRelatedCompany",
              "AddCompanyAddress",
              "ManageLoanCovenants",
              "ManageYourCovenants"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CompliancePendingFinancialsDto": {
        "type": "object",
        "properties": {
          "isComplete": {
            "type": "boolean"
          },
          "percentComplete": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceStateItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "countryId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceStatisticsDto": {
        "type": "object",
        "properties": {
          "industryName": {
            "type": "string"
          },
          "financialDataScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanDataScore": {
            "type": "integer",
            "format": "int32"
          },
          "accountManagerName": {
            "type": "string",
            "nullable": true
          },
          "accountManagerEmail": {
            "type": "string",
            "nullable": true
          },
          "childCompanyTerm": {
            "type": "string",
            "nullable": true
          },
          "activeChildCompanyCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditDto": {
        "required": [
          "autoRenew",
          "endDate",
          "implementationPrice",
          "startDate",
          "subscriptionFee",
          "unitPrice"
        ],
        "type": "object",
        "properties": {
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "createInvoice": {
            "type": "boolean",
            "description": "Also create an approved invoice of the subscription (its fee and the extra slots) with the payment terms below."
          },
          "invoicePaymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The Edit Subscription form (legacy `ChangeSubscriptionStatus`): prices, auto renew, the term dates and optionally a new invoice."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditFormDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "productName": {
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false,
        "description": "The stored values of the Edit Subscription form of a Compliance Navigator subscription (employees only, story #14776)."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionEditResultDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "invoiceCreated": {
            "type": "boolean"
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionProductDto": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "productName": {
            "type": "string"
          },
          "subscriptionFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionFrequencyText": {
            "type": "string"
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A Compliance Navigator product the employee can start a subscription of (legacy `SelectComplianceProductModel`)."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartDto": {
        "required": [
          "agreementAccepted",
          "productId",
          "signatureConfirmed",
          "signedByName",
          "title"
        ],
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "signedByName": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "agreementAccepted": {
            "type": "boolean"
          },
          "signatureConfirmed": {
            "type": "boolean"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "loanAgreementGuid": {
            "type": "string",
            "description": "The loan agreement of the first (original) slot; the other slots start unassigned.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The Start Compliance Subscription form: the chosen product (prices come from the product, never from the body), the signature and the optional first loan agreement."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartFormDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "canStart": {
            "type": "boolean",
            "description": "The legacy `CanCreateComplianceNavigatorSubscription`: the company manages debt and neither it nor its parent has an active Navigator subscription."
          },
          "reason": {
            "type": "string",
            "description": "Why a subscription cannot be started; omitted when it can.",
            "nullable": true
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionProductDto"
            }
          },
          "loanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceBillingLoanAgreementOptionDto"
            },
            "description": "The active loan agreements of the company, for the first (original) slot (optional)."
          }
        },
        "additionalProperties": false,
        "description": "What the Start Compliance Subscription form needs: whether the company may start one and the products to choose from."
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceSubscriptionStartedDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceCreated": {
            "type": "boolean"
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceTermTrackerDto": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "Price",
              "Term",
              "Amortization"
            ],
            "type": "string"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "hasCurrentValue": {
            "type": "boolean"
          },
          "limitViolation": {
            "type": "boolean"
          },
          "currentValue": {
            "type": "number",
            "format": "double"
          },
          "minValue": {
            "type": "number",
            "description": "The low end of the all-deals range.",
            "format": "double"
          },
          "maxValue": {
            "type": "number",
            "description": "The high end of the all-deals range.",
            "format": "double"
          },
          "similarMinValue": {
            "type": "number",
            "format": "double"
          },
          "similarMaxValue": {
            "type": "number",
            "format": "double"
          },
          "unit": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceTermsTrackerDto": {
        "type": "object",
        "properties": {
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceTermsTrackerFacilityDto"
            }
          },
          "selectedFacilityGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "selectedAgreementGuid": {
            "type": "string",
            "description": "The loan agreement of the selected facility (the Edit Loan Details button opens the Edit Credit Facility page of the pair).",
            "format": "uuid",
            "nullable": true
          },
          "selectedCompanyGuid": {
            "type": "string",
            "description": "The company of the selected facility: a related company when the portfolio is shown, so the Edit Loan Details button can switch to it first.",
            "format": "uuid",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "canEditLoanData": {
            "type": "boolean"
          },
          "trackers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceTermTrackerDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceTermsTrackerFacilityDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComplianceTimeZoneDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComposeCovenantMessageDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "description": "HTML; sanitized on the server.",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "`Public` or `Private` (any case).",
            "nullable": true
          },
          "recipientUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComposeFacilityMessageDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "description": "HTML; sanitized on the server.",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "`Public` or `Private` (any case).",
            "nullable": true
          },
          "recipientUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ComposeStatementMessageDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "description": "HTML; sanitized on the server.",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "`Public` or `Private` (any case).",
            "nullable": true
          },
          "recipientUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CopyLoanAgreementValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the copy (required, at most 250).",
            "nullable": true
          },
          "agreementDate": {
            "type": "string",
            "description": "The loan agreement date, `yyyy-MM-dd` (required).",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "description": "The maturity date, `yyyy-MM-dd` (required, not before the agreement date); every copied facility gets it.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The JSON body of `POST Loans/{agreementGuid}/Copy`."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantApprovalResultDto": {
        "type": "object",
        "properties": {
          "approved": {
            "type": "boolean",
            "description": "True when this click was the final approval and the covenants are now approved."
          },
          "approvalLevel": {
            "type": "integer",
            "description": "The approval level the loan agreement is at now (5 once approved).",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The legacy message: \"Loan covenants are approved.\" or \"...pending next level approval by {name}.\"."
          },
          "nextApproverName": {
            "type": "string",
            "description": "The next approver of the chain; omitted after the final approval.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The result of one approval click on the Manage Covenants page (the legacy success cookie, as data)."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantAuditEntryDto": {
        "type": "object",
        "properties": {
          "auditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "auditTypeName": {
            "type": "string",
            "description": "The audit type description; \"Audit type {n}\" for an unknown value."
          },
          "valueKind": {
            "type": "string",
            "description": "`date` for the effective (30) and expire (40) dates, else `text`."
          },
          "previous": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAuditValueDto"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAuditValueDto"
          },
          "changedOn": {
            "type": "string",
            "description": "UTC instant; the app formats it in the user time zone.",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "description": "The full name of the person; null is the system.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantAuditHistoryDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "All rows of the covenant; `entries` holds at most 500.",
            "format": "int32"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantAuditEntryDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The Audit History drawer of a covenant: newest first, at most 500 rows."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalculationDetailsDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string",
            "description": "The legacy title period: annual `2026`, quarterly and semi-annual `Q2 2026`, monthly `Oct 2026`."
          },
          "targetLabel": {
            "type": "string",
            "description": "The label of the target row: `2026 Target`, `Q2 2026 Target`, `October 2026 Target`."
          },
          "currency": {
            "type": "string",
            "description": "The company currency code; the currency values are in it."
          },
          "formula": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationFormulaDto"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationValueDto"
            },
            "description": "One entry per formula item, in formula order."
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialResultDto"
          },
          "tone": {
            "type": "string",
            "description": "The page tone of the result cell (`inactive`, `warning`, `success`, `errorSevere`, `errorMid`, `errorLow`)."
          }
        },
        "additionalProperties": false,
        "description": "Company Profile > Loans > Covenant Summary > Calculation Details drawer (port of the legacy `Emp/ViewCovenantDetails` modal). Designed for a pure\nrenderer: the API computes every value, name, period label, state and tone; amounts are raw numbers (percent values are fractions) that the client\nformats with the value type and the company currency. A value without data carries `noData` and NO number. Nulls are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalculationFormulaDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The readable formula (custom values by name); empty when the covenant has none."
          },
          "isPeriodSpecific": {
            "type": "boolean",
            "description": "The target of the period has its own formula (the legacy \"Period-Specific Formula\" badge)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalculationPeriodValueDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "The period name with the trailing suffix: `2026 Q2 TTM`, `Mar 2026`, `2026 Full Year`, `... (up to 100)`."
          },
          "value": {
            "type": "number",
            "description": "The value; omitted when Cerebro.Api.Features.Compliance.Models.CovenantCalculationPeriodValueDto.NoData.",
            "format": "double",
            "nullable": true
          },
          "noData": {
            "type": "boolean"
          },
          "valueType": {
            "type": "string",
            "description": "`numeric`, `percent` or `currency`."
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "description": "1-4, or month + 12 (the Financials page period filter value for months).",
            "format": "int32"
          },
          "supportingValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationPeriodValueDto"
            },
            "description": "The values the value is made of (quarters or months), newest first; empty when none."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalculationValueDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "`lineItem`, `customValue` or `constant`."
          },
          "name": {
            "type": "string",
            "description": "The name as the legacy showed it, with the period prefix (`TTM Revenue`, `End Of Period Cash`), `Constant` or `Error in formula`."
          },
          "lineItemTypeId": {
            "type": "integer",
            "description": "A line item only: the key the Financials page highlights.",
            "format": "int64",
            "nullable": true
          },
          "constantValue": {
            "type": "number",
            "description": "A constant only: its value.",
            "format": "double",
            "nullable": true
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationPeriodValueDto"
            },
            "description": "The period values (the legacy builder always produces one; empty for a constant)."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalculationValueDto"
            },
            "description": "A custom value only: the items of its formula, each built like this one."
          },
          "customFormula": {
            "type": "string",
            "description": "A custom value only: its readable formula.",
            "nullable": true
          },
          "customFactor": {
            "type": "number",
            "description": "A custom value only: the factor, when it is not 1 (shown as `(formula) * factor`).",
            "format": "double",
            "nullable": true
          },
          "ttmTotal": {
            "type": "number",
            "description": "The sum of the period values when there are exactly four (the legacy \"TTM Total\" row).",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One formula item: a line item, a custom value (with its own items, recursive) or a constant."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalendarFiltersDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "description": "The selected related company; absent = all companies.",
            "format": "uuid",
            "nullable": true
          },
          "smeId": {
            "type": "integer",
            "description": "Positive; absent = any SME.",
            "format": "int64",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "description": "`annual|semiAnnual|quarterly|monthly|eventDriven`; absent = any.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalendarItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "`f{CovenantTargetId}` or `n{NonfinancialCovenantResultId}`."
          },
          "date": {
            "type": "string",
            "description": "The due date, `yyyy-MM-dd` (a calendar date, never shifted)."
          },
          "kind": {
            "type": "string",
            "description": "`financial` or `nonFinancial`."
          },
          "category": {
            "type": "string",
            "description": "`financial|lenderReporting|monitoringOnly|eventDriven`; the colour is decided by the app."
          },
          "title": {
            "type": "string",
            "description": "The legacy `CalendarEventTitle`, verbatim."
          },
          "description": {
            "type": "string",
            "description": "The legacy `CalendarDescription`, verbatim (the tooltip)."
          },
          "companyGuid": {
            "type": "string",
            "description": "The company that owns the agreement (the row link context).",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantGuid": {
            "type": "string",
            "description": "The financial or non-financial covenant guid.",
            "format": "uuid"
          },
          "frequency": {
            "type": "string"
          },
          "periodYear": {
            "type": "integer",
            "description": "The year of the target or result (absent when unknown).",
            "format": "int32",
            "nullable": true
          },
          "periodQuarter": {
            "type": "integer",
            "description": "The quarter as stored (annual 4, semi-annual 2|4, quarterly 1-4, monthly 13-24).",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalendarOptionsDto": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCompanyDto"
            },
            "description": "The Company select, ordered by name (the all companies option is the one with `isRoute`); empty = hide the select."
          },
          "smes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportSmeDto"
            },
            "description": "The legacy calendar SME list (`Last, First`); there is no \"No SME Assigned\" entry; empty = hide the select."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantCalendarPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "description": "The company of the route.",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalendarFiltersDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalendarOptionsDto"
          },
          "from": {
            "type": "string",
            "description": "The requested range, echoed (`yyyy-MM-dd`)."
          },
          "to": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantCalendarItemDto"
            },
            "description": "All items of the range in the fixed order (date, title, financial first, company, id); may be empty."
          }
        },
        "additionalProperties": false,
        "description": "Reports > Covenant Calendar (`docs/compliance-app-covenantcalendar-contract.md`, section 8): the due dates of the financial covenant targets and of\nthe non-financial covenant results of a date range for the current company and the related companies the user may see. An item carries the covenant\nname, agreement name, SME last names, due date, kind and frequency only: no target, value, result, approval flag or tone. Dates are `yyyy-MM-dd`;\nnulls are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantContactChoiceDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isCurrent": {
            "type": "boolean",
            "description": "The contact holds an active assignment on this covenant."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailDocumentDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "extension": {
            "type": "string",
            "description": "With the dot, lower case."
          },
          "sizeBytes": {
            "type": "integer",
            "description": "The stored size; 0 when it is not known (the post enforces the real limit).",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailFormDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "description": "`sme`, `recipients`, `lenders` or `general`."
          },
          "from": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSenderDto"
          },
          "replyTo": {
            "type": "string",
            "description": "Non employees: the address of the user.",
            "nullable": true
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Prefilled sanitized HTML."
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailDocumentDto"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The prefilled e-mail drawer of a covenant."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailLimitsDto": {
        "type": "object",
        "properties": {
          "maxSubjectLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxBodyLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxAddresses": {
            "type": "integer",
            "format": "int32"
          },
          "maxAttachments": {
            "type": "integer",
            "format": "int32"
          },
          "maxTotalAttachmentBytes": {
            "type": "integer",
            "format": "int64"
          },
          "allowedExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordDto": {
        "type": "object",
        "properties": {
          "emailRecordGuid": {
            "type": "string",
            "format": "uuid"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "sentBy": {
            "type": "string",
            "description": "The full name of the sender; null for a legacy record (no sender stored).",
            "nullable": true
          },
          "subject": {
            "type": "string"
          },
          "to": {
            "type": "string",
            "description": "As stored (semicolon lists)."
          },
          "cc": {
            "type": "string",
            "nullable": true
          },
          "bcc": {
            "type": "string",
            "nullable": true
          },
          "financialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonFinancialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "certificateReportCount": {
            "type": "integer",
            "description": "How many compliance reports the e-mail is linked to (only filled by the e-mail records of a compliance report, 0 elsewhere).",
            "format": "int32"
          },
          "agreementName": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Sanitized HTML."
          },
          "financialCovenants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "nonFinancialCovenants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false,
        "description": "One e-mail record with its body and the names of the covenants it is linked to."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordRowDto": {
        "type": "object",
        "properties": {
          "emailRecordGuid": {
            "type": "string",
            "format": "uuid"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "sentBy": {
            "type": "string",
            "description": "The full name of the sender; null for a legacy record (no sender stored).",
            "nullable": true
          },
          "subject": {
            "type": "string"
          },
          "to": {
            "type": "string",
            "description": "As stored (semicolon lists)."
          },
          "cc": {
            "type": "string",
            "nullable": true
          },
          "bcc": {
            "type": "string",
            "nullable": true
          },
          "financialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonFinancialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "certificateReportCount": {
            "type": "integer",
            "description": "How many compliance reports the e-mail is linked to (only filled by the e-mail records of a compliance report, 0 elsewhere).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordsDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The e-mail records linked to a covenant: newest first, at most 200."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailSenderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantEmailSentDto": {
        "type": "object",
        "properties": {
          "emailRecordGuid": {
            "type": "string",
            "description": "Null when the record could not be saved (the e-mail went out).",
            "format": "uuid",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "recipientCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantGuarantorChoiceDto": {
        "type": "object",
        "properties": {
          "guarantorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantMessageFormDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose message drawer of a covenant: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantMessageSentDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantMessagesDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer of a covenant: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto": {
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "NotNeeded",
              "Updated",
              "Failed",
              "InProgress"
            ],
            "type": "string",
            "description": "What the regeneration of the covenant periods of one loan agreement did (contract section 8c.5.3)."
          },
          "nonFinancialCreated": {
            "type": "integer",
            "description": "Non-financial covenant results that were created.",
            "format": "int32"
          },
          "nonFinancialDeleted": {
            "type": "integer",
            "description": "Non-financial covenant results that were deleted (their period no longer applies).",
            "format": "int32"
          },
          "financialCreated": {
            "type": "integer",
            "description": "Financial covenant targets that were created (and sent for calculation).",
            "format": "int32"
          },
          "financialDeleted": {
            "type": "integer",
            "description": "Financial covenant targets that were deleted (their period no longer applies).",
            "format": "int32"
          },
          "deletedWithAnswers": {
            "type": "integer",
            "description": "Deleted non-financial results that were complete or had an answer (informational).",
            "format": "int32"
          },
          "deletedApprovedTargets": {
            "type": "integer",
            "description": "Deleted targets that were approved or had a calculated value.",
            "format": "int32"
          },
          "calculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          },
          "message": {
            "type": "string",
            "description": "The text for the user when the status is Failed or InProgress, or the calculation failed.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The result of `IComplianceCovenantPeriodService.RegenerateAsync`: returned as `covenantPeriods` by the loan agreement\nedit, the facility Summary and Status saves, the extension option exercise and reset, and the Reset Covenant Results route."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantReferenceTextDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string",
            "description": "`financial` (also a support calculation) or `nonfinancial`."
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "html": {
            "type": "string",
            "description": "Sanitized HTML with the image urls signed; null is no text.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The document reference text of a covenant."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantRemindersDto": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The descriptions of the selected timings in enum order; \"None\" when there are none."
          },
          "note": {
            "type": "string",
            "description": "Tells that the settings come from the parent company or apply to the related companies.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "manageLoanInformation": {
            "type": "boolean"
          },
          "requiresCovenantApproval": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryEnterResultsDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "`none`, `pending` or `enter`."
          },
          "text": {
            "type": "string",
            "description": "Only for `enter`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialCellDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "description": "`notActive`, `notApproved`, `notAvailable` or `result`."
          },
          "tone": {
            "type": "string",
            "description": "`none` unless the state is `result`."
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialGroupDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "description": "`annual`, `semiAnnual`, `quarterly` or `monthly`."
          },
          "title": {
            "type": "string"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialPeriodDto"
            },
            "description": "Always 8, oldest first."
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialRowDto"
            },
            "description": "Covenant id ascending."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialPeriodDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "description": "Annual: 4; quarterly and semi-annual: 1-4; monthly: month + 12.",
            "format": "int32"
          },
          "label": {
            "type": "string"
          },
          "isForecast": {
            "type": "boolean"
          },
          "approval": {
            "type": "string",
            "description": "`approved` or `unapproved`; omitted when no financial covenant of the frequency has a target in the period.",
            "nullable": true
          },
          "canChangeApproval": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialResultDto": {
        "type": "object",
        "properties": {
          "targetId": {
            "type": "integer",
            "description": "The covenant target id (the key of the later live updates).",
            "format": "int64"
          },
          "outcome": {
            "type": "string",
            "description": "`calculating`, `incomplete`, `met` or `breached`."
          },
          "targetOperator": {
            "type": "string",
            "description": "`>`, `>=`, `<`, `<=` or `=`."
          },
          "targetValue": {
            "type": "number",
            "format": "double"
          },
          "calculatedValue": {
            "type": "number",
            "format": "double"
          },
          "valueType": {
            "type": "string",
            "description": "`numeric`, `percent` (fractions: 0.25 = 25%) or `currency`."
          },
          "precision": {
            "type": "integer",
            "description": "0 when the target and the calculated value are both whole numbers, else 2.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialRowDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "canEdit": {
            "type": "boolean"
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialCellDto"
            },
            "description": "Same length and order as the periods of the group."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialCellDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "description": "`notActive`, `notApproved`, `notAvailable`, `pass`, `notApplicable`, `pending`, `fail` or `due`."
          },
          "tone": {
            "type": "string",
            "description": "`none`, `success`, `warning` or `errorSevere`."
          },
          "dueDate": {
            "type": "string",
            "description": "The reporting due date; state `due` only.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialGroupDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialPeriodDto"
            },
            "description": "Always 3, oldest first."
          },
          "enterResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryEnterResultsDto"
            },
            "description": "Present only when the user may enter results (not a third party and manages loan information); same length as the periods.",
            "nullable": true
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialRowDto"
            },
            "description": "Lender reporting required first, then covenant id ascending."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialPeriodDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "heading": {
            "type": "string",
            "description": "`Prior Period` or `Current Period`; omitted for monthly.",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean",
            "description": "False: no approve toggle and no enter results."
          },
          "isForecast": {
            "type": "boolean"
          },
          "approval": {
            "type": "string",
            "description": "`approved` or `unapproved` over the non-financial covenants of the frequency; omitted without results.",
            "nullable": true
          },
          "canChangeApproval": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialRowDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "lenderReportingRequired": {
            "type": "boolean"
          },
          "continuousMonitoring": {
            "type": "boolean"
          },
          "canEdit": {
            "type": "boolean"
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialCellDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryPageDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "description": "The numeric id of the company: the key of its covenant calculation WebSocket subscription (the push is addressed to the company that queued the calculation).",
            "format": "int64"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency code."
          },
          "approved": {
            "type": "boolean",
            "description": "The covenants of the agreement are approved (hides the edit icons)."
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryAccessDto"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto"
          },
          "financialGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialGroupDto"
            },
            "description": "The non tracking financial covenants by frequency; empty = no Financial Covenants panel."
          },
          "supportGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialGroupDto"
            },
            "description": "The tracking financial covenants by frequency; empty = no Support Calculations panel."
          },
          "nonFinancialGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryNonFinancialGroupDto"
            },
            "description": "The non-financial covenants by frequency; empty = the panel still shows its empty message."
          },
          "hasCalculatingResults": {
            "type": "boolean",
            "description": "Some VISIBLE result cell is still calculating (drives the polling of the page)."
          }
        },
        "additionalProperties": false,
        "description": "Company Profile > Loans > Covenant Summary (`docs/compliance-app-covenantsummary-contract.md`, section 5). The API chooses the periods,\nthe cell state and the tone and hides what the user may not see: the values of a hidden cell (state other than `result`) are NEVER sent.\nDates are `yyyy-MM-dd`, amounts raw numbers in the company currency; nulls are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCompanyDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isRoute": {
            "type": "boolean",
            "description": "The company of the route: the all companies option."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCurrentPeriodDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "description": "`2025`, `2026 Q1` or `Sep 2026`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportFiltersDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "description": "`annual`, `semiAnnual`, `quarterly` or `monthly`; absent = the latest completed period of every frequency.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "`financial`, `all` or `tracking`."
          },
          "smeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "description": "The selected related company; absent = all companies (the company of the route and the related companies the user may see).",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportLenderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "description": "Percent points (50 = 50%).",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportOptionsDto": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCompanyDto"
            },
            "description": "The Company select: the all companies option first (the company of the route, `isRoute`, named `{Company} (All Companies)`), then every\nrelated company the user may see by name. Empty when the user sees no related company (hide the select)."
          },
          "smes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportSmeDto"
            },
            "description": "The contacts with an active assignment on a financial covenant of the company agreements; empty = hide the SME select."
          },
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Ascending years: the range of the targets of the company, else the current year -4 to +4."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "description": "The numeric id of the company of the route: the key of its covenant calculation WebSocket subscription (the push is addressed to the company that queued the calculation, also for the rows of related companies).",
            "format": "int64"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency code."
          },
          "filters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportFiltersDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportOptionsDto"
          },
          "currentPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCurrentPeriodDto"
            },
            "description": "Only without a frequency: the period used for each frequency (always four entries, annual, semi-annual, quarterly, monthly).",
            "nullable": true
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryAccessDto"
          },
          "hasSmes": {
            "type": "boolean",
            "description": "Some row of the WHOLE result has an SME (column visibility)."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportRowDto"
            },
            "description": "The requested page in the fixed order."
          },
          "page": {
            "type": "integer",
            "description": "The effective (clamped) page.",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "hasCalculatingResults": {
            "type": "boolean",
            "description": "Some row of the PAGE is calculating (drives the polling)."
          }
        },
        "additionalProperties": false,
        "description": "Reports > Covenant Summary (`docs/compliance-app-covenantsummaryreport-contract.md`, section 6): the financial covenant summary table of the\ncurrent company. The API decides the period, the state, the tone and the due date of every row and hides what the user may not see: a row whose\nstate is not `result` NEVER carries a result, and a row hidden by the approval or forecast rules carries no target either. Dates are\n`yyyy-MM-dd`, amounts raw numbers in the company currency; nulls are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportPeriodDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "description": "Quarterly 1-4, semi-annual 2 or 4, annual 4, monthly month + 12.",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "description": "`met` or `breached`."
          },
          "calculatedValue": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportRowDto": {
        "type": "object",
        "properties": {
          "targetId": {
            "type": "integer",
            "description": "The covenant target id: the React key and the key of the later live updates.",
            "format": "int64"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The currency code of the company of the row (a related company may use another currency than the company of the route)."
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportLenderDto"
            }
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "isSupportCalculation": {
            "type": "boolean",
            "description": "A tracking covenant (a support calculation)."
          },
          "breachConsequence": {
            "type": "string",
            "description": "`Cash Trap`, `Cash Sweep`, `Paydown to meet target level`, `Event of Default` or `Other (free text)`."
          },
          "testedEntity": {
            "type": "string",
            "description": "`Borrower` or `Guarantor` (the legacy \"Tested Entity - ...\" line)."
          },
          "testedGuarantor": {
            "type": "string",
            "description": "The investor guarantor description of a guarantor covenant (the legacy line under \"Tested Entity\"); omitted otherwise.",
            "nullable": true
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Last names of the active assignments, ordered."
          },
          "frequency": {
            "type": "string"
          },
          "frequencyText": {
            "type": "string"
          },
          "period": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportPeriodDto"
          },
          "isForecast": {
            "type": "boolean"
          },
          "state": {
            "type": "string",
            "description": "`notActive`, `notApproved`, `notAvailable`, `calculating`, `missingData`, `pending` or `result`."
          },
          "tone": {
            "type": "string",
            "description": "`inactive`, `warning`, `success`, `errorSevere`, `errorMid` or `errorLow` (never `none`)."
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "target": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportTargetDto"
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportSmeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "`Last, First`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportTargetDto": {
        "type": "object",
        "properties": {
          "operator": {
            "type": "string",
            "description": "`>`, `>=`, `<`, `<=` or `=`."
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "valueType": {
            "type": "string",
            "description": "`numeric`, `percent` (fractions: 0.25 = 25%) or `currency`."
          },
          "precision": {
            "type": "integer",
            "description": "0 when the values are whole numbers, else 2.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantTargetTypeChoiceDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantTextFormDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "html": {
            "type": "string",
            "description": "Sanitized, images re-signed (60 minutes); absent when there is no text.",
            "nullable": true
          },
          "hasText": {
            "type": "boolean"
          },
          "maxLength": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CovenantTextSavedDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "hasText": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CreateDocumentFolderDto": {
        "type": "object",
        "properties": {
          "parentFolderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CreateFacilityDto": {
        "type": "object",
        "properties": {
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "facilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purpose": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purposeText": {
            "type": "string",
            "description": "Only for the purpose Other (max 50); otherwise ignored.",
            "nullable": true
          },
          "maximumFacilityAmount": {
            "type": "number",
            "description": "A whole number 0..999999999999999 in the company currency.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The self-service body (JSON): the four basics. Every property is nullable so a missing one is a 400 on its key, not a binder\nerror."
      },
      "Cerebro.Api.Features.Compliance.Models.CreateFinancialStatementDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "category": {
            "type": "integer",
            "description": "1 Actual, 2 Forecast, 3 Budget.",
            "format": "int32"
          },
          "isYtd": {
            "type": "boolean"
          },
          "isApproved": {
            "type": "boolean",
            "description": "Honoured only for a user who may approve and a company that requires approval."
          }
        },
        "additionalProperties": false,
        "description": "The add statement form: one statement of one statement type. Files go through the statement documents endpoint afterwards."
      },
      "Cerebro.Api.Features.Compliance.Models.CreateLineItemTypeDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "type": "integer",
            "description": "2 Currency, 1 Percent, 0 Numeric.",
            "format": "int32",
            "nullable": true
          },
          "covenantLabel": {
            "type": "string",
            "nullable": true
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "statementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of the add: the values plus the statement type the line item belongs to (it never changes afterwards)."
      },
      "Cerebro.Api.Features.Compliance.Models.CreditExplorerDetailsDto": {
        "type": "object",
        "properties": {
          "bankRelationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyOverviewBankDto"
            }
          },
          "existingAccountant": {
            "type": "string",
            "nullable": true
          },
          "existingLawFirm": {
            "type": "string",
            "nullable": true
          },
          "numEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amountsCurrency": {
            "type": "string",
            "description": "The currency of the viewing user, which the four amounts are converted to."
          },
          "annualTreasuryManagementFees": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "annualForeignExchangeVolume": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sizeOf401kPlan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "outstandingSwapValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isSoftwareSaasCompany": {
            "type": "boolean"
          },
          "governmentRevenuePercent": {
            "type": "integer",
            "description": "0-100; non-null only when the company is a government contractor.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CreditFacilityDetailsDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "documentsFolderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "interestRateReportTag": {
            "type": "string",
            "description": "Employees only: `#facilityInterestRate_{CreditFacilityId}`.",
            "nullable": true
          },
          "referenceText": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextDto"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryDto"
          },
          "economics": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsDto"
          },
          "hedges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeDto"
            }
          },
          "collateral": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralDto"
          },
          "equityCompensation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityDto"
          },
          "prepayment": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportAccessDto": {
        "type": "object",
        "properties": {
          "canDownload": {
            "type": "boolean"
          },
          "canEditNotes": {
            "type": "boolean"
          },
          "canMessage": {
            "type": "boolean"
          },
          "canEdit": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean",
            "description": "The signed-in user owns the report."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportCellDto": {
        "type": "object",
        "properties": {
          "present": {
            "type": "boolean",
            "description": "A data row was found (financial summary, trend) or the ACTUAL row was found (budget vs actual)."
          },
          "amount": {
            "type": "number",
            "description": "The value; budget vs actual: the actual.",
            "format": "double",
            "nullable": true
          },
          "budgetPresent": {
            "type": "boolean",
            "description": "Budget vs actual only.",
            "nullable": true
          },
          "budget": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "variance": {
            "type": "number",
            "description": "Budget vs actual only: (actual or 0) minus (budget or 0).",
            "format": "double",
            "nullable": true
          },
          "variancePercent": {
            "type": "number",
            "description": "Budget vs actual only, a fraction (0.123 = 12.3 %): 0 when the budget is missing, null or 0.",
            "format": "double",
            "nullable": true
          },
          "growth": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportGrowthDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportChoicesDto": {
        "type": "object",
        "properties": {
          "reportTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportOptionDto"
            }
          },
          "trendReportTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportOptionDto"
            }
          },
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Min year .. max year ascending (11 entries)."
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportOptionDto"
            },
            "description": "The legacy declaration order: Full Year (9), Q1-Q4, January-December (13-24)."
          },
          "statementTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportStatementChoiceDto"
            },
            "description": "Only the statement types that have at least one line item, in the order 1, 3, 2, 4, 5 (the legacy form order)."
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportCustomValueChoiceDto"
            }
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportCovenantChoiceDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportCovenantChoiceDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "loanAgreementName": {
            "type": "string"
          },
          "isInactive": {
            "type": "boolean",
            "description": "The agreement is no longer active; the covenant is only offered because the report already holds it."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportCustomValueChoiceDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportFormDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "description": "Null when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportGrowthDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "description": "\"Empty\" (no row or no prior row), \"Dash\" (a missing amount or a prior amount of 0) or \"Value\"."
          },
          "value": {
            "type": "number",
            "description": "A fraction: (amount - prior) / prior; only for state \"Value\".",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxItems": {
            "type": "integer",
            "format": "int32"
          },
          "minYear": {
            "type": "integer",
            "description": "The oldest report year (UTC now minus five years).",
            "format": "int32"
          },
          "maxYear": {
            "type": "integer",
            "description": "The newest report year (UTC now plus five years).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportLineDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The line item NAME (not the covenant label), the custom value name, the covenant name or \"-\"."
          },
          "kind": {
            "type": "string",
            "description": "\"LineItem\", \"CustomValue\", \"Covenant\" or \"Unknown\"."
          },
          "isCovenant": {
            "type": "boolean",
            "description": "Covenant values print as plain numbers with two decimals, not as currency."
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportCellDto"
            },
            "description": "One cell per period, in the order of the periods."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportLineItemChoiceDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "covenantLabel": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "The covenant label when set, else the name (the legacy option text)."
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isParent": {
            "type": "boolean",
            "description": "A heading: listed but not selectable."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportListRowDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "The name; empty when the stored name is null."
          },
          "reportType": {
            "type": "integer",
            "format": "int32"
          },
          "reportTypeName": {
            "type": "string"
          },
          "ownerName": {
            "type": "string",
            "description": "The full name of the owner; empty when the report has no owner."
          },
          "isOwner": {
            "type": "boolean"
          },
          "startYear": {
            "type": "integer",
            "format": "int32"
          },
          "startPeriod": {
            "type": "integer",
            "format": "int32"
          },
          "endYear": {
            "type": "integer",
            "format": "int32"
          },
          "endPeriod": {
            "type": "integer",
            "format": "int32"
          },
          "periodsText": {
            "type": "string",
            "description": "\"2023 Q1 to 2024 Q4\", \"2023 January to 2023 June\"."
          },
          "canDelete": {
            "type": "boolean",
            "description": "Cerebro.Api.Features.Compliance.Models.CustomReportsPageDto.CanOpen and the user owns the report."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportMessageFormDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string",
            "description": "The report name (empty for a legacy row without one)."
          },
          "typeName": {
            "type": "string",
            "description": "The legacy report type description (Budget vs Actual, Trend, Financial Summary); empty for a value the legacy never wrote."
          },
          "subtitle": {
            "type": "string",
            "description": "The legacy `EntityName`: `{name} - {type}`."
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose message drawer of a custom report: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportMessagesDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string"
          },
          "typeName": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer of a custom report: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportNotesDto": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportPeriodDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "description": "The legacy column text: \"2023 Q1\", \"Jan 2023\" (\"2023 Q9\" for a full year)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportSavedDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportStatementChoiceDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportLineItemChoiceDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportValuesDto": {
        "type": "object",
        "properties": {
          "reportType": {
            "type": "integer",
            "description": "1 Budget vs Actual, 2 Trend, 3 Financial Summary; null only on a new form.",
            "format": "int32",
            "nullable": true
          },
          "trendReportType": {
            "type": "integer",
            "description": "1 vs Prior Year (default), 2 vs Prior Period; only used when the report type is 2.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "startYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "endYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "endPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Line item types of any statement type (1..5), in the order of the picker.",
            "nullable": true
          },
          "customValueGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "covenantGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The values of the form and the body of POST / PATCH."
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportViewDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "reportType": {
            "type": "integer",
            "format": "int32"
          },
          "reportTypeName": {
            "type": "string"
          },
          "layout": {
            "type": "string",
            "description": "\"BudgetActual\", \"Trend\" or \"FinancialSummary\"."
          },
          "trendReportType": {
            "type": "integer",
            "description": "Only for a trend report: 1 vs Prior Year, 2 vs Prior Period.",
            "format": "int32",
            "nullable": true
          },
          "trendReportTypeName": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency code (\"USD\" when the company has none)."
          },
          "currencySuffix": {
            "type": "string",
            "description": "The legacy `CurrencyHelper.Format` rule: \" USD\", \" CAD\" or \" AUD\" when the company currency differs from the viewer's and is a dollar; null otherwise.",
            "nullable": true
          },
          "ownerName": {
            "type": "string"
          },
          "isOwner": {
            "type": "boolean"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportPeriodDto"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportLineDto"
            },
            "description": "The lines in stored order."
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportAccessDto"
          }
        },
        "additionalProperties": false,
        "description": "A report run as a table: the page of `GET Custom/{reportGuid}`. Amounts are raw decimals; the app (page) and the workbook format them."
      },
      "Cerebro.Api.Features.Compliance.Models.CustomReportsPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "canOpen": {
            "type": "boolean",
            "description": "The user may open a report (Edit, View) and add one; false = a read-only list without links (multi-company and third party contacts)."
          },
          "canAdd": {
            "type": "boolean",
            "description": "The user may add a report (= Cerebro.Api.Features.Compliance.Models.CustomReportsPageDto.CanOpen)."
          },
          "reports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomReportListRowDto"
            },
            "description": "Every report of the company (whoever owns it) in database (id) order; the app sorts."
          }
        },
        "additionalProperties": false,
        "description": "Reports > Custom Reports, phase 1 (`docs/compliance-app-customreports-contract.md`, section 5): the list, the add/edit form and the\nsaves. camelCase JSON. Names are verbatim the contract names."
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueCheckDto": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "formulaText": {
            "type": "string",
            "description": "The text of the posted formula even when it is invalid; empty when nothing resolves."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueErrorDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueChoiceDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueChoicesDto": {
        "type": "object",
        "properties": {
          "valueTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTypeChoiceDto"
            }
          },
          "operators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTextChoiceDto"
            }
          },
          "trailTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTextChoiceDto"
            }
          },
          "statementTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueStatementTypeDto"
            }
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueChoiceDto"
            },
            "description": "The valid children AND dynamic limit values: the other values of the company minus every value that depends on this one, by name."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueCovenantUsageDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "loanAgreementName": {
            "type": "string"
          },
          "usage": {
            "type": "string",
            "description": "Formula or DynamicLimit."
          },
          "isPeriodSpecific": {
            "type": "boolean"
          },
          "targetPeriod": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueCreditFacilityUsageDto": {
        "type": "object",
        "properties": {
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "loanAgreementName": {
            "type": "string"
          },
          "usage": {
            "type": "string",
            "description": "OutstandingBalance or Pricing."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueErrorDto": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueFormDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "description": "Null when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "termCount": {
            "type": "integer",
            "format": "int32"
          },
          "operatorCount": {
            "type": "integer",
            "format": "int32"
          },
          "maxAmount": {
            "type": "number",
            "format": "double"
          },
          "maxDepth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueLineItemChoiceDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "covenantLabel": {
            "type": "string",
            "nullable": true
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isParent": {
            "type": "boolean",
            "description": "A heading with child line items: shown disabled."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueReportUsageDto": {
        "type": "object",
        "properties": {
          "customReportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueRowDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "The name; empty when the stored name is null."
          },
          "valueType": {
            "type": "integer",
            "format": "int32"
          },
          "valueTypeName": {
            "type": "string"
          },
          "isEbitda": {
            "type": "boolean"
          },
          "formulaText": {
            "type": "string",
            "description": "The formula as text; empty for a formula without values."
          },
          "hasFormulaError": {
            "type": "boolean",
            "description": "A referenced line item or custom value no longer resolves."
          },
          "usage": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueUsageCountsDto"
          },
          "canDelete": {
            "type": "boolean",
            "description": "Cerebro.Api.Features.Compliance.Models.CompanyCustomValuesPageDto.CanManage and no covenant, custom value, credit facility or pricing usage."
          },
          "reportTag": {
            "type": "string",
            "description": "`#customValue_{id}`; employees only.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueSavedDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "formulaText": {
            "type": "string"
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          },
          "creditFacilityCount": {
            "type": "integer",
            "description": "The credit facilities that use the value (outstanding amount or pricing): NOT refreshed by this app.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueStatementTypeDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "isBalanceSheet": {
            "type": "boolean",
            "description": "Balance sheet types (2 and 5) take no trailing periods."
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueLineItemChoiceDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueTermDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "None, LineItem, CustomValue or Constant.",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "customValueGuid": {
            "type": "string",
            "description": "The child custom value (kind CustomValue).",
            "format": "uuid",
            "nullable": true
          },
          "trailType": {
            "type": "string",
            "description": "\"\" (current period), TTM, T9M, T6M, T3M or T3MA.",
            "nullable": true
          },
          "factor": {
            "type": "number",
            "description": "The multiplier; for a constant the constant itself. Default 1.",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "description": "The flat upper limit; 0 is none.",
            "format": "double"
          },
          "hasDynamicLimit": {
            "type": "boolean"
          },
          "limitCustomValueGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "limitFactor": {
            "type": "number",
            "description": "The factor of the dynamic limit. Default 1.",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueTextChoiceDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueTypeChoiceDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueUsageCountsDto": {
        "type": "object",
        "properties": {
          "covenants": {
            "type": "integer",
            "format": "int32"
          },
          "customValues": {
            "type": "integer",
            "format": "int32"
          },
          "creditFacilities": {
            "type": "integer",
            "format": "int32"
          },
          "customReports": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueUsageDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueCovenantUsageDto"
            }
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueValueUsageDto"
            }
          },
          "creditFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueCreditFacilityUsageDto"
            }
          },
          "customReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueReportUsageDto"
            }
          },
          "canDelete": {
            "type": "boolean",
            "description": "The covenant, custom value and credit facility lists are empty and the user may manage."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueValueUsageDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "usage": {
            "type": "string",
            "description": "Formula (a child value) or DynamicLimit."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.CustomValueValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "type": "integer",
            "description": "0 numeric, 1 percent, 2 currency.",
            "format": "int32"
          },
          "isEbitda": {
            "type": "boolean"
          },
          "operators": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "\"\" (none), \"(\", \")\", \"+\", \"-\", \"*\" or \"/\"; the legacy text \"None\" is accepted and stored as \"\".",
            "nullable": true
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTermDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The values of the form and of a save: 15 operators on output (1 to 15 on input) and 14 terms on output (1 to 14 on input)."
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteFinancialStatementsDto": {
        "type": "object",
        "properties": {
          "statementGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "confirmImpact": {
            "type": "boolean",
            "description": "The user accepted that used line items are detached from covenants, custom values and credit facilities."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteImpactLineItemTypeDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "statementTypeName": {
            "type": "string"
          },
          "usedInCovenant": {
            "type": "boolean"
          },
          "usedInCustomValue": {
            "type": "boolean"
          },
          "usedInCreditFacility": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteImpactStatementDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "statementTypeName": {
            "type": "string"
          },
          "lineItemCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteStatementFailureDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteStatementsImpactDto": {
        "type": "object",
        "properties": {
          "statements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteImpactStatementDto"
            }
          },
          "removedLineItemTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteImpactLineItemTypeDto"
            },
            "description": "The line item types that are on the selected statements and on no other statement: deleting the statements deletes them."
          },
          "detachedUsageCount": {
            "type": "integer",
            "description": "The removed types that are used (detached from covenants, custom values, credit facilities and pricing headers).",
            "format": "int32"
          },
          "promotedChildTypeCount": {
            "type": "integer",
            "description": "The surviving children of removed types: they become top level.",
            "format": "int32"
          },
          "requiresConfirmation": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DeleteStatementsResultDto": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DeleteStatementFailureDto"
            }
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentAllRowDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "extension": {
            "type": "string",
            "description": "The extension of the stored file, lower case with the dot; empty when it has none."
          },
          "documentTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "documentTypeName": {
            "type": "string"
          },
          "documentDate": {
            "type": "string",
            "description": "yyyy-MM-dd, never converted through a time zone.",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "uploadedBy": {
            "type": "string",
            "description": "The full name of the person who uploaded it.",
            "nullable": true
          },
          "canManage": {
            "type": "boolean"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "folderPath": {
            "type": "string",
            "description": "For example `Root Folder\\Financial Statements\\2024`; only visible folders."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentBreadcrumbDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isRoot": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentCurrentFolderDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isRoot": {
            "type": "boolean"
          },
          "folderType": {
            "type": "string",
            "description": "The name of the folder type: Root, FinancialStatements, Loans, CreditFacility, Other, LoanAgreement, LoanAssessmentRoot or LoanAssessment."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentDownloadDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "A presigned URL that is valid for five minutes."
          },
          "fileName": {
            "type": "string",
            "description": "The title plus the extension."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentFolderNodeDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isRoot": {
            "type": "boolean"
          },
          "folderType": {
            "type": "string"
          },
          "folders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentFolderNodeDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentFolderRowDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "folderType": {
            "type": "string"
          },
          "canRename": {
            "type": "boolean",
            "description": "The user may manage and the folder is a user folder (type Other)."
          },
          "canDelete": {
            "type": "boolean",
            "description": "Same rule as Cerebro.Api.Features.Compliance.Models.DocumentFolderRowDto.CanRename; the folder must also be empty when it is deleted."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentFolderSavedDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentLimitsDto": {
        "type": "object",
        "properties": {
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "maxFilesPerUpload": {
            "type": "integer",
            "format": "int32"
          },
          "maxTitleLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxFolderNameLength": {
            "type": "integer",
            "format": "int32"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The accepted file extensions, lower case with the dot."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentRowDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "extension": {
            "type": "string",
            "description": "The extension of the stored file, lower case with the dot; empty when it has none."
          },
          "documentTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "documentTypeName": {
            "type": "string"
          },
          "documentDate": {
            "type": "string",
            "description": "yyyy-MM-dd, never converted through a time zone.",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "uploadedBy": {
            "type": "string",
            "description": "The full name of the person who uploaded it.",
            "nullable": true
          },
          "canManage": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DocumentTypeItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.DynamicFeeDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "`Currency` or `BasisPoints`."
          },
          "isDynamic": {
            "type": "boolean"
          },
          "insufficientData": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyContactCapabilitiesDto": {
        "type": "object",
        "properties": {
          "showComplianceSettings": {
            "type": "boolean",
            "description": "The company manages debt or financials."
          },
          "showCreditExplorerSettings": {
            "type": "boolean",
            "description": "The company shows the credit explorer (reserved)."
          },
          "showReportApproval": {
            "type": "boolean",
            "description": "The company has the compliance navigator subscription, or the user is an employee."
          },
          "showInternalCodes": {
            "type": "boolean",
            "description": "The company has internal codes."
          },
          "showCovenantAssignment": {
            "type": "boolean",
            "description": "There are SMEs to copy the covenant assignment from."
          },
          "takenApprovalLevels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TakenApprovalLevelDto"
            },
            "description": "The levels another contact already holds."
          },
          "numActiveCovenantContacts": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyContactFormDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "description": "Null when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CompanyContactValuesDto"
          },
          "isEditingSelf": {
            "type": "boolean",
            "description": "The user edits their own contact: active and locked out are hidden and ignored."
          },
          "lockUserAdministrator": {
            "type": "boolean",
            "description": "#14837: the User Administrator permission cannot be changed on this form (the user edits their own contact and is not an employee)."
          },
          "hasConfiguredTotp": {
            "type": "boolean",
            "description": "Employees only: the person set up multi-factor authentication with an authenticator app (the Reset MFA panel of the employee app, story #14776). False for everybody else."
          },
          "capabilities": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyContactCapabilitiesDto"
          },
          "lookups": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyContactLookupsDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyContactLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyContactLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxEmail": {
            "type": "integer",
            "format": "int32"
          },
          "maxJobTitle": {
            "type": "integer",
            "format": "int32"
          },
          "maxPhone": {
            "type": "integer",
            "format": "int32"
          },
          "maxOfficeName": {
            "type": "integer",
            "format": "int32"
          },
          "maxAddress": {
            "type": "integer",
            "format": "int32"
          },
          "maxCity": {
            "type": "integer",
            "format": "int32"
          },
          "maxZip": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyContactLookupsDto": {
        "type": "object",
        "properties": {
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timeZones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceTimeZoneDto"
            }
          },
          "offices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            },
            "description": "The offices of the company by their full address."
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceStateItemDto"
            }
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceInternalCodeDto"
            }
          },
          "smes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceContactSmeDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewCapabilitiesDto": {
        "type": "object",
        "properties": {
          "showFinancialApproval": {
            "type": "boolean",
            "description": "The company manages financials."
          },
          "showCovenantApproval": {
            "type": "boolean",
            "description": "The company manages debt."
          },
          "showInternalCode": {
            "type": "boolean",
            "description": "The company has a parent and the user is a company admin or an employee."
          },
          "showCovenantReminders": {
            "type": "boolean",
            "description": "The company manages debt and has no parent."
          },
          "remindersInheritedFrom": {
            "type": "string",
            "description": "The parent name when the company manages debt and has a parent; the reminders are then read only.",
            "nullable": true
          },
          "remindersApplyToRelated": {
            "type": "boolean",
            "description": "The company has related (child) companies."
          },
          "showEmployeeSettings": {
            "type": "boolean",
            "description": "The user is an employee: the employee only company settings (what the company manages, related companies, supplemental terms, restricted access, test company) are shown and saved."
          },
          "canEditRestrictedAccess": {
            "type": "boolean",
            "description": "The employee may change restricted access (needs the access restricted companies permission)."
          },
          "canEditCurrency": {
            "type": "boolean",
            "description": "#14838: the user may change the currency of the company (an employee or a User Administrator of the company)."
          }
        },
        "additionalProperties": false,
        "description": "Which sections of the edit form apply to the company and the user."
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewFormDto": {
        "type": "object",
        "properties": {
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UpdateCompanyOverviewValuesDto"
          },
          "logoUrl": {
            "type": "string",
            "description": "A presigned URL of the current logo.",
            "nullable": true
          },
          "parent": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewParentDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewLimitsDto"
          },
          "capabilities": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewCapabilitiesDto"
          },
          "lookups": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewLookupsDto"
          }
        },
        "additionalProperties": false,
        "description": "The edit form of the company overview: its values, the logo, the limits and the choices."
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewLimitsDto": {
        "type": "object",
        "properties": {
          "maxLogoBytes": {
            "type": "integer",
            "format": "int64"
          },
          "logoExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maxCompanyNameLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxBillingEmailLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxOverviewLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxOtherIndustryLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxSecurityIdLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxInternalCodeLength": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewLookupsDto": {
        "type": "object",
        "properties": {
          "companyTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "months": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceLookupItemDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "#14838: the currencies a company can have (the list of the employee Edit Company page)."
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceInternalCodeDto"
            },
            "description": "The internal codes of the parent company; empty without a parent."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EditCompanyOverviewParentDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "description": "A presigned URL of the logo of the parent; null when it has none.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The parent of the company on the edit form: where to link to it and how to show it."
      },
      "Cerebro.Api.Features.Compliance.Models.EnterResponsesAnswerDto": {
        "type": "object",
        "properties": {
          "resultGuid": {
            "type": "string",
            "description": "Nullable so a missing value is a field error, not a model binding failure.",
            "format": "uuid",
            "nullable": true
          },
          "answer": {
            "type": "string",
            "description": "`Yes`, `No`, `N/A`, `Unsure` or empty (clear).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EnterResponsesDto": {
        "type": "object",
        "properties": {
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesAnswerDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The save of the page: only the rows the user touched."
      },
      "Cerebro.Api.Features.Compliance.Models.EnterResponsesPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "description": "The company of the route.",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportFiltersDto"
          },
          "intro": {
            "type": "string",
            "description": "`enter` (some row of the page has its period end or reporting due date reached) or `waiting`."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EnterResponsesRowDto"
            }
          },
          "page": {
            "type": "integer",
            "description": "The effective page (clamped to 1..totalPages, 1 without rows).",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Reports > Reporting Summary > Enter Responses for Pending Covenants (`docs/compliance-app-answercovenants-contract.md`, section 6): the pending\nnon-financial covenant results of the Reporting Summary filters (the roll-up of the company and its related companies), one page of 50, with what the\ncaller may answer. Dates are `yyyy-MM-dd`; nulls are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.EnterResponsesRowDto": {
        "type": "object",
        "properties": {
          "resultGuid": {
            "type": "string",
            "description": "The key of the row and of its answer.",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "covenantDescription": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The last names of the assigned SMEs in the order of the procedure."
          },
          "frequency": {
            "type": "string",
            "description": "`annual`, `semiAnnual`, `quarterly`, `monthly` or `eventDriven`."
          },
          "frequencyText": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string",
            "description": "The stored period text, trimmed."
          },
          "periodEndDate": {
            "type": "string",
            "description": "The end of the period: the \"Available {date}\" text of a row that is not open.",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "dueTone": {
            "type": "string",
            "description": "`inactive` or `warning`."
          },
          "canAnswer": {
            "type": "boolean",
            "description": "The caller may answer this row now."
          },
          "blockedReason": {
            "type": "string",
            "description": "`notSme`, `notOpen` or `noPermission`; present when Cerebro.Api.Features.Compliance.Models.EnterResponsesRowDto.CanAnswer is false.",
            "nullable": true
          },
          "mine": {
            "type": "string",
            "description": "The answer of the caller own slot (`Yes`, `No`, `N/A` or `Unsure`); absent when none.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventAttachmentDownloadDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventCovenantRowDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "description": "The agreement of the covenant (for the link to its Results page); null when the covenant has none.",
            "format": "uuid",
            "nullable": true
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "smeNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The active subject matter experts, full names, ordered by last name."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventOccurrenceFormDto": {
        "type": "object",
        "properties": {
          "eventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "eventName": {
            "type": "string"
          },
          "eventDate": {
            "type": "string",
            "description": "Today (server date)."
          },
          "relatedCovenantCount": {
            "type": "integer",
            "description": "The covenants linked to the event: a result is created for each one that is active on the date.",
            "format": "int32"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.EventOccurrenceLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventOccurrenceLimitsDto": {
        "type": "object",
        "properties": {
          "maxNotes": {
            "type": "integer",
            "format": "int32"
          },
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventOccurrenceRowDto": {
        "type": "object",
        "properties": {
          "occurrenceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "eventDate": {
            "type": "string"
          },
          "reportedBy": {
            "type": "string",
            "description": "The full name of the reporter (\"First Last\"); null when unknown.",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "hasAttachment": {
            "type": "boolean"
          },
          "attachmentName": {
            "type": "string",
            "description": "The display name of the attachment (without the storage suffix).",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "`None` (no covenant results), `Pending` or `Complete` (every result complete)."
          },
          "pendingDueDate": {
            "type": "string",
            "description": "The earliest due date of the incomplete results; only for `Pending`.",
            "nullable": true
          },
          "covenantResultCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.EventOccurrenceSavedDto": {
        "type": "object",
        "properties": {
          "occurrenceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantResultsCreated": {
            "type": "integer",
            "description": "Covenants linked to the event that were active on the event date (a result was created for each).",
            "format": "int32"
          },
          "covenantsSkipped": {
            "type": "integer",
            "description": "Linked covenants that were not active on the date (no result created).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ExistingCompanyCandidateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The company guid (named `id` like the company lookups the employee app picker uses).",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "isComplianceCompany": {
            "type": "boolean",
            "description": "The company manages debt or financials."
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExistingCompanyPersonDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "A company already in Cerebro that can be associated as a child of the portfolio company."
      },
      "Cerebro.Api.Features.Compliance.Models.ExistingCompanyCandidatesPageDto": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ExistingCompanyCandidateDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "One page (15 companies) of the companies that can be associated, ordered by name."
      },
      "Cerebro.Api.Features.Compliance.Models.ExistingCompanyPersonDto": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One contact of a company that can be associated, shown under the company name."
      },
      "Cerebro.Api.Features.Compliance.Models.ExtensionOptionActionBodyDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of the exercise and the reset: the facility version the page loaded."
      },
      "Cerebro.Api.Features.Compliance.Models.ExtensionOptionChangedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionsDto"
          },
          "shell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityShellStatusDto"
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false,
        "description": "The answer of an exercise or a reset: the NEW facility version (the page replaces the one of its context), the refreshed list, the header and what happened to the covenant periods."
      },
      "Cerebro.Api.Features.Compliance.Models.ExtensionOptionStateDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "`alreadyExercised`, `notExercised`, `noMaturityDate` or `dateOutOfRange`."
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of an extension option that is not in the state the action needs (nothing was written)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityAuditEntryDto": {
        "type": "object",
        "properties": {
          "auditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "auditTypeName": {
            "type": "string",
            "description": "The enum description; \"Audit type {n}\" for an unknown value."
          },
          "valueKind": {
            "type": "string",
            "description": "`text`, `date`, `amount` or `fields`."
          },
          "previous": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAuditValueDto"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAuditValueDto"
          },
          "changedOn": {
            "type": "string",
            "description": "UTC instant; the app formats it in the user time zone.",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "description": "The full name of the person; null is the system.",
            "nullable": true
          },
          "isApiRequest": {
            "type": "boolean",
            "description": "The row was written by the customer API (`changedBy` is then null)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityAuditFieldDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "One top level property of a JSON audit value (the hedge audits), in stored order."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityAuditHistoryDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "All rows of the facility; `entries` holds at most 500.",
            "format": "int32"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAuditEntryDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The audit history drawer: newest first, at most 500 rows."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityAuditValueDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Always the stored text (the fallback when the typed value could not be read).",
            "nullable": true
          },
          "date": {
            "type": "string",
            "description": "Kind `date`, when the text is a date: `yyyy-MM-dd`.",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Kind `amount`, when the text is a number.",
            "format": "double",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAuditFieldDto"
            },
            "description": "Kind `fields`, when the text is a JSON object: the top level properties in stored order.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A stored audit value; the entry holds null when the stored text is null or empty."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityBalanceHistoryDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "description": "`manual` or `financialStatements` (`IsFinancialStatementOutstandingAmount`)."
          },
          "totalCount": {
            "type": "integer",
            "description": "Financial statement source: all periods (at most 100 are returned); manual: all rows (at most 500).",
            "format": "int32"
          },
          "isTruncated": {
            "type": "boolean"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityBalanceRowDto"
            },
            "description": "Newest first (as-of date descending)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityBalanceRowDto": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "description": "Null is a custom value that could not be calculated (\"Not available\").",
            "format": "double",
            "nullable": true
          },
          "asOfDate": {
            "type": "string",
            "description": "`yyyy-MM-dd`: the statement end date, or the UTC date of the audit row for the manual source."
          },
          "period": {
            "type": "string",
            "description": "\"Q1 2025\" / \"Full Year 2024\" (financial statement source only).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityCollateralDto": {
        "type": "object",
        "properties": {
          "secured": {
            "type": "boolean"
          },
          "borrowingBaseLien": {
            "type": "string",
            "description": "Null when \"No\".",
            "nullable": true
          },
          "generalCollateralDetails": {
            "type": "string",
            "nullable": true
          },
          "hasCreditSupport": {
            "type": "boolean"
          },
          "guarantees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeDto"
            },
            "description": "Only when the facility has credit support."
          },
          "creditSupportDetails": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityCollateralFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralValuesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityCollateralSavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityCollateralFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityCollateralValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "isSecured": {
            "type": "boolean"
          },
          "borrowingBaseLien": {
            "type": "string",
            "description": "`No`, `Weekly`, `Monthly` or `Quarterly`.",
            "nullable": true
          },
          "generalCollateralDetails": {
            "type": "string",
            "nullable": true
          },
          "hasCreditSupport": {
            "type": "boolean",
            "description": "The legacy `IsRecourse`; false clears every guarantee."
          },
          "limitedRecourse": {
            "type": "boolean"
          },
          "directPayment": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto"
          },
          "equityFundingCommitment": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto"
          },
          "carry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto"
          },
          "completion": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto"
          },
          "franchise": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto"
          },
          "otherGuarantee": {
            "type": "boolean"
          },
          "creditSupportDetails": {
            "type": "string",
            "description": "The column `RecourseDescription`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityCreatedDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The label of the facility (name, amount, currency, type) like the Loans page menu."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEconomicsDto": {
        "type": "object",
        "properties": {
          "interestRate": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PricedValueDto"
          },
          "pikRate": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PricedValueDto"
          },
          "indexRate": {
            "type": "string",
            "description": "\"SOFR\" is shown as \"Term SOFR\".",
            "nullable": true
          },
          "indexRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexRateCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexReplacement": {
            "type": "string",
            "description": "Null when None.",
            "nullable": true
          },
          "hasFees": {
            "type": "boolean"
          },
          "closingFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FeeDto"
          },
          "commitmentFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DynamicFeeDto"
          },
          "unusedFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DynamicFeeDto"
          },
          "otherFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FeeDto"
          },
          "otherFeeDescription": {
            "type": "string",
            "nullable": true
          },
          "hedgeRequired": {
            "type": "boolean"
          },
          "hedgeRequirementDetails": {
            "type": "string",
            "nullable": true
          },
          "requiredPrimaryDepositoryRelationship": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEconomicsFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsValuesDto"
          },
          "interestRate": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricedValueDto"
          },
          "pikRate": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricedValueDto"
          },
          "commitmentFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricedValueDto"
          },
          "unusedFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricedValueDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEconomicsSavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEconomicsFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEconomicsValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "indexRate": {
            "type": "string",
            "description": "One of the option values or `Other`.",
            "nullable": true
          },
          "customIndexRate": {
            "type": "string",
            "nullable": true
          },
          "indexRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexRateCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexReplacement": {
            "type": "integer",
            "format": "int32"
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasFees": {
            "type": "boolean"
          },
          "closingFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "closingFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "commitmentFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commitmentFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "unusedFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unusedFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "otherFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "otherFeeDescription": {
            "type": "string",
            "nullable": true
          },
          "hasSecurityDeposit": {
            "type": "boolean"
          },
          "securityDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityHedgeRequired": {
            "type": "boolean"
          },
          "facilityRequirementDetails": {
            "type": "string",
            "nullable": true
          },
          "requiredPrimaryDepositoryRelationship": {
            "type": "boolean"
          },
          "interestRateSource": {
            "type": "string",
            "description": "`manual` or `dynamic`; only dynamic to manual is accepted (a dynamic value for a field that is not dynamic is a 400).",
            "nullable": true
          },
          "pikRateSource": {
            "type": "string",
            "nullable": true
          },
          "commitmentFeeSource": {
            "type": "string",
            "nullable": true
          },
          "unusedFeeSource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEditShellDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`active`, `inactive` or `deleted`."
          },
          "versions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySectionVersionsDto"
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityAccessDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityLimitsDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionsDto"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySectionInfoDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "What the header and the section navigation of the edit page need."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEquityDto": {
        "type": "object",
        "properties": {
          "preferredShares": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPreferredSharesDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityGrantDto"
          },
          "warrants": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityGrantDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEquityFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityValuesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEquityGrantDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "strikePrice": {
            "type": "number",
            "format": "double"
          },
          "issueDate": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Options or warrants; the strike price is in US dollars."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEquitySavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityEquityFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityEquityValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "hasEquityCompensation": {
            "type": "boolean"
          },
          "preferredShares": {
            "type": "boolean"
          },
          "numPreferredShares": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "optionsIssued": {
            "type": "boolean"
          },
          "numOptions": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "optionStrikePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "optionsIssueDate": {
            "type": "string",
            "nullable": true
          },
          "optionsExpirationDate": {
            "type": "string",
            "nullable": true
          },
          "warrantsIssued": {
            "type": "boolean"
          },
          "numWarrants": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "warrantsStrikePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "warrantsIssueDate": {
            "type": "string",
            "nullable": true
          },
          "warrantsExpirationDate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityExpressCreatedDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "documentsAdded": {
            "type": "integer",
            "description": "The documents that were stored AND saved (at least 1).",
            "format": "int32"
          },
          "rejectedFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRejectedFileDto"
            },
            "description": "Files that could not be STORED (validation problems are a 400 before anything is stored)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionDto": {
        "type": "object",
        "properties": {
          "optionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "criteria": {
            "type": "string"
          },
          "daysToExtendBy": {
            "type": "integer",
            "format": "int32"
          },
          "isExercised": {
            "type": "boolean"
          },
          "exercisedOn": {
            "type": "string",
            "description": "The UTC instant, ISO 8601 with `Z`.",
            "nullable": true
          },
          "exercisedBy": {
            "type": "string",
            "description": "The full name of the person who exercised it.",
            "nullable": true
          },
          "maturityDateIfExercised": {
            "type": "string",
            "description": "The current maturity date plus the days; null when exercised, when there is no current maturity date, or when it would pass the maximum date.",
            "nullable": true
          },
          "canExercise": {
            "type": "boolean",
            "description": "Not exercised and Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionDto.MaturityDateIfExercised has a value."
          },
          "exerciseBlockedReason": {
            "type": "string",
            "description": "Why an unexercised option cannot be exercised; null otherwise.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionLimitsDto": {
        "type": "object",
        "properties": {
          "maxCriteria": {
            "type": "integer",
            "format": "int32"
          },
          "minDays": {
            "type": "integer",
            "format": "int32"
          },
          "maxDays": {
            "type": "integer",
            "format": "int32"
          },
          "defaultDays": {
            "type": "integer",
            "format": "int32"
          },
          "maxDate": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The extension options of a credit facility on the Edit Credit Facility page (sub-phase 8c-2; contract section 8c.3.1). Dates are\n`yyyy-MM-dd` text; `exercisedOn` is the UTC instant (ISO 8601 with `Z`) that the app shows in the browser time zone."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionValuesDto": {
        "type": "object",
        "properties": {
          "criteria": {
            "type": "string",
            "nullable": true
          },
          "daysToExtendBy": {
            "type": "integer",
            "description": "Nullable so that a missing value is a 400 on its key instead of a 0.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionsDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "The facility version (exercise and reset require it)."
          },
          "initialMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "currentMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "potentialMaturityDate": {
            "type": "string",
            "description": "The current maturity date plus the days of ALL unexercised options (the Phase 1 rule); null when there is none or no current date.",
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionLimitsDto"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityExtensionOptionDto"
            },
            "description": "In creation order (id)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "capAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasCap": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityGuaranteeValuesDto": {
        "type": "object",
        "properties": {
          "selected": {
            "type": "boolean"
          },
          "hasCap": {
            "type": "boolean"
          },
          "capAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityHedgeDto": {
        "type": "object",
        "properties": {
          "hedgeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "required": {
            "type": "boolean"
          },
          "inPlace": {
            "type": "boolean"
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          },
          "hedgeType": {
            "type": "string",
            "nullable": true
          },
          "level": {
            "description": "A Cerebro.Api.Features.Compliance.Models.HedgePercentLevelDto or a Cerebro.Api.Features.Compliance.Models.HedgeCollarLevelDto (told apart by `kind`)."
          },
          "requirement": {
            "type": "string",
            "nullable": true
          },
          "entity": {
            "type": "string",
            "nullable": true
          },
          "counterparty": {
            "type": "string",
            "nullable": true
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentHedged": {
            "type": "number",
            "description": "A fraction (0.5 means 50%); null when the notional or the outstanding amount is missing or zero.",
            "format": "double",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityHedgeLimitsDto": {
        "type": "object",
        "properties": {
          "maxTicker": {
            "type": "integer",
            "format": "int32"
          },
          "maxName": {
            "type": "integer",
            "description": "The maximum of the entity and the counterparty name.",
            "format": "int32"
          },
          "maxRequirementDetail": {
            "type": "integer",
            "format": "int32"
          },
          "maxLevel": {
            "type": "integer",
            "description": "Percent points.",
            "format": "int32"
          },
          "maxNotional": {
            "type": "number",
            "format": "double"
          },
          "minDate": {
            "type": "string"
          },
          "maxDate": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The hedge details of a credit facility on the Edit Credit Facility page (sub-phase 8c-2; contract section 8c.2.3). Dates are\n`yyyy-MM-dd` text without time zone conversion; amounts are numbers in the COMPANY currency; levels are percent points;\n`percentHedged` is a FRACTION like the Phase 1 display (0.5 = 50%). The contract calls Cerebro.Api.Features.Compliance.Models.FacilityHedgeRowDto`FacilityHedgeDto` (the JSON shape is the same); the C# name differs because the Phase 1 display DTO owns that name."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityHedgeRowDto": {
        "type": "object",
        "properties": {
          "hedgeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto"
          },
          "hedgeTypeLabel": {
            "type": "string",
            "description": "Cap, Swaption, Swap, Collar Option, Floor; empty when the stored type is null."
          },
          "percentHedged": {
            "type": "number",
            "description": "A fraction: the notional divided by the outstanding amount of the facility; null when either is missing or the outstanding amount is 0.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One hedge of the list and the answer of an add or an edit (the contract's `FacilityHedgeDto`)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityHedgeValuesDto": {
        "type": "object",
        "properties": {
          "isRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isInPlace": {
            "type": "boolean",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "hedgeType": {
            "type": "integer",
            "description": "0 Cap, 1 Swaption, 2 Swap, 3 Collar Option, 4 Floor; null only for a legacy row with no type.",
            "format": "int32",
            "nullable": true
          },
          "hedgeLevel": {
            "type": "number",
            "description": "Percent points, 4 decimals; cleared when the type is Collar Option.",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "description": "Percent points, 2 decimals; only for the Collar Option, else cleared.",
            "format": "double",
            "nullable": true
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "description": "At most 500 characters; CR/LF are kept.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What an add or an edit posts. The API requires every property: the three flags and `hedgeType` are nullable here so that a\nmissing one is a 400 on its key instead of a silent false or 0 (the defaults of a NEW hedge are client side)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityHedgesDto": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "description": "The base of the percent hedged (the outstanding amount of the facility), shown in the drawer.",
            "format": "double",
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeLimitsDto"
          },
          "hedgeTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "hedges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityHedgeRowDto"
            },
            "description": "By expiration date (nulls last), then id: the Phase 1 order."
          }
        },
        "additionalProperties": false,
        "description": "The list of the hedge details of one credit facility."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxPurposeText": {
            "type": "integer",
            "format": "int32"
          },
          "maxDetail": {
            "type": "integer",
            "format": "int32"
          },
          "maxPaymentDateText": {
            "type": "integer",
            "format": "int32"
          },
          "maxPaymentFrequencyOther": {
            "type": "integer",
            "format": "int32"
          },
          "maxAmortizationDetails": {
            "type": "integer",
            "format": "int32"
          },
          "maxIndexRateText": {
            "type": "integer",
            "format": "int32"
          },
          "maxFacilityAmount": {
            "type": "integer",
            "format": "int64"
          },
          "maxAmount": {
            "type": "number",
            "format": "double"
          },
          "maxRate": {
            "type": "integer",
            "format": "int32"
          },
          "maxPercent": {
            "type": "integer",
            "format": "int32"
          },
          "maxCount": {
            "type": "integer",
            "format": "int32"
          },
          "maxYears": {
            "type": "integer",
            "format": "int32"
          },
          "minDate": {
            "type": "string"
          },
          "maxDate": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageAttachmentDto": {
        "type": "object",
        "properties": {
          "fileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageDto": {
        "type": "object",
        "properties": {
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          },
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Sanitized HTML."
          },
          "visibility": {
            "type": "string"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "description": "The sender; null is a system message.",
            "nullable": true
          },
          "fromIsMe": {
            "type": "boolean"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isReply": {
            "type": "boolean"
          },
          "isUnread": {
            "type": "boolean"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageAttachmentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageFormDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose drawer: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto": {
        "type": "object",
        "properties": {
          "maxSubjectLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxBodyLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxRecipients": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto": {
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "listName": {
            "type": "string",
            "description": "#14836: \"Last Name, First Name\" (the list name of a recipient); the display name of the user when the person has no name."
          },
          "kind": {
            "type": "string",
            "description": "`Company`, `Lender` or `AccountManager`."
          },
          "organization": {
            "type": "string",
            "description": "The company or bank of the person; null for an account manager.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessageSentDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityMessagesDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The Edit Credit Facility page of the compliance app (Company Profile > Loans, Phase 8a). See\n`docs/compliance-app-creditfacility-contract.md`, section 7. Dates are `yyyy-MM-dd` text without time zone\nconversion; amounts are numbers in the COMPANY currency; percent values are percent points (5.25 = 5.25%); enums travel as\ntheir stored integers with the option lists in the shell. Every PATCH body carries the `version` it was loaded with."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityOptionsDto": {
        "type": "object",
        "properties": {
          "facilityTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "purposes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "marketToMarket": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "transferRestrictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "classifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "amortizationStructures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "paymentFrequencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "indexRates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityTextOptionDto"
            }
          },
          "indexReplacements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "feeTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "borrowingBaseLiens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityTextOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityOutstandingSourceDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "`manual` or `financialStatement`."
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "platformUrl": {
            "type": "string",
            "nullable": true
          },
          "line1": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceLineValuesDto"
          },
          "line2": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceLineValuesDto"
          },
          "message": {
            "type": "string",
            "description": "Why the balance could not be computed (no actual statement, a custom value without data); null when it is current. Replaces the permanent \"stale\" warning.",
            "nullable": true
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceOptionsDto"
          },
          "pricingConfigured": {
            "type": "boolean",
            "description": "The field has a pricing grid (story #14774): the Dynamic option can be chosen and saved."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPreferredSharesDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentDto": {
        "type": "object",
        "properties": {
          "hasPenalties": {
            "type": "boolean"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentValuesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "percent": {
            "type": "number",
            "description": "The stored value as percent points (5 means 5%).",
            "format": "double"
          },
          "details": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto": {
        "type": "object",
        "properties": {
          "percent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentSavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "hasPrepaymentPenalties": {
            "type": "boolean"
          },
          "period1": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          },
          "period2": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          },
          "period3": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          },
          "period4": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          },
          "period5": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          },
          "thereafter": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPrepaymentPeriodValuesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricedValueDto": {
        "type": "object",
        "properties": {
          "isDynamic": {
            "type": "boolean"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "insufficientData": {
            "type": "boolean",
            "description": "A dynamic field that has no computed value yet."
          },
          "platformUrl": {
            "type": "string",
            "nullable": true
          },
          "pricingConfigured": {
            "type": "boolean",
            "description": "The field has a pricing grid (story #14774): the Dynamic option can be chosen and saved."
          }
        },
        "additionalProperties": false,
        "description": "The read only status of a dynamic pricing field."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingFormDto": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "configured": {
            "type": "boolean",
            "description": "A header exists for the field."
          },
          "isDynamic": {
            "type": "boolean",
            "description": "The facility prices the field with this grid now."
          },
          "unit": {
            "type": "string",
            "description": "`percent` for interest and PIK, `$` or `bps` for the fees."
          },
          "currentValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingValuesDto"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingSourceOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingHistoryDto": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency code (the statement values of a currency line item)."
          },
          "configured": {
            "type": "boolean"
          },
          "isDynamic": {
            "type": "boolean"
          },
          "canViewForecast": {
            "type": "boolean"
          },
          "source1Name": {
            "type": "string",
            "nullable": true
          },
          "source1Format": {
            "type": "string",
            "nullable": true
          },
          "source2Name": {
            "type": "string",
            "nullable": true
          },
          "source2Format": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingRuleTextDto"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingHistoryRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingHistoryRowDto": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "description": "`past`, `current` or `future`."
          },
          "facilityActive": {
            "type": "boolean"
          },
          "result": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "value1": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "value2": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingRuleDto": {
        "type": "object",
        "properties": {
          "operator1": {
            "type": "string",
            "description": "One of the four comparison operators: greater than, greater or equal, less than, less or equal.",
            "nullable": true
          },
          "value1": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "operator2": {
            "type": "string",
            "description": "Only with a 2nd source.",
            "nullable": true
          },
          "value2": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "resultValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One rule of a grid: the first one that matches (in order) gives the result."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingRuleTextDto": {
        "type": "object",
        "properties": {
          "formula": {
            "type": "string"
          },
          "resultValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingSavedDto": {
        "type": "object",
        "properties": {
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingFormDto"
          },
          "version": {
            "type": "string",
            "description": "The facility version, NOT changed by a pricing save (the computed value is a system value like the refresh after a financial change)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingSourceOptionDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "group": {
            "type": "string",
            "description": "The statement type name, or `Custom values`."
          },
          "format": {
            "type": "string",
            "description": "`number`, `percent` or `currency` (how the value is shown)."
          }
        },
        "additionalProperties": false,
        "description": "A company line item or custom value that can feed a pricing grid. `Key` is `L:{lineItemTypeId}` or `C:{customValueGuid}`."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityPricingValuesDto": {
        "type": "object",
        "properties": {
          "source1": {
            "type": "string",
            "description": "The 1st value (`L:..` or `C:..`); null = no source, the default always applies.",
            "nullable": true
          },
          "source2": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityPricingRuleDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "What a save posts and a read returns: the header and the ordered rules."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextDto": {
        "type": "object",
        "properties": {
          "main": {
            "type": "boolean"
          },
          "loanCosts": {
            "type": "boolean"
          },
          "collateral": {
            "type": "boolean"
          },
          "equityComp": {
            "type": "boolean"
          },
          "prepayment": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Which categories have reference text (the info buttons)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextFormDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "description": "`main`, `loanCosts`, `collateral`, `equityComp` or `prepayment`."
          },
          "html": {
            "type": "string",
            "description": "Sanitized, images re-signed (60 minutes); absent when there is no text.",
            "nullable": true
          },
          "hasText": {
            "type": "boolean"
          },
          "maxLength": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The editor form of one reference text topic (`GET .../ReferenceText/{category}/Form`)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextSavedDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "category": {
            "type": "string"
          },
          "hasText": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityReferenceTextViewDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "description": "`main`, `loanCosts`, `collateral`, `equityComp` or `prepayment`."
          },
          "html": {
            "type": "string",
            "description": "Sanitized HTML with the image urls signed; null is no text for the topic.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One reference text topic of a facility (the C# name differs from the Phase 1 `FacilityReferenceTextDto` flags)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySectionInfoDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "built": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "A navigation entry; `built` false = the app links to the legacy tab."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySectionVersionsDto": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string"
          },
          "economics": {
            "type": "string"
          },
          "collateral": {
            "type": "string"
          },
          "equity": {
            "type": "string"
          },
          "prepayment": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The optimistic version of each section of a facility: `v` + a hash of the columns the section owns (story #14860)."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityShellStatusDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The header refresh a Summary or Status save returns without a second request."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySourceCustomValueOptionDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySourceLineItemOptionDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "depth": {
            "type": "integer",
            "description": "Nesting level under the parent line items (0 = top level), for the indentation of the picker.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySourceLineValuesDto": {
        "type": "object",
        "properties": {
          "valueType": {
            "type": "integer",
            "description": "The statement type 1..5 of a line item, 0 for a custom value, null = no line.",
            "format": "int32",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "description": "The line item (value type 1..5).",
            "format": "int64",
            "nullable": true
          },
          "customValueGuid": {
            "type": "string",
            "description": "The custom value (value type 0).",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One source line of the outstanding amount: a line item of a statement type, or a company custom value."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySourceOptionsDto": {
        "type": "object",
        "properties": {
          "statementTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceStatementTypeOptionDto"
            }
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceCustomValueOptionDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "What the source pickers offer: the statement types with their line items (parents excluded) and the company custom values."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySourceStatementTypeOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceLineItemOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityStaleDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "currentVersion": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of a PATCH whose `version` is not the current one; nothing was written."
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityStatusFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusValuesDto"
          },
          "canMarkDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityStatusSavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityStatusFormDto"
          },
          "shell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityShellStatusDto"
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityStatusValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Employees only; ignored (the stored value stays) for anyone else."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySublimitsDto": {
        "type": "object",
        "properties": {
          "letterOfCredit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "creditCards": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "swingline": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySummaryDto": {
        "type": "object",
        "properties": {
          "facilityType": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "nullable": true
          },
          "interestOnly": {
            "type": "boolean"
          },
          "interestOnlyThroughoutLife": {
            "type": "boolean"
          },
          "interestOnlyPeriodEndDate": {
            "type": "string",
            "nullable": true
          },
          "maximumFacilityAmount": {
            "type": "number",
            "format": "double"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "outstandingAmountAsOf": {
            "type": "string",
            "nullable": true
          },
          "classification": {
            "type": "string",
            "description": "Null when \"N/A\".",
            "nullable": true
          },
          "advanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sublimits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySublimitsDto"
          },
          "termYears": {
            "type": "number",
            "format": "double"
          },
          "amortization": {
            "type": "string",
            "description": "\"Straight-Line 5 Years\", \"Mortgage 20 Years\", \"N/A\", the custom details or \"None\"."
          },
          "firstPaymentDate": {
            "type": "string",
            "description": "A free text column, not a date.",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "closingDate": {
            "type": "string",
            "nullable": true
          },
          "mostRecentAmendmentDate": {
            "type": "string",
            "nullable": true
          },
          "securityDepositAmount": {
            "type": "number",
            "format": "double"
          },
          "initialMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "currentMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "additionalDrawExpiryDate": {
            "type": "string",
            "nullable": true
          },
          "potentialMaturityDate": {
            "type": "string",
            "description": "Only when an unexercised extension option exists.",
            "nullable": true
          },
          "hasUnexercisedExtensionOption": {
            "type": "boolean",
            "description": "At least one extension option is unexercised: the legacy page shows the Potential Maturity row then, with a blank value when the current maturity date is missing."
          },
          "paydownDate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySummaryFormDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryValuesDto"
          },
          "currentMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "outstandingSource": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOutstandingSourceDto"
          },
          "hasExercisedExtension": {
            "type": "boolean"
          },
          "documentsFolderGuid": {
            "type": "string",
            "description": "The document folder of the facility when the user may see it (the Loan Documents panel lists, adds and deletes its documents through the Documents routes); only set by the Summary read.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySummarySavedDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySummaryFormDto"
          },
          "shell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityShellStatusDto"
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilitySummaryValuesDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "facilityType": {
            "type": "integer",
            "description": "Null = not posted (a 400); 0 \"Unknown / TBD\" is a valid choice.",
            "format": "int32",
            "nullable": true
          },
          "purpose": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purposeText": {
            "type": "string",
            "description": "Only for purpose 99 (at most 50 characters); otherwise ignored.",
            "nullable": true
          },
          "marketToMarketType": {
            "type": "integer",
            "format": "int32"
          },
          "marketToMarketDetail": {
            "type": "string",
            "nullable": true
          },
          "lenderTransferRestriction": {
            "type": "integer",
            "format": "int32"
          },
          "classification": {
            "type": "integer",
            "format": "int32"
          },
          "advanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumFacilityAmount": {
            "type": "number",
            "description": "Whole dollars: the column is BIGINT, a value with cents is a 400.",
            "format": "double",
            "nullable": true
          },
          "outstandingLoanAmount": {
            "type": "number",
            "description": "Manual source only (a financial statement source computes it; the posted value is ignored).",
            "format": "double",
            "nullable": true
          },
          "outstandingSource": {
            "type": "string",
            "description": "`manual` or `financialStatement`; null = keep the stored source (story #14775).",
            "nullable": true
          },
          "sourceLine1": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceLineValuesDto"
          },
          "sourceLine2": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilitySourceLineValuesDto"
          },
          "outstandingAmountAsOf": {
            "type": "string",
            "nullable": true
          },
          "closingDate": {
            "type": "string",
            "nullable": true
          },
          "initialMaturityDate": {
            "type": "string",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "nullable": true
          },
          "additionalDrawExpiryDate": {
            "type": "string",
            "description": "Only for facility type 14; cleared otherwise.",
            "nullable": true
          },
          "hasSublimits": {
            "type": "boolean"
          },
          "sublimitLetterOfCredit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sublimitCreditCards": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sublimitSwingline": {
            "type": "boolean"
          },
          "interestOnly": {
            "type": "boolean"
          },
          "interestOnlyThroughoutLife": {
            "type": "boolean"
          },
          "interestOnlyPeriodEndDate": {
            "type": "string",
            "nullable": true
          },
          "termYears": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortizationStructure": {
            "type": "integer",
            "format": "int32"
          },
          "amortizationYears": {
            "type": "integer",
            "format": "int32"
          },
          "amortizationDetails": {
            "type": "string",
            "nullable": true
          },
          "firstPaymentDate": {
            "type": "string",
            "description": "Free text (the column is `PaymentDate`).",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "paymentFrequencyOther": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FacilityTextOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FeeDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "`Currency` or `BasisPoints`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialApprovalDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "approved": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The approval of the financial covenant results of one period (the same shape as the non-financial one)."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialApprovalSavedDto": {
        "type": "object",
        "properties": {
          "changed": {
            "type": "integer",
            "description": "Targets whose approval flag changed (0 is a valid answer).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialAuditEntryDto": {
        "type": "object",
        "properties": {
          "auditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "auditTypeName": {
            "type": "string"
          },
          "narrative": {
            "type": "string"
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "description": "The name of the user; null (sent explicitly) for a change made by the system, which the app shows as Cerebro Capital.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCategoryOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCellDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "editValue": {
            "type": "number",
            "description": "The stored amount in the company currency, for the inline editor; null for a user who cannot enter financials.",
            "format": "double",
            "nullable": true
          },
          "keyFlags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Revenue, Ebitda, Cash, Inventory, Equipment, RealEstate, TotalAssets, MarketableSecurities, AccountsReceivable; users who cannot enter financials only get Revenue and Ebitda."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCellUpdateDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "cell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCellDto"
          },
          "changed": {
            "type": "boolean",
            "description": "False for a no-op (the same amount, or blank on blank): nothing was written."
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialColumnDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`{year}-{period}-{category}-{0|1}`, stable."
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "periodName": {
            "type": "string"
          },
          "category": {
            "type": "integer",
            "format": "int32"
          },
          "categoryName": {
            "type": "string"
          },
          "isYtd": {
            "type": "boolean"
          },
          "header": {
            "type": "string",
            "description": "`{Year} {Period}:{A|F|B}{ YTD}`, like \"2025 Full Year:A YTD\"."
          },
          "allApproved": {
            "type": "boolean",
            "description": "Every statement of the column is approved."
          },
          "isLoading": {
            "type": "boolean"
          },
          "percentLoaded": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialColumnStatementDto"
            },
            "description": "The statement of the column for each statement type."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialColumnStatementDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isApproved": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantCheckDto": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "formulaText": {
            "type": "string",
            "description": "The text of the posted formula even when invalid (empty when nothing resolves)."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueErrorDto"
            },
            "description": "The same keys and messages as a 400, ALL fields."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Not blocking."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantChoicesDto": {
        "type": "object",
        "properties": {
          "frequencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "valueTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "reportHandlingMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "targetTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantTargetTypeChoiceDto"
            }
          },
          "breachConsequences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "testedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantGuarantorChoiceDto"
            },
            "description": "The investor guarantors of THIS agreement; empty means the select is hidden."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantContactChoiceDto"
            },
            "description": "The assignable contacts (and, on edit, the ones with an active assignment), \"Last, First\"."
          },
          "formula": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FormulaChoicesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantConfirmDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "`targetReset`."
          },
          "message": {
            "type": "string"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "calculated": {
            "type": "integer",
            "format": "int32"
          },
          "approved": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of a frequency change that deletes calculated or approved targets without a confirmation."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantDeleteImpactDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "targets": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantTargetSummaryDto"
          },
          "conversations": {
            "type": "integer",
            "description": "Conversations about the covenant or its targets (deleted with their messages).",
            "format": "int32"
          },
          "emailRecords": {
            "type": "integer",
            "description": "E-mail record links (the records themselves stay).",
            "format": "int32"
          },
          "customReportColumns": {
            "type": "integer",
            "description": "Custom report columns that use the covenant (deleted).",
            "format": "int32"
          },
          "auditEntries": {
            "type": "integer",
            "description": "The audit history that goes with the covenant.",
            "format": "int32"
          },
          "assignedContacts": {
            "type": "integer",
            "description": "Active SME assignments.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantFormDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string",
            "description": "`financial`."
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "description": "Absent when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantLimitsDto"
          },
          "version": {
            "type": "string",
            "description": "Edit only: `v{ticks}` of `ModifiedOn` (`CreatedOn` when never modified), echoed by the PATCH.",
            "nullable": true
          },
          "targets": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCovenantTargetSummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "The add form (no Cerebro.Api.Features.Compliance.Models.FinancialCovenantFormDto.CovenantGuid) or the edit form of a financial covenant (a support calculation is a financial covenant)."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxDescription": {
            "type": "integer",
            "format": "int32"
          },
          "maxFormulaText": {
            "type": "integer",
            "format": "int32"
          },
          "maxDocumentReference": {
            "type": "integer",
            "format": "int32"
          },
          "maxOtherBreachConsequence": {
            "type": "integer",
            "format": "int32"
          },
          "maxDueByDays": {
            "type": "integer",
            "format": "int32"
          },
          "maxTargetValue": {
            "type": "number",
            "format": "double"
          },
          "maxAmount": {
            "type": "number",
            "format": "double"
          },
          "maxContacts": {
            "type": "integer",
            "format": "int32"
          },
          "maxReferenceTextLength": {
            "type": "integer",
            "format": "int32"
          },
          "termCount": {
            "type": "integer",
            "format": "int32"
          },
          "operatorCount": {
            "type": "integer",
            "format": "int32"
          },
          "maxDepth": {
            "type": "integer",
            "format": "int32"
          },
          "agreementStart": {
            "type": "string",
            "description": "yyyy-MM-dd, the bounds of the custom dates (the derived start and expiry of the agreement)."
          },
          "agreementExpire": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantSavedDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "formulaText": {
            "type": "string",
            "description": "The page formula text of the saved covenant."
          },
          "changed": {
            "type": "boolean",
            "description": "False: an edit with nothing to save (nothing was written, nothing queued)."
          },
          "version": {
            "type": "string",
            "description": "The new version."
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantStaleDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "currentVersion": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of an edit based on an old version."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantTargetSummaryDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "calculated": {
            "type": "integer",
            "format": "int32"
          },
          "approved": {
            "type": "integer",
            "format": "int32"
          },
          "withOwnFormula": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialCovenantValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The covenant prompt; empty when none.",
            "nullable": true
          },
          "formulaText": {
            "type": "string",
            "description": "The text form of the formula.",
            "nullable": true
          },
          "isTrackingCovenant": {
            "type": "boolean",
            "description": "A supporting calculation."
          },
          "complianceReportHandlingMethod": {
            "type": "integer",
            "description": "0 Use Value in Last Period, 1 Use Sum of Values Across Periods.",
            "format": "int32"
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "documentReferenceText": {
            "type": "string",
            "description": "The loan document text (sanitized HTML on the way in). POST stores it with the new covenant. The edit form GET returns the stored text rendered like\nEdit Loan Document Text (null when there is none). A PATCH that omits it (null) keeps the stored text; a PATCH that carries it replaces it (blank = clear it).",
            "nullable": true
          },
          "testFrequency": {
            "type": "integer",
            "description": "1 Quarterly, 2 Semi-Annual, 3 Annual, 4 Monthly; absent on the add form.",
            "format": "int32",
            "nullable": true
          },
          "covenantValueType": {
            "type": "integer",
            "description": "0 Numeric, 1 Percent, 2 Currency; absent on the add form.",
            "format": "int32",
            "nullable": true
          },
          "defaultTargetType": {
            "type": "integer",
            "description": "1 >=, 2 <=, 3 >, 4 <, 5 =; absent on the add form.",
            "format": "int32",
            "nullable": true
          },
          "defaultTargetValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "updateExistingPeriods": {
            "type": "boolean",
            "description": "Edit only; false on add."
          },
          "reportingDueBy": {
            "type": "number",
            "description": "Days after the period end (a decimal so a value with a fraction is a field error, not a binding error).",
            "format": "double",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasCustomDates": {
            "type": "boolean"
          },
          "effectiveDate": {
            "type": "string",
            "description": "yyyy-MM-dd; prefilled even when custom dates are off, only used when they are on.",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "breachConsequence": {
            "type": "integer",
            "description": "10 Cash Trap, 20 Cash Sweep, 30 Paydown to meet target level, 40 Event of Default (default), 99 Other.",
            "format": "int32"
          },
          "otherBreachConsequence": {
            "type": "string",
            "nullable": true
          },
          "testedEntity": {
            "type": "integer",
            "description": "0 Borrower (default), 1 Guarantor.",
            "format": "int32"
          },
          "investorGuarantorGuid": {
            "type": "string",
            "description": "Only for tested entity 1; absent includes all.",
            "format": "uuid",
            "nullable": true
          },
          "smeContactGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "operators": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Exactly 15 on output, 1 to 15 on input (padded with none).",
            "nullable": true
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTermDto"
            },
            "description": "Exactly 14 on output, 1 to 14 on input (padded with none).",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "PATCH: required, the version the form was loaded with.",
            "nullable": true
          },
          "confirmTargetReset": {
            "type": "boolean",
            "description": "PATCH: the user confirmed the reset of the targets (a changed frequency with calculated or approved targets).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What the form shows and what POST, PATCH and Check take."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialFilterOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialProcessingFormDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "documentYear": {
            "type": "integer",
            "description": "The fiscal year before the current one: what the documents are tagged with.",
            "format": "int32"
          },
          "periodName": {
            "type": "string"
          },
          "categoryName": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialProcessingLimitsDto"
          },
          "notifyCerebroDefault": {
            "type": "boolean",
            "description": "false: the compliance e-mail is opt in (legacy)."
          },
          "isYtdDefault": {
            "type": "boolean"
          },
          "pending": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PendingFinancialLoadDto"
            },
            "description": "The processing uploads of the company, newest first."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialProcessingLimitsDto": {
        "type": "object",
        "properties": {
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "maxFilesPerUpload": {
            "type": "integer",
            "format": "int32"
          },
          "maxTitleLength": {
            "type": "integer",
            "format": "int32"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialRowDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "valueType": {
            "type": "string",
            "description": "Currency, Percent or Numeric."
          },
          "isParent": {
            "type": "boolean",
            "description": "The row has children; a parent has no values."
          },
          "usedInCovenant": {
            "type": "boolean"
          },
          "usedInCustomValue": {
            "type": "boolean"
          },
          "usedInCreditFacility": {
            "type": "boolean"
          },
          "covenantLabel": {
            "type": "string",
            "nullable": true
          },
          "keyFlag": {
            "type": "string",
            "description": "The key flag of the line item type (the flag set on its statement line items); null for a user who cannot enter financials.",
            "nullable": true
          },
          "canDelete": {
            "type": "boolean",
            "description": "The user can enter financials, the row is not a parent and it is not used in a covenant, custom value or credit facility (the server checks the pricing headers again on delete)."
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialRowDto"
            }
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCellDto"
            },
            "description": "Aligned with the columns; null when the statement has no value for the row; empty for a parent."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialSectionDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "hasStatementInEveryColumn": {
            "type": "boolean",
            "description": "False when a column has no statement of this type (the cells show \"--\")."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialRowDto"
            },
            "description": "The company line item types of this statement type without a parent, by order, children nested."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementAuditDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "statementTypeName": {
            "type": "string"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialAuditEntryDto"
            },
            "description": "Newest first, at most 500."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementDocumentLimitsDto": {
        "type": "object",
        "properties": {
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "maxFilesPerUpload": {
            "type": "integer",
            "format": "int32"
          },
          "maxTitleLength": {
            "type": "integer",
            "format": "int32"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The accepted file extensions, lower case with the dot."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementDocumentsDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string",
            "description": "The column header, for example `2025 Full Year:A YTD`."
          },
          "statementTypeName": {
            "type": "string"
          },
          "canUpload": {
            "type": "boolean"
          },
          "canRemove": {
            "type": "boolean"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.DocumentRowDto"
            },
            "description": "Newest first."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementDocumentLimitsDto"
          },
          "sharedNote": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The documents of a financial statement period (Phase 2b of `docs/compliance-app-financials-contract.md`): the\nFinancial Statement documents with the year, period and category of the statement, shared by every statement of that column."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementGuidsDto": {
        "type": "object",
        "properties": {
          "statementGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false,
        "description": "The statements to preview the delete of: 1 to 200 distinct guids."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementListDto": {
        "type": "object",
        "properties": {
          "statements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialStatementRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The statements drawer: the visible statements of the company that pass the filters, no paging."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementRowDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "periodName": {
            "type": "string"
          },
          "category": {
            "type": "integer",
            "format": "int32"
          },
          "categoryName": {
            "type": "string"
          },
          "isYtd": {
            "type": "boolean"
          },
          "header": {
            "type": "string",
            "description": "The column header text, like \"2025 Full Year:A YTD\"."
          },
          "isApproved": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialStatementSavedDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "columnKey": {
            "type": "string",
            "description": "The key of the column of the page the statement belongs to."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetCellDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "description": "Annual 4, semi-annual 2 and 4, quarterly 1 to 4, monthly month + 12.",
            "format": "int32"
          },
          "periodLabel": {
            "type": "string"
          },
          "isForecast": {
            "type": "boolean"
          },
          "state": {
            "type": "string",
            "description": "`notActive`, `notApproved`, `notAvailable` or `result`."
          },
          "tone": {
            "type": "string",
            "description": "`none` unless the state is `result`."
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialResultDto"
          },
          "targetGuid": {
            "type": "string",
            "description": "Only when the state is `result`.",
            "format": "uuid",
            "nullable": true
          },
          "hasPeriodFormula": {
            "type": "boolean",
            "description": "Only when the state is `result`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetChoicesDto": {
        "type": "object",
        "properties": {
          "targetTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantTargetTypeChoiceDto"
            },
            "description": "The same list as the default target type of the covenant form."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "targetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodLabel": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "formula": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionFormulaDto"
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryFinancialResultDto"
          },
          "tone": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`available` or `incompleteData`."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionItemDto"
            },
            "description": "Empty unless the status is `available`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionFormulaDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "isPeriodSpecific": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetCushionItemDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The covenant label of the line item, else its name; the custom value name; `Constant`."
          },
          "currentValue": {
            "type": "number",
            "description": "The term value (factor and limit applied).",
            "format": "double"
          },
          "requiredValue": {
            "type": "number",
            "description": "Absent: no limit can be found for this item.",
            "format": "double",
            "nullable": true
          },
          "change": {
            "type": "number",
            "description": "The required value minus the current one.",
            "format": "double",
            "nullable": true
          },
          "changePercent": {
            "type": "number",
            "description": "The change divided by the current value; 1 when the current value is 0.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetFormDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "targetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodLabel": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "valueType": {
            "type": "string",
            "description": "`numeric`, `percent` (a fraction: 0.25 = 25%) or `currency`."
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaFormDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "targetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodLabel": {
            "type": "string"
          },
          "hasPeriodFormula": {
            "type": "boolean",
            "description": "False: the values are a COPY of the covenant formula to start from."
          },
          "covenantFormulaText": {
            "type": "string",
            "description": "The covenant default formula text, for the delete hint."
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FormulaChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaLimitsDto": {
        "type": "object",
        "properties": {
          "termCount": {
            "type": "integer",
            "format": "int32"
          },
          "operatorCount": {
            "type": "integer",
            "format": "int32"
          },
          "maxAmount": {
            "type": "number",
            "format": "double"
          },
          "maxDepth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaSavedDto": {
        "type": "object",
        "properties": {
          "targetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "hasPeriodFormula": {
            "type": "boolean"
          },
          "formulaText": {
            "type": "string",
            "description": "The effective formula text after the change."
          },
          "changed": {
            "type": "boolean",
            "description": "False: identical to the stored period formula (or no formula to delete), nothing was written."
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetFormulaValuesDto": {
        "type": "object",
        "properties": {
          "operators": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTermDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The formula of the check and the save: 1 to 15 operators and 1 to 14 terms on input (padded with none), exactly 15 and 14 on output."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetLimitsDto": {
        "type": "object",
        "properties": {
          "maxTargetValue": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetSavedDto": {
        "type": "object",
        "properties": {
          "targetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "changed": {
            "type": "boolean",
            "description": "False: the posted values equal the stored ones, nothing was written or queued."
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetValuesDto": {
        "type": "object",
        "properties": {
          "targetType": {
            "type": "integer",
            "description": "1 >=, 2 <=, 3 >, 4 <, 5 =.",
            "format": "int32"
          },
          "targetValue": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "manageLoanInformation": {
            "type": "boolean"
          },
          "requiresCovenantApproval": {
            "type": "boolean"
          },
          "canEditTargets": {
            "type": "boolean",
            "description": "Edit Target and Add or Edit Custom Formula: the covenants are not approved and the user may manage them (never a third party contact)."
          },
          "canRecalculate": {
            "type": "boolean",
            "description": "Update Now: the user may manage covenants (no approval lock: financial changes still need recalculating on an approved agreement)."
          },
          "canSendEmail": {
            "type": "boolean",
            "description": "The e-mail items of the Messaging Options menu."
          }
        },
        "additionalProperties": false,
        "description": "The flags of the Covenant Summary plus the three of this page."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsCalculationDto": {
        "type": "object",
        "properties": {
          "pending": {
            "type": "integer",
            "description": "Targets of the covenant waiting for the calculation (all years, not only the visible ones).",
            "format": "int32"
          },
          "error": {
            "type": "integer",
            "description": "Targets of the covenant whose calculation failed.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsCovenantActionsDto": {
        "type": "object",
        "properties": {
          "hasSmes": {
            "type": "boolean"
          },
          "hasRecipients": {
            "type": "boolean"
          },
          "hasLenderContacts": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsCovenantDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isTracking": {
            "type": "boolean"
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "formula": {
            "type": "string",
            "nullable": true
          },
          "shortFormulaDetail": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "description": "The description (\"Quarterly\")."
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "breachConsequence": {
            "type": "string"
          },
          "otherBreachConsequence": {
            "type": "string",
            "description": "Only for the breach consequence Other.",
            "nullable": true
          },
          "testedEntity": {
            "type": "string",
            "description": "`Borrower`, `Guarantor` or `Guarantor - description`."
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only when the tested entity is Guarantor AND the agreement has investor guarantors.",
            "nullable": true
          },
          "actions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsCovenantActionsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsGridDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "description": "`annual`, `semiAnnual`, `quarterly` or `monthly`."
          },
          "firstColumnHeader": {
            "type": "string",
            "description": "`Year` or `Month`."
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsMonthlyDto": {
        "type": "object",
        "properties": {
          "isMonthly": {
            "type": "boolean"
          },
          "showAll": {
            "type": "boolean",
            "description": "The grid shows every year of the covenant (monthly covenants only)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsPageDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "description": "The numeric id of the company: the key of its covenant calculation WebSocket subscription (the push is addressed to the company that queued the calculation).",
            "format": "int64"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency code."
          },
          "approved": {
            "type": "boolean",
            "description": "The covenants of the agreement are approved (the edits are locked)."
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsAccessDto"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto"
          },
          "covenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsCovenantDto"
          },
          "grid": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsGridDto"
          },
          "monthly": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsMonthlyDto"
          },
          "lastUpdated": {
            "type": "string",
            "description": "The newest `ModifiedOn` of ALL targets of the covenant (UTC); absent when none was ever modified.",
            "format": "date-time",
            "nullable": true
          },
          "calculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetsCalculationDto"
          },
          "hasCalculatingResults": {
            "type": "boolean",
            "description": "Some VISIBLE result cell is still calculating (drives the polling of the page)."
          }
        },
        "additionalProperties": false,
        "description": "The Financial Covenant Targets page (`docs/compliance-app-financialtargets-contract.md`, section 8): the covenant, its period grid and what the user may do."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialTargetsRowDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialTargetCellDto"
            },
            "description": "Exactly one cell per column."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialUploadFormDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "companyCurrency": {
            "type": "string",
            "description": "The amounts of the file are in this currency (the company currency, USD when it has none)."
          },
          "requiresFinancialApproval": {
            "type": "boolean"
          },
          "canApprove": {
            "type": "boolean"
          },
          "canSeeForecast": {
            "type": "boolean"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCategoryOptionDto"
            },
            "description": "1 Actual, 2 Forecast (disabled without the forecast permission), 3 Budget."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialUploadLimitsDto"
          },
          "staged": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadSummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "Phase 3 of the financials of the compliance app (`docs/compliance-app-financials-contract.md`): the templated upload.\nThe form, the staged upload and its review, the import and its result."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialUploadLimitsDto": {
        "type": "object",
        "properties": {
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maxPeriods": {
            "type": "integer",
            "format": "int32"
          },
          "sheetNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "templateFileName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialsAppliedDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "category": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "usedIn": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "typeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The filters that were applied (invalid values are ignored), the row to highlight and the page that was shown."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialsApprovalDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "category": {
            "type": "integer",
            "format": "int32"
          },
          "isYtd": {
            "type": "boolean"
          },
          "approved": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Approves or revokes the statements of one column (year, period, category and YTD flag, every statement type)."
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialsApprovalResultDto": {
        "type": "object",
        "properties": {
          "columnKey": {
            "type": "string"
          },
          "approved": {
            "type": "boolean"
          },
          "changedCount": {
            "type": "integer",
            "description": "The number of statements that changed; 0 when the column was already in that state.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialsFiltersDto": {
        "type": "object",
        "properties": {
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "The distinct years of all the visible statements, ascending."
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialFilterOptionDto"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialCategoryOptionDto"
            }
          },
          "usedIn": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FinancialFilterOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FinancialsPagingDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalColumns": {
            "type": "integer",
            "format": "int32"
          },
          "hasPriorPeriods": {
            "type": "boolean",
            "description": "There are older columns: the next page (page + 1)."
          },
          "hasFuturePeriods": {
            "type": "boolean",
            "description": "There are newer columns: the previous page (page - 1)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FlagLineItemsFlagDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The `FinancialKeyFlagName` of the contract."
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FlagLineItemsPageDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "flags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FlagLineItemsFlagDto"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FlagLineItemsRowDto"
            }
          },
          "note": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The page data of Flag Key Line Items of one statement."
      },
      "Cerebro.Api.Features.Compliance.Models.FlagLineItemsRowDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isParent": {
            "type": "boolean"
          },
          "canFlag": {
            "type": "boolean"
          },
          "keyFlag": {
            "type": "string",
            "nullable": true
          },
          "inThisStatement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.FormulaChoicesDto": {
        "type": "object",
        "properties": {
          "operators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTextChoiceDto"
            }
          },
          "trailTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueTextChoiceDto"
            }
          },
          "statementTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueStatementTypeDto"
            }
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CustomValueChoiceDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The choices of the Custom Value form without the value types; every custom value of the company (a covenant is never used by a value)."
      },
      "Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadDto": {
        "type": "object",
        "properties": {
          "approve": {
            "type": "boolean",
            "description": "Mark every statement of the import as approved (needs the approval permission; ignored when the company does not require approval)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ImportFinancialUploadResultDto": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "overwrittenCount": {
            "type": "integer",
            "format": "int32"
          },
          "newLineItemTypeCount": {
            "type": "integer",
            "format": "int32"
          },
          "approved": {
            "type": "boolean"
          },
          "firstColumn": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ImportedColumnDto"
          },
          "recalculation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RecalculationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ImportedColumnDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "category": {
            "type": "integer",
            "format": "int32"
          },
          "isYtd": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictGroupDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentName": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictItemDto"
            },
            "description": "As they will be numbered."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictItemDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "order": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictSummaryDto": {
        "type": "object",
        "properties": {
          "groupCount": {
            "type": "integer",
            "format": "int32"
          },
          "typeCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Phases 4 and 5 of the financials of the compliance app (`docs/compliance-app-financials-contract.md`): the line item\norder conflicts and the upload of financial files for processing. Created by the Phase 3 foundation step (the page DTO refers\nto two of them) and owned by the Phase 4 and 5 work."
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictsDto": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemOrderConflictGroupDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeCovenantUsageDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "frequency": {
            "type": "string"
          },
          "formula": {
            "type": "string"
          },
          "isPeriodSpecific": {
            "type": "boolean"
          },
          "targetPeriod": {
            "type": "string",
            "description": "For example `2025 Q1`; only for a period specific formula.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeCreditFacilityUsageDto": {
        "type": "object",
        "properties": {
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "loanAgreementName": {
            "type": "string"
          },
          "usage": {
            "type": "string",
            "description": "`OutstandingBalance` or `Pricing`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeCustomValueUsageDto": {
        "type": "object",
        "properties": {
          "customValueGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeFormDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "lineItemTypeId": {
            "type": "integer",
            "description": "Null when the form adds a line item.",
            "format": "int64",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeValuesDto"
          },
          "valueTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeValueTypeDto"
            }
          },
          "parentOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeParentOptionDto"
            },
            "description": "The line items of the statement type in tree order, without the line item itself and its descendants."
          },
          "valueCount": {
            "type": "integer",
            "description": "The statement line items that carry this type (edit only).",
            "format": "int32"
          },
          "statementCount": {
            "type": "integer",
            "format": "int32"
          },
          "isUsed": {
            "type": "boolean"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeLimitsDto": {
        "type": "object",
        "properties": {
          "maxNameLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxCovenantLabelLength": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeOrderDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentName": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeOrderItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeOrderItemDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeParentOptionDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeSavedDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeUsageDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "valueCount": {
            "type": "integer",
            "description": "What a delete removes.",
            "format": "int32"
          },
          "statementCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasChildren": {
            "type": "boolean"
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeCovenantUsageDto"
            }
          },
          "customValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeCustomValueUsageDto"
            }
          },
          "creditFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LineItemTypeCreditFacilityUsageDto"
            }
          },
          "canDelete": {
            "type": "boolean",
            "description": "No child line items and no usage at all."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeValueTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LineItemTypeValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "type": "integer",
            "description": "2 Currency, 1 Percent, 0 Numeric.",
            "format": "int32",
            "nullable": true
          },
          "covenantLabel": {
            "type": "string",
            "nullable": true
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The line item types of the financial statements of a company: the add/edit form, the saves, the usage, the order and the\nkey flag. See `docs/compliance-app-financials-contract.md` (Phase 2)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          },
          "canManage": {
            "type": "boolean"
          },
          "canViewAdministration": {
            "type": "boolean"
          },
          "canApprove": {
            "type": "boolean"
          },
          "canResetCovenants": {
            "type": "boolean"
          },
          "canSendEmail": {
            "type": "boolean",
            "description": "The Messaging Options items \"Send Email to Recipients\" and \"Send Email\" (the legacy `ManageLoanInformation`): an employee, a\ncontact viewing its own company (any flags), or a contact of a parent with covenant entry or approval who is not third party.\n\"Email Lender Contacts\" needs no flag."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerRowDto": {
        "type": "object",
        "properties": {
          "borrowerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerValuesDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementAuditEntryDto": {
        "type": "object",
        "properties": {
          "auditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "auditTypeName": {
            "type": "string",
            "description": "The audit type description; \"Audit type {n}\" for an unknown value."
          },
          "valueKind": {
            "type": "string",
            "description": "`date` for type 20 (agreement date) only, else `text`."
          },
          "previous": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAuditValueDto"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAuditValueDto"
          },
          "changedOn": {
            "type": "string",
            "description": "UTC instant; the app formats it in the user time zone.",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "description": "The full name of the person; null is the system.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementAuditHistoryDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Empty for an unnamed agreement (the app shows \"Unnamed loan agreement\")."
          },
          "totalCount": {
            "type": "integer",
            "description": "All rows of the agreement; `entries` holds at most 500.",
            "format": "int32"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementAuditEntryDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The Audit History drawer of a loan agreement: newest first, at most 500 rows."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementCopiedDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "copied": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCopySummaryDto"
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false,
        "description": "The answer of a copy (201)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementCreatedDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "newLenderCreated": {
            "type": "boolean",
            "description": "A pending lender was created for `newLenderName`."
          },
          "documentsAdded": {
            "type": "integer",
            "format": "int32"
          },
          "rejectedFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRejectedFileDto"
            },
            "description": "Files that could not be STORED (validation problems are a 400 before anything is saved)."
          },
          "logoSaved": {
            "type": "boolean"
          },
          "logoProblem": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementDetailsDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "currency": {
            "type": "string"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderDto"
            }
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorDto"
            },
            "description": "The percentage as stored (22.5 means 22.5%)."
          },
          "guarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorDto"
            }
          },
          "additionalBorrowers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerDto"
            }
          },
          "agreementDate": {
            "type": "string",
            "nullable": true
          },
          "mostRecentAmendmentDate": {
            "type": "string",
            "nullable": true
          },
          "crossDefaultParent": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
          },
          "crossDefaultChildren": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
            }
          },
          "sendCovenantReminders": {
            "type": "boolean"
          },
          "documentsFolderGuid": {
            "type": "string",
            "description": "The agreement folder of the documents page when it is visible to the user; null otherwise.",
            "format": "uuid",
            "nullable": true
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementEditDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`active`, `inactive` or `deleted` (for the banners). #14807: `inactive` also when the agreement has no active facility (all\n            paid down, matured, inactive or deleted), whatever `values.isActive` says."
          },
          "noActiveFacilities": {
            "type": "boolean",
            "description": "#14807: true when the agreement is not deleted and its Active switch is on but it has no active facility, so `status` is `inactive` although\nthe switch is on (the page explains it instead of showing a switch that looks wrong). Turning the switch off or on changes nothing then."
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto"
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanEditAccessDto"
          },
          "arrangedByLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanProviderRowDto"
            }
          },
          "providerPercentageTotal": {
            "type": "number",
            "description": "The page shows the advisory row when it is not 100.",
            "format": "double"
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorRowDto"
            }
          },
          "guarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanGuarantorRowDto"
            }
          },
          "additionalBorrowers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAdditionalBorrowerRowDto"
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanEditDocumentDto"
            },
            "description": "Documents in the agreement folder OR with the agreement id; empty when the user cannot see the Loans folders."
          },
          "documentsFolderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxDescription": {
            "type": "integer",
            "format": "int32"
          },
          "maxLenderName": {
            "type": "integer",
            "format": "int32"
          },
          "maxPercentage": {
            "type": "number",
            "format": "double"
          },
          "maxAmount": {
            "type": "number",
            "format": "double"
          },
          "minDate": {
            "type": "string"
          },
          "maxDate": {
            "type": "string"
          },
          "maxDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "maxDocumentBytes": {
            "type": "integer",
            "format": "int64"
          },
          "documentExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maxLogoBytes": {
            "type": "integer",
            "format": "int64"
          },
          "logoExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false,
        "description": "The limits the forms enforce; sent so the client validates with the same numbers."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementOptionDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The name with \" (inactive)\" or \" (deleted)\"."
          },
          "group": {
            "type": "string",
            "description": "`active`, `capitalLease`, `inactive` or `deleted`."
          },
          "status": {
            "type": "string",
            "description": "`active`, `inactive` or `deleted`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementRowDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "The stored name; empty when the agreement has none (the UI shows \"Unnamed loan agreement\")."
          },
          "status": {
            "type": "string"
          },
          "isCapitalLease": {
            "type": "boolean"
          },
          "hasActiveSubscription": {
            "type": "boolean"
          },
          "arrangedByLogoUrl": {
            "type": "string",
            "description": "A presigned URL of the \"financing arranged by\" logo; null when there is none or S3 failed.",
            "nullable": true
          },
          "providerNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "agreementDate": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "nullable": true
          },
          "hasRecipients": {
            "type": "boolean"
          },
          "hasLenderContacts": {
            "type": "boolean",
            "description": "An active lender contact exists."
          },
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanFacilityMenuItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementSavedDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "agreementDate": {
            "type": "string",
            "description": "`yyyy-MM-dd`; null or empty = no date.",
            "nullable": true
          },
          "sendCovenantReminders": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Employees only; ignored (the stored value stays) for anyone else."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAmendmentDto": {
        "type": "object",
        "properties": {
          "amendmentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "amendmentDate": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "facilityLabel": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAmendmentValuesDto": {
        "type": "object",
        "properties": {
          "amendmentDate": {
            "type": "string",
            "description": "Required, `yyyy-MM-dd`, between 1900-01-01 and 2100-12-31.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Required, at most 1000 characters.",
            "nullable": true
          },
          "facilityGuid": {
            "type": "string",
            "description": "Add only, optional: a credit facility of the agreement the amendment belongs to; an edit never changes it.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The posted form of adding and editing a loan agreement amendment (JSON)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAmendmentsDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "descriptionMaxLength": {
            "type": "integer",
            "description": "The size of the details column (the limit of the Add/Edit Amendment drawer).",
            "format": "int32"
          },
          "amendments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAmendmentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanAuditValueDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Always the stored text (the fallback when the typed value could not be read).",
            "nullable": true
          },
          "date": {
            "type": "string",
            "description": "Kind `date`, when the text is a date: `yyyy-MM-dd`.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A stored audit value; the entry holds null when the stored text is null or empty."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanComplianceTemplateDto": {
        "type": "object",
        "properties": {
          "templateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "frequency": {
            "type": "string"
          },
          "templateType": {
            "type": "string",
            "description": "`Text` or `Pdf`."
          },
          "templateTypeText": {
            "type": "string",
            "description": "\"Text-Based\" or \"PDF Form\"."
          },
          "hasExample": {
            "type": "boolean"
          },
          "canMapLineItems": {
            "type": "boolean"
          },
          "canManageCustomFields": {
            "type": "boolean"
          },
          "showNotApplicable": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanComplianceTemplatesDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanComplianceTemplateDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCopyDefaultsDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "agreementDate": {
            "type": "string",
            "description": "Always null, sent explicitly.",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "description": "Always null, sent explicitly.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The prefilled values of the copy form: \"Copy of {name}\" (cut to 250) and two empty dates (the legacy form)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCopyFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string",
            "description": "The stored name of the source, possibly empty (the app shows \"Unnamed loan agreement\")."
          },
          "companyName": {
            "type": "string"
          },
          "defaults": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCopyDefaultsDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCopyLimitsDto"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCopySummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "`GET Loans/{agreementGuid}/Copy/Form`."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCopyLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "minDate": {
            "type": "string"
          },
          "maxDate": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The limits the copy form enforces; sent so the client validates with the same numbers."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCopySummaryDto": {
        "type": "object",
        "properties": {
          "providers": {
            "type": "integer",
            "format": "int32"
          },
          "facilities": {
            "type": "integer",
            "description": "Non deleted facilities only (inactive ones are copied and stay inactive).",
            "format": "int32"
          },
          "hedges": {
            "type": "integer",
            "description": "The hedges of the copied facilities.",
            "format": "int32"
          },
          "pricingRules": {
            "type": "integer",
            "description": "The pricing rules of the copied facilities' pricing headers.",
            "format": "int32"
          },
          "financialCovenants": {
            "type": "integer",
            "format": "int32"
          },
          "nonFinancialCovenants": {
            "type": "integer",
            "format": "int32"
          },
          "recipients": {
            "type": "integer",
            "format": "int32"
          },
          "lenderContacts": {
            "type": "integer",
            "description": "Every lender contact row is copied, active or not.",
            "format": "int32"
          },
          "guarantors": {
            "type": "integer",
            "format": "int32"
          },
          "investorGuarantors": {
            "type": "integer",
            "format": "int32"
          },
          "additionalBorrowers": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "What a copy contains (the form: the source) or what it copied (the answer: the rows that were added)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCovenantApprovalDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "description": "`noCovenants`, `approved` or `pending`."
          },
          "approvedOn": {
            "type": "string",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "canReview": {
            "type": "boolean",
            "description": "The user may review and approve (only while pending)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCovenantLineDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "frequency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCovenantsDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "financialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCovenantLineDto"
            }
          },
          "supportCalculations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCovenantLineDto"
            },
            "description": "The tracking covenants (\"Support Calculations\")."
          },
          "nonFinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCovenantLineDto"
            }
          },
          "approval": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCovenantApprovalDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultCandidateDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Empty for an unnamed agreement (the app shows \"Unnamed loan agreement\")."
          },
          "status": {
            "type": "string",
            "description": "`active` or `inactive`; deleted agreements are never offered."
          },
          "canSelect": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "description": "Why the agreement cannot be selected; null when it can.",
            "nullable": true
          },
          "currentParentName": {
            "type": "string",
            "description": "The agreement it is cross-defaulted to today (the reason names it).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultCandidateDto"
            },
            "description": "Selectable first, then by name ignoring case, then id; the agreement itself, its children and deleted agreements are excluded."
          },
          "newAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NewLoanAgreementFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultSavedDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "childAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "childName": {
            "type": "string"
          },
          "changed": {
            "type": "boolean",
            "description": "False: it already was a child (an idempotent 200)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanCrossDefaultValuesDto": {
        "type": "object",
        "properties": {
          "childAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanEditAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean",
            "description": "The user may see the Mark as Deleted switch."
          },
          "canChangeLogo": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanEditDocumentDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "extension": {
            "type": "string",
            "description": "The lower case extension of the stored file with the dot (\".pdf\"), for the file type icon; empty when there is none."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanEmailFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "description": "`recipients`, `lenders` or `general`."
          },
          "from": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSenderDto"
          },
          "replyTo": {
            "type": "string",
            "description": "Non employees: the address of the user.",
            "nullable": true
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Prefilled sanitized HTML."
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailDocumentDto"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The prefilled e-mail drawer of a loan agreement."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanEmailRecordsDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailRecordRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The e-mail records of a loan agreement: newest first, at most 200."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanFacilityMenuItemDto": {
        "type": "object",
        "properties": {
          "facilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The legacy `LoanSummaryString`; the UI adds \"(deleted)\"."
          },
          "isDeleted": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanFilterDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "`active`, `inactive`, `deleted` or `all` (always `all` when an agreement is selected)."
          },
          "agreementGuid": {
            "type": "string",
            "description": "The selected agreement; null when none or when it is not visible.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanGuarantorDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanGuarantorRowDto": {
        "type": "object",
        "properties": {
          "guarantorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanGuarantorValuesDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorRowDto": {
        "type": "object",
        "properties": {
          "guarantorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanInvestorGuarantorValuesDto": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "percentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLenderContactDto": {
        "type": "object",
        "properties": {
          "lenderContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "canUpdateLoanInformation": {
            "type": "boolean"
          },
          "canApproveCovenants": {
            "type": "boolean"
          },
          "canManageFinancials": {
            "type": "boolean"
          },
          "canViewForecastData": {
            "type": "boolean"
          },
          "receivesCovenantReminders": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "A lender contact with the five permission flags (a missing flag counts as false)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLenderContactFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "providerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "type": "string",
            "description": "The bank name."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactOptionDto"
            },
            "description": "Active contacts of the provider bank that are not yet lender contacts of the agreement."
          },
          "defaults": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto"
          }
        },
        "additionalProperties": false,
        "description": "What the Add Lender Contact drawer needs (contract P6.4)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLenderContactOptionDto": {
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto": {
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "canUpdateLoanInformation": {
            "type": "boolean"
          },
          "canApproveCovenants": {
            "type": "boolean"
          },
          "canManageFinancials": {
            "type": "boolean"
          },
          "canViewForecastData": {
            "type": "boolean"
          },
          "receivesCovenantReminders": {
            "type": "boolean"
          },
          "sendEmail": {
            "type": "boolean",
            "description": "Send the lender the access e-mail; omitted = true when adding, false when editing. In the form defaults it is the add default.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The posted form of adding (JSON) and editing a lender contact; Cerebro.Api.Features.Compliance.Models.LoanLenderContactValuesDto.BankContactGuid is ignored when editing."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLenderOptionDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isPending": {
            "type": "boolean",
            "description": "A lender added by a user that an employee has not reviewed yet."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanLogoSavedDto": {
        "type": "object",
        "properties": {
          "arrangedByLogoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanMessageFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose message drawer of a loan agreement: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanMessagesDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer of a loan agreement: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanPartSavedDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanProviderDto": {
        "type": "object",
        "properties": {
          "providerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          },
          "hasBank": {
            "type": "boolean",
            "description": "False: lender contacts cannot be added until the provider bank is linked."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanLenderContactDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanProviderPercentageDto": {
        "type": "object",
        "properties": {
          "percentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanProviderRowDto": {
        "type": "object",
        "properties": {
          "providerGuid": {
            "type": "string",
            "description": "System.Guid.Empty for a legacy row without a guid (its Edit and Delete are disabled).",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "newLenderName": {
            "type": "string",
            "nullable": true
          },
          "percentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Exactly one of Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto.BankGuid and Cerebro.Api.Features.Compliance.Models.LoanProviderValuesDto.NewLenderName."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanRecipientDto": {
        "type": "object",
        "properties": {
          "recipientGuid": {
            "type": "string",
            "format": "uuid"
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "description": "The name parts (Phase 3a: the edit drawer is prefilled from the row).",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanRecipientFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanRecipientLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanRecipientLimitsDto": {
        "type": "object",
        "properties": {
          "maxFirstName": {
            "type": "integer",
            "format": "int32"
          },
          "maxLastName": {
            "type": "integer",
            "format": "int32"
          },
          "maxEmail": {
            "type": "integer",
            "format": "int32"
          },
          "maxPhone": {
            "type": "integer",
            "format": "int32"
          },
          "maxCompanyName": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanRecipientValuesDto": {
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The posted form of adding and editing a recipient (JSON)."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanRejectedFileDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanStatusCountsDto": {
        "type": "object",
        "properties": {
          "active": {
            "type": "integer",
            "format": "int32"
          },
          "inactive": {
            "type": "integer",
            "format": "int32"
          },
          "deleted": {
            "type": "integer",
            "description": "Only employees see deleted agreements.",
            "format": "int32"
          },
          "all": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanTemplateFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string",
            "description": "The agreement name (the drawer subject)."
          },
          "templateGuid": {
            "type": "string",
            "description": "Null on the new form.",
            "format": "uuid",
            "nullable": true
          },
          "frequency": {
            "type": "integer",
            "description": "1 Quarterly, 2 Semi-Annual, 3 Annual, 4 Monthly (5 only for a stored Event Driven row); null on the new form.",
            "format": "int32",
            "nullable": true
          },
          "templateType": {
            "type": "string",
            "description": "`Text` or `Pdf`; null on the new form (the user must choose).",
            "nullable": true
          },
          "covenantPassLabel": {
            "type": "string",
            "description": "The new form: \"Yes\"; an edit: the stored value or the empty string."
          },
          "covenantNotPassLabel": {
            "type": "string",
            "description": "The new form: \"No\"; an edit: the stored value or the empty string."
          },
          "canEditText": {
            "type": "boolean",
            "description": "Employees write the default text."
          },
          "defaultText": {
            "type": "string",
            "description": "Employees only (line endings as stored); null for a contact and on the new form.",
            "nullable": true
          },
          "hasExample": {
            "type": "boolean"
          },
          "exampleTitle": {
            "type": "string",
            "description": "The document title of the current example.",
            "nullable": true
          },
          "exampleIsPdf": {
            "type": "boolean",
            "description": "The stored example is a `.pdf` (a PDF form template needs one)."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The form of a compliance report template (both form GETs; contract P5.4): the empty form with the limits, or the stored values."
      },
      "Cerebro.Api.Features.Compliance.Models.LoanTemplateFrequencyOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanTemplateLimitsDto": {
        "type": "object",
        "properties": {
          "frequencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateFrequencyOptionDto"
            },
            "description": "Annual, Monthly, Quarterly, Semi-Annual (alphabetical, like the legacy), plus the stored value when it is 5."
          },
          "templateTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanTemplateTypeOptionDto"
            }
          },
          "maxLabelLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxTextLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxExampleBytes": {
            "type": "integer",
            "format": "int64"
          },
          "exampleExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanTemplateSavedDto": {
        "type": "object",
        "properties": {
          "templateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "hasExample": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.LoanTemplateTypeOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean",
            "description": "The user has no company contact (an employee)."
          },
          "manageLoanInformation": {
            "type": "boolean",
            "description": "Company user: covenant entry or a covenant approver; employee: always."
          },
          "canApprove": {
            "type": "boolean",
            "description": "The legacy `IsNextApprover`."
          },
          "canReset": {
            "type": "boolean",
            "description": "Approved and (the final approver or an employee)."
          },
          "canAssignSme": {
            "type": "boolean",
            "description": "The Assign SME entry of the Covenant Actions menu: the covenants are not approved and the user may manage covenants (employee, covenant entry or approver, never a third party contact)."
          },
          "canSendEmail": {
            "type": "boolean",
            "description": "The e-mail items of the row menus: the user may manage covenants (employee, covenant entry or approver, never a third party contact)."
          },
          "canEditCovenants": {
            "type": "boolean",
            "description": "The Add Financial Covenant, Add Support Calculation, Edit Covenant, Edit Loan Document Text and Delete Covenant entries: the covenants are not approved and the user may manage covenants (employee, covenant entry or approver, never a third party contact)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsActivityDto": {
        "type": "object",
        "properties": {
          "occurredOn": {
            "type": "string",
            "description": "The date and time in the time zone of the user with the abbreviation."
          },
          "action": {
            "type": "string"
          },
          "user": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsApprovalDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "description": "`pending` or `approved`."
          },
          "approvedOn": {
            "type": "string",
            "description": "The approval date in the time zone of the user.",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "chain": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsChainLinkDto"
            }
          },
          "activity": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsActivityDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsChainLinkDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "completed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsFacilityDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "maximumAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityType": {
            "type": "string"
          },
          "maturityDate": {
            "type": "string",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "nullable": true
          },
          "outstandingAmount": {
            "type": "number",
            "format": "double"
          },
          "term": {
            "type": "number",
            "format": "double"
          },
          "purpose": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsFinancialRowDto": {
        "type": "object",
        "properties": {
          "covenantId": {
            "type": "integer",
            "description": "The numeric covenant id: the legacy compliance report tags (`#{covPass|nfcovFail|...}_{id}`) are built from it; shown to employees only.",
            "format": "int64"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The last names of the active assignments."
          },
          "testedEntity": {
            "type": "string",
            "description": "`Borrower`, or `Guarantor - description` of the investor guarantor."
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "formula": {
            "type": "string",
            "nullable": true
          },
          "shortFormulaDetail": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "isTracking": {
            "type": "boolean"
          },
          "actions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsRowActionsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsNonFinancialRowDto": {
        "type": "object",
        "properties": {
          "covenantId": {
            "type": "integer",
            "description": "The numeric covenant id: the legacy compliance report tags (`#{covPass|nfcovFail|...}_{id}`) are built from it; shown to employees only.",
            "format": "int64"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "lenderReportingRequired": {
            "type": "boolean"
          },
          "frequency": {
            "type": "string"
          },
          "isEventDriven": {
            "type": "boolean"
          },
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "continuousMonitoring": {
            "type": "boolean"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "description": "Signed days as stored (negative = before the period end or event).",
            "format": "int32",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nextDueDate": {
            "type": "string",
            "description": "The earliest reporting due date of a result that is not complete.",
            "nullable": true
          },
          "actions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsRowActionsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsPageDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "approved": {
            "type": "boolean",
            "description": "The covenants of the agreement are approved (`LoanCovenantsApproved`)."
          },
          "arrangedByLogoUrl": {
            "type": "string",
            "description": "The presigned arranged-by logo; omitted when there is none or it cannot be signed.",
            "nullable": true
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsAccessDto"
          },
          "tabs": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsTabsDto"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto"
          },
          "smeFilter": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSmeFilterDto"
          },
          "financialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsFinancialRowDto"
            },
            "description": "The non tracking financial covenants (filtered by `smeId`), by frequency order."
          },
          "supportCalculations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsFinancialRowDto"
            },
            "description": "The tracking financial covenants (filtered by `smeId`), by frequency order."
          },
          "nonFinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsNonFinancialRowDto"
            },
            "description": "The non-financial covenants (filtered by `smeId`), by frequency order; the app groups them by `lenderReportingRequired`."
          },
          "anyNonFinancialSme": {
            "type": "boolean",
            "description": "An ACTIVE assignment exists among the (filtered) non-financial covenants: the SME column."
          },
          "approval": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsApprovalDto"
          }
        },
        "additionalProperties": false,
        "description": "Company Profile > Loans > Manage Covenants (`docs/compliance-app-managecovenants-contract.md`, section 5). Dates are\n`yyyy-MM-dd` without a time zone conversion; date-times are text in the time zone of the user with its abbreviation\n(`MMM d, yyyy h:mm tt EST`); null properties are omitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsPeriodDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportActionsDto": {
        "type": "object",
        "properties": {
          "canReviewUpdate": {
            "type": "boolean"
          },
          "canOpenEditor": {
            "type": "boolean",
            "description": "The user may open the report editor (Phase 6a, D44: `CanManageCovenants`); a user who may not opens the report file instead."
          },
          "hasFile": {
            "type": "boolean",
            "description": "The report has a generated (or uploaded) file (Phase 6a): \"View Report\" for a viewer needs it."
          },
          "hasRecipients": {
            "type": "boolean"
          },
          "hasLenderContacts": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportRowDto": {
        "type": "object",
        "properties": {
          "reportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "`approved`, `approvedLoaded` (an uploaded report) or `pending`."
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOn": {
            "type": "string",
            "nullable": true
          },
          "updatedOn": {
            "type": "string"
          },
          "actions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportActionsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportsDto": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean",
            "description": "Approved covenants or an employee; when false nothing else is returned."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsReportRowDto"
            }
          },
          "canStart": {
            "type": "boolean"
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsTemplateDto"
            }
          },
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsPeriodDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsRowActionsDto": {
        "type": "object",
        "properties": {
          "canEdit": {
            "type": "boolean"
          },
          "hasSmes": {
            "type": "boolean"
          },
          "hasRecipients": {
            "type": "boolean"
          },
          "hasLenderContacts": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsSmeFilterDto": {
        "type": "object",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "Any active SME assignment on any covenant of the agreement (never narrowed by the filter)."
          },
          "selectedId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSmeOptionDto"
            },
            "description": "\"Any\" (id 0) first, then the active company contacts that are not third party, by last name, first name."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsSmeOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto": {
        "type": "object",
        "properties": {
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsFacilityDto"
            }
          },
          "hasPaydownDate": {
            "type": "boolean",
            "description": "Any facility has a paydown date (the column)."
          },
          "crossDefaultParent": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
          },
          "crossDefaultChildren": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsTabsDto": {
        "type": "object",
        "properties": {
          "financial": {
            "type": "boolean"
          },
          "tracking": {
            "type": "boolean"
          },
          "nonFinancial": {
            "type": "boolean"
          },
          "status": {
            "type": "boolean"
          },
          "reports": {
            "type": "boolean"
          },
          "uploads": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsTemplateDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsUploadRowDto": {
        "type": "object",
        "properties": {
          "uploadDate": {
            "type": "string"
          },
          "uploadedBy": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updatedOn": {
            "type": "string",
            "description": "Omitted while pending or without a modified date.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ManageCovenantsUploadsDto": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsUploadRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageAgreementHeaderDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The company currency; amounts are in it (the page shows them like the Loans page does, converted to the user's currency when that page does)."
          },
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageFacilityRowDto"
            }
          },
          "crossDefaultParent": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
          },
          "crossDefaultChildren": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementRefDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageCenterCountsDto": {
        "type": "object",
        "properties": {
          "totalUnread": {
            "type": "integer",
            "description": "All unread messages of the user, also those of type General.",
            "format": "int32"
          },
          "folders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageFolderDto"
            },
            "description": "The 12 folders in the legacy order."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageCenterMessageDto": {
        "type": "object",
        "properties": {
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          },
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Sanitized HTML."
          },
          "visibility": {
            "type": "string"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "description": "The sender; null is a system message.",
            "nullable": true
          },
          "fromIsMe": {
            "type": "boolean"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isReply": {
            "type": "boolean"
          },
          "isUnread": {
            "type": "boolean"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageAttachmentDto"
            }
          },
          "isOpen": {
            "type": "boolean",
            "description": "The legacy `ShowOpen`: expanded when the thread opens."
          },
          "replyToUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "From and To users of the message except the signed in user (those with a user guid): the preselection of the reply."
          }
        },
        "additionalProperties": false,
        "description": "The messages of FacilityMessageDto (messageGuid, conversationGuid, subject, sanitized body, visibility, sentOn UTC, from, fromIsMe, recipients, isReply, isUnread, attachments) plus two fields."
      },
      "Cerebro.Api.Features.Compliance.Models.MessageCenterReplyFormDto": {
        "type": "object",
        "properties": {
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          },
          "maxFiles": {
            "type": "integer",
            "format": "int32"
          },
          "maxFileBytes": {
            "type": "integer",
            "format": "int64"
          },
          "allowedExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Lower case with the dot."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageConversationDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string",
            "description": "The subject of the conversation (the first message)."
          },
          "type": {
            "type": "string"
          },
          "typeLabel": {
            "type": "string"
          },
          "reference": {
            "type": "string",
            "description": "The legacy `EntityName`."
          },
          "folder": {
            "type": "string",
            "description": "The folder to highlight (the legacy `Index` rule)."
          },
          "scope": {
            "type": "string",
            "description": "`mine` or `all`."
          },
          "totalCount": {
            "type": "integer",
            "description": "All messages of the scope, also those beyond the returned ones (cap 500).",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageCenterMessageDto"
            },
            "description": "Oldest first."
          },
          "link": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageRecordLinkDto"
          },
          "header": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageRecordHeaderDto"
          },
          "replyForm": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageCenterReplyFormDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageConversationRowDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "messageGuid": {
            "type": "string",
            "description": "The latest message of the row (legacy `MessageGuid`).",
            "format": "uuid"
          },
          "from": {
            "type": "string",
            "description": "The legacy `SentBy`: the sender (inbox folders) or the first names of the recipients (Sent)."
          },
          "subject": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "typeLabel": {
            "type": "string"
          },
          "reference": {
            "type": "string",
            "description": "The legacy `ItemDescription`."
          },
          "isUnread": {
            "type": "boolean"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "link": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageRecordLinkDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageConversationsPageDto": {
        "type": "object",
        "properties": {
          "folder": {
            "type": "string"
          },
          "folderLabel": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "conversations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageConversationRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageFacilityRowDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanType": {
            "type": "string",
            "description": "The legacy `FacilityType.ToDescription()`."
          },
          "maturityDate": {
            "type": "string",
            "description": "`yyyy-MM-dd`.",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "nullable": true
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "number",
            "description": "Years.",
            "format": "double",
            "nullable": true
          },
          "purpose": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageFinancialCovenantHeaderDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "prompt": {
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "formula": {
            "type": "string",
            "nullable": true
          },
          "formulaDetail": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "string"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "breachConsequence": {
            "type": "string"
          },
          "otherBreachConsequence": {
            "type": "string",
            "description": "Only when the consequence is Other.",
            "nullable": true
          },
          "testedEntity": {
            "type": "string"
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only when the tested entity is Guarantor and the agreement has investor guarantors: the one of the covenant, else all."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageFolderDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "`unread`, `sent`, `loanAgreement`, ... (see the folder keys)."
          },
          "value": {
            "type": "integer",
            "description": "The legacy `MessageCenterPage` value (0, 99, 1..10).",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "description": "The legacy description: \"Unread\", \"Sent\", \"Loan Agreement\", ... \"Custom Report\"."
          },
          "unreadCount": {
            "type": "integer",
            "description": "Unread messages in the folder (the total for `unread`, 0 for `sent`).",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The Account > Messages page of the compliance app (the message center, US #14651; port of the legacy `Message/Index`). See\n`docs/compliance-app-messages-contract.md`. Instants are UTC, dates `yyyy-MM-dd` text, folder and type keys lower camel case text."
      },
      "Cerebro.Api.Features.Compliance.Models.MessageNonFinancialCovenantHeaderDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "frequencyLabel": {
            "type": "string",
            "description": "The label of the column: \"Test Frequency\" when lender reporting is required, else \"Frequency\"."
          },
          "frequency": {
            "type": "string",
            "description": "The legacy text, for example \"Event Driven - Due 30 Days After Closing\"."
          },
          "continuousMonitoring": {
            "type": "boolean"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The last names of the active assigned contacts; empty = no Contacts column."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageRecordHeaderDto": {
        "type": "object",
        "properties": {
          "agreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageAgreementHeaderDto"
          },
          "financialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageFinancialCovenantHeaderDto"
          },
          "nonFinancialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageNonFinancialCovenantHeaderDto"
          },
          "result": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.MessageResultHeaderDto"
          }
        },
        "additionalProperties": false,
        "description": "Types 1, 2, 3, 6, 7, 8, 9 carry the agreement; 6 and 7 a financial covenant; 8 and 9 a non-financial covenant; 7 and 9 a result."
      },
      "Cerebro.Api.Features.Compliance.Models.MessageRecordLinkDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "The conversation type key (`loanAgreement`, ... `customReport`)."
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "isOwnCompany": {
            "type": "boolean",
            "description": "The company of the user's own contact (or a related company reached through it)."
          },
          "canViewAs": {
            "type": "boolean",
            "description": "The company can be viewed as a direct related company (\"view as\")."
          },
          "agreementGuid": {
            "type": "string",
            "description": "The agreement of the record; null for statements, line items and custom reports.",
            "format": "uuid",
            "nullable": true
          },
          "recordGuid": {
            "type": "string",
            "description": "The legacy `ItemGuid` of the type (agreement, facility, report, statement, covenant, target ...).",
            "format": "uuid"
          },
          "covenantGuid": {
            "type": "string",
            "description": "Types 7 and 9: the covenant the period belongs to; types 6 and 8: the covenant itself.",
            "format": "uuid",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "description": "Types 4 and 5: the statement period (the legacy `StatementYear`, `StatementPeriod`, `StatementCategory`) and the YTD flag.",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "category": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isYtd": {
            "type": "boolean"
          },
          "lineItemTypeId": {
            "type": "integer",
            "description": "Type 5: the line item type id the matrix highlights.",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What the record link needs: the data, never a URL."
      },
      "Cerebro.Api.Features.Compliance.Models.MessageReplySentDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MessageResultHeaderDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "`Financial` or `NonFinancial`."
          },
          "period": {
            "type": "string"
          },
          "result": {
            "type": "string",
            "description": "Financial: \"Projected Result: x\" / \"Calculated Result: x\" / \"... Pending\"; non-financial: the submitted answer."
          },
          "target": {
            "type": "string",
            "description": "Financial only: \"Target: {type} {value}\".",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "description": "Non-financial only: the comment shown as a tooltip.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "\"Success\", \"Violation\", \"Incomplete Data\" (financial); \"Covenant Requirement Met\", \"N/A\", \"Possible Covenant Violation\" (non-financial)."
          },
          "tone": {
            "type": "string",
            "description": "`success`, `warning`, `danger` (the legacy label colours)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.MoveDocumentDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NewFacilityFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "canUploadDocuments": {
            "type": "boolean",
            "description": "True for every route that answers 200 today (a flag so the upload option can be turned off by a server change)."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NewFacilityLimitsDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NewFacilityOptionsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NewFacilityLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxPurposeText": {
            "type": "integer",
            "format": "int32"
          },
          "maxFacilityAmount": {
            "type": "integer",
            "format": "int64"
          },
          "maxDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "maxDocumentBytes": {
            "type": "integer",
            "format": "int64"
          },
          "documentExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false,
        "description": "The limits the Add drawer shows and enforces on the client."
      },
      "Cerebro.Api.Features.Compliance.Models.NewFacilityOptionsDto": {
        "type": "object",
        "properties": {
          "facilityTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          },
          "purposes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityOptionDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The two option lists the Add drawer needs: the SAME lists as Cerebro.Api.Features.Compliance.Models.FacilityEditShellDto."
      },
      "Cerebro.Api.Features.Compliance.Models.NewLoanAgreementFormDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "canChangeLogo": {
            "type": "boolean"
          },
          "defaults": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementValuesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.LoanAgreementLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "approved": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialApprovalSavedDto": {
        "type": "object",
        "properties": {
          "changed": {
            "type": "integer",
            "description": "Results whose approval flag changed (0 is a valid answer).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantChoicesDto": {
        "type": "object",
        "properties": {
          "frequencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            },
            "description": "Annual, Semi-Annual, Quarterly, Monthly (page order); Event Driven only when the company has an event or the edited covenant stores it."
          },
          "requiredAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantRequiredAnswerChoiceDto"
            }
          },
          "completionRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantNumberChoiceDto"
            }
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantEventChoiceDto"
            },
            "description": "The events of THIS company by name; empty means the Event Driven choice is not offered."
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantContactChoiceDto"
            },
            "description": "The assignable contacts (and, on edit, the ones with an active assignment), \"Last, First\"."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantConfirmDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "`resultReset`."
          },
          "message": {
            "type": "string"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "answered": {
            "type": "integer",
            "format": "int32"
          },
          "complete": {
            "type": "integer",
            "format": "int32"
          },
          "approved": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of a frequency change that deletes answered, complete or approved results without a confirmation."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantDeleteImpactDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "results": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantResultSummaryDto"
          },
          "conversations": {
            "type": "integer",
            "description": "Conversations about the covenant or its results (deleted with their messages).",
            "format": "int32"
          },
          "emailRecords": {
            "type": "integer",
            "description": "E-mail record links (the e-mails stay).",
            "format": "int32"
          },
          "auditEntries": {
            "type": "integer",
            "description": "The audit history that goes with the covenant.",
            "format": "int32"
          },
          "assignedContacts": {
            "type": "integer",
            "description": "Active SME assignments.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantEventChoiceDto": {
        "type": "object",
        "properties": {
          "eventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantFormDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string",
            "description": "`nonfinancial`."
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "description": "Absent when adding.",
            "format": "uuid",
            "nullable": true
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto"
          },
          "choices": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantChoicesDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantLimitsDto"
          },
          "reminderNote": {
            "type": "string",
            "description": "\"Email reminders are enabled on this loan and will be sent {timings}.\" or the \"not enabled\" text."
          },
          "version": {
            "type": "string",
            "description": "Edit only: `v{ticks}` of `ModifiedOn` (`CreatedOn` when never modified), echoed by the PATCH.",
            "nullable": true
          },
          "results": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantResultSummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "The add form (no Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantFormDto.CovenantGuid) or the edit form of a non-financial covenant."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantLimitsDto": {
        "type": "object",
        "properties": {
          "maxName": {
            "type": "integer",
            "format": "int32"
          },
          "maxDescription": {
            "type": "integer",
            "format": "int32"
          },
          "maxDocumentReference": {
            "type": "integer",
            "format": "int32"
          },
          "maxDueByDays": {
            "type": "integer",
            "description": "999 (absolute value; negative days mean before).",
            "format": "int32"
          },
          "maxContacts": {
            "type": "integer",
            "format": "int32"
          },
          "maxReferenceTextLength": {
            "type": "integer",
            "format": "int32"
          },
          "agreementStart": {
            "type": "string",
            "description": "yyyy-MM-dd, the bounds of the custom dates (the derived start and expiry of the agreement)."
          },
          "agreementExpire": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantRequiredAnswerChoiceDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantResultSummaryDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "answered": {
            "type": "integer",
            "description": "A non empty submitted answer, or at least one SME response with an answer.",
            "format": "int32"
          },
          "complete": {
            "type": "integer",
            "format": "int32"
          },
          "approved": {
            "type": "integer",
            "format": "int32"
          },
          "fromEvents": {
            "type": "integer",
            "description": "Results of a reported event.",
            "format": "int32"
          },
          "responses": {
            "type": "integer",
            "description": "SME response rows.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The results of a covenant counted: the numbers the edit form and the delete dialog show."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantSavedDto": {
        "type": "object",
        "properties": {
          "covenantType": {
            "type": "string"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "changed": {
            "type": "boolean",
            "description": "False: an edit with nothing to save (nothing was written)."
          },
          "version": {
            "type": "string",
            "description": "The new version."
          },
          "covenantPeriods": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantPeriodsResultDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantStaleDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "currentVersion": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The 409 body of an edit based on an old version (the same JSON as Cerebro.Api.Features.Compliance.Models.FinancialCovenantStaleDto)."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialCovenantValuesDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "description": "\"\" when none.",
            "nullable": true
          },
          "documentReferenceText": {
            "type": "string",
            "description": "The loan document text (sanitized HTML on the way in). POST stores it with the new covenant. The edit form GET returns the stored text rendered like\nEdit Loan Document Text (null when there is none). A PATCH that omits it (null) keeps the stored text; a PATCH that carries it replaces it (blank = clear it).",
            "nullable": true
          },
          "requiredAnswer": {
            "type": "string",
            "description": "`Yes` or `No`; absent on the add form.",
            "nullable": true
          },
          "testFrequency": {
            "type": "integer",
            "description": "1 Quarterly, 2 Semi-Annual, 3 Annual, 4 Monthly, 5 Event Driven; absent on the add form.",
            "format": "int32",
            "nullable": true
          },
          "companyEventGuid": {
            "type": "string",
            "description": "Only for test frequency 5.",
            "format": "uuid",
            "nullable": true
          },
          "hasCustomDates": {
            "type": "boolean"
          },
          "effectiveDate": {
            "type": "string",
            "description": "yyyy-MM-dd; prefilled even when custom dates are off, only used when they are on.",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "lenderReportingRequired": {
            "type": "boolean",
            "description": "A nullable property so a missing value is a 400 on its key.",
            "nullable": true
          },
          "continuousMonitoring": {
            "type": "boolean",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "number",
            "description": "Days after the period end (a decimal so a fraction is a field error, not a binding error); negative days mean before.",
            "format": "double",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "smeContactGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "completionRule": {
            "type": "integer",
            "description": "0 Any SME Must Respond (default), 1 All SMEs Must Respond.",
            "format": "int32"
          },
          "version": {
            "type": "string",
            "description": "PATCH: required, the version the form was loaded with.",
            "nullable": true
          },
          "confirmResultReset": {
            "type": "boolean",
            "description": "PATCH: the user confirmed the deletion of the results of a frequency change.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What the form shows and what POST and PATCH take."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportCheckDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "rowCount": {
            "type": "integer",
            "description": "The number of covenants the file would create (the rows that are not blank).",
            "format": "int32"
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportRowDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The answer of the dry run: the covenants the file would create."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportColumnDto": {
        "type": "object",
        "properties": {
          "header": {
            "type": "string",
            "description": "\"Nonfinancial Covenant Name\" ..."
          },
          "use": {
            "type": "string",
            "description": "\"Required, maximum length 150 characters\" ..."
          }
        },
        "additionalProperties": false,
        "description": "One column of the template."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "templateFileName": {
            "type": "string",
            "description": "NonFinancialCovenantImportTemplate.xlsx"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportLimitsDto"
          },
          "guidelines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The two bullets of the legacy \"Import Guidelines\"."
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialImportColumnDto"
            },
            "description": "The nine columns in template order with the legacy \"Use\" text."
          }
        },
        "additionalProperties": false,
        "description": "The data of the import drawer: names, limits, the legacy \"Import Guidelines\" texts and the columns of the template."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportLimitsDto": {
        "type": "object",
        "properties": {
          "maxFileBytes": {
            "type": "integer",
            "description": "52,428,800 (50 MB).",
            "format": "int64"
          },
          "maxFilesPerUpload": {
            "type": "integer",
            "description": "1.",
            "format": "int32"
          },
          "maxTitleLength": {
            "type": "integer",
            "description": "150: the file name without the extension.",
            "format": "int32"
          },
          "extensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "[\".xlsx\"]"
          },
          "maxRows": {
            "type": "integer",
            "description": "200 covenants per file.",
            "format": "int32"
          },
          "maxNameLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxDescriptionLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxDocumentReferenceLength": {
            "type": "integer",
            "format": "int32"
          },
          "minDays": {
            "type": "integer",
            "description": "-999",
            "format": "int32"
          },
          "maxDays": {
            "type": "integer",
            "description": "999",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The limits of the import; the first four keep the names of the document upload limits so the app's file checks accept them."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportQueuedDto": {
        "type": "object",
        "properties": {
          "uploadGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "description": "\"Pending\""
          },
          "message": {
            "type": "string",
            "description": "The legacy text: \"Your covenant import is processing. You will receive a platform message when the import is complete.\""
          }
        },
        "additionalProperties": false,
        "description": "The answer of a started import (202): the upload row was inserted and the Lambda was started."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "description": "The Excel row (2 = the first covenant).",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "testFrequency": {
            "type": "string",
            "description": "\"Quarterly\" | \"Semi-Annual\" | \"Annual\" | \"Monthly\" | \"Event Driven\" (the descriptions)."
          },
          "baseReporting": {
            "type": "integer",
            "description": "The values that WILL BE STORED: after the frequency masking.",
            "format": "int32",
            "nullable": true
          },
          "quarterEndReporting": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReporting": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "requiredAnswer": {
            "type": "string",
            "description": "\"Yes\" | \"No\""
          },
          "lenderReportingRequired": {
            "type": "boolean"
          },
          "continuousMonitoring": {
            "type": "boolean",
            "description": "The optional Continuous Monitoring Required column (blank or missing = false). Informational: it changes no due date and no result."
          }
        },
        "additionalProperties": false,
        "description": "One covenant of the file as it will be stored."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryAnswerDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "answer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryAnswerDto"
            },
            "description": "Only the rows the user touched; an empty answer clears. An empty list is valid and saves nothing.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryFormDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "frequency": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "periodLabel": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntryRowDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "resultGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "lenderReportingRequired": {
            "type": "boolean"
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mine": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "canAnswer": {
            "type": "boolean"
          },
          "blockedReason": {
            "type": "string",
            "description": "`notSme | notOpen | noPermission`; present when `canAnswer` is false.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialPeriodEntrySavedDto": {
        "type": "object",
        "properties": {
          "saved": {
            "type": "integer",
            "format": "int32"
          },
          "unchanged": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnswerDto": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string",
            "description": "`Yes`, `No`, `N/A`, `Unsure` or empty (clear).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnsweredDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "tone": {
            "type": "string"
          },
          "shown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultShownDto"
            }
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "approval": {
            "type": "string",
            "description": "`approved` or `unapproved`; only when the company requires covenant approval.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultAuditDto": {
        "type": "object",
        "properties": {
          "resultGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "All rows; `entries` holds at most 500, newest first.",
            "format": "int32"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantAuditEntryDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultCellDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "resultGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "periodLabel": {
            "type": "string",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "answered": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultAnsweredDto"
          },
          "responders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultResponderDto"
            },
            "nullable": true
          },
          "mine": {
            "type": "string",
            "description": "The answer of the caller own slot; absent when none.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One cell. A hidden cell (notActive, notApproved, notAvailable) carries only the state, the year and the quarter."
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultColumnDto": {
        "type": "object",
        "properties": {
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultCommentsDto": {
        "type": "object",
        "properties": {
          "comments": {
            "type": "string",
            "description": "Empty clears.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultEventRowDto": {
        "type": "object",
        "properties": {
          "eventDate": {
            "type": "string",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "cell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCellDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultMessageFormDto": {
        "type": "object",
        "properties": {
          "resultGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageLimitsDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultMessagesDto": {
        "type": "object",
        "properties": {
          "resultGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.FacilityMessageDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultResponderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "answer": {
            "type": "string",
            "nullable": true
          },
          "answeredOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isMe": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultSavedDto": {
        "type": "object",
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "cell": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCellDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultShownDto": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string"
          },
          "by": {
            "type": "string",
            "description": "The full name of the contact; \"Cerebro Capital\" for a response with no contact; absent for the result level answer.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultYearRowDto": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultCellDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultsAccessDto": {
        "type": "object",
        "properties": {
          "isEmployee": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "manageLoanInformation": {
            "type": "boolean"
          },
          "canSendEmail": {
            "type": "boolean"
          },
          "isSme": {
            "type": "boolean"
          },
          "canAnswer": {
            "type": "boolean"
          },
          "canComment": {
            "type": "boolean"
          },
          "requiresCovenantApproval": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultsCovenantDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean"
          },
          "frequency": {
            "type": "string",
            "description": "`annual | semiAnnual | quarterly | monthly | eventDriven`."
          },
          "frequencyText": {
            "type": "string"
          },
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "continuousMonitoring": {
            "type": "boolean"
          },
          "lenderReportingRequired": {
            "type": "boolean"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "nullable": true
          },
          "requiredAnswer": {
            "type": "string",
            "description": "`Yes` or `No`."
          },
          "completionRule": {
            "type": "string",
            "description": "`any` or `all`."
          },
          "smes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ACTIVE assigned SMEs, last names, ordered."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultsMessagingDto": {
        "type": "object",
        "properties": {
          "hasSmes": {
            "type": "boolean"
          },
          "hasRecipients": {
            "type": "boolean"
          },
          "hasLenderContacts": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.NonFinancialResultsPageDto": {
        "type": "object",
        "properties": {
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ManageCovenantsSummaryDto"
          },
          "covenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultsCovenantDto"
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultsAccessDto"
          },
          "messaging": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultsMessagingDto"
          },
          "layout": {
            "type": "string",
            "description": "`scheduled` or `eventDriven`."
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultColumnDto"
            },
            "description": "Scheduled only (empty for event driven)."
          },
          "years": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultYearRowDto"
            },
            "description": "Scheduled only, newest year first."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.NonFinancialResultEventRowDto"
            },
            "description": "Event driven only, newest event first."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.OccurrenceDeleteImpactDto": {
        "type": "object",
        "properties": {
          "covenantResultCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedResultCount": {
            "type": "integer",
            "format": "int32"
          },
          "respondedResultCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasAttachment": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PendingFinancialLoadDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "periodName": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "categoryName": {
            "type": "string",
            "nullable": true
          },
          "uploadedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "percentLoaded": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PendingLoanDocumentDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "uploadedOn": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioBorrowerCapacityCompanyDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "#14838: the currency of the company; its amounts below are in it, not converted."
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "maximumFacilityAmount": {
            "type": "number",
            "format": "double"
          },
          "debtCapacity": {
            "type": "number",
            "description": "Null for the companies that do not show credit explorer.",
            "format": "double",
            "nullable": true
          },
          "capacityMissing": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioBorrowerCapacityDto": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "#14838: the currency all the listed companies share; empty when Cerebro.Api.Features.Compliance.Models.PortfolioBorrowerCapacityDto.MixedCurrencies."
          },
          "mixedCurrencies": {
            "type": "boolean",
            "description": "#14838: the listed companies have different currencies, so each figure has to name its own."
          },
          "showCapacity": {
            "type": "boolean",
            "description": "Any child company shows credit explorer."
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioBorrowerCapacityCompanyDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The outstanding debt, commitments and debt capacity of the parent company and its children."
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentIndustryDto": {
        "type": "object",
        "properties": {
          "industryId": {
            "type": "integer",
            "format": "int64"
          },
          "industryName": {
            "type": "string"
          },
          "companyCount": {
            "type": "integer",
            "format": "int32"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentLenderDto": {
        "type": "object",
        "properties": {
          "lenderGuid": {
            "type": "string",
            "description": "Null for the facilities without a bank provider (the \"Unknown\" lender).",
            "format": "uuid",
            "nullable": true
          },
          "lenderName": {
            "type": "string"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentsDto": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentLenderDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioCommitmentIndustryDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The commitments of the portfolio by lender and by industry, in the currency of the user."
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioIndustryCompanyDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "isParentCompany": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioLenderLoanDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "facilityName": {
            "type": "string"
          },
          "loanAgreementName": {
            "type": "string"
          },
          "maximumFacilityAmount": {
            "type": "number",
            "format": "double"
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioMaturingLoanDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "facilityName": {
            "type": "string"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "quarterLabel": {
            "type": "string"
          },
          "isParentCompany": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioMaturingLoansDto": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "quarters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioMaturingQuarterDto"
            },
            "description": "All twelve quarters, from the current one."
          },
          "loans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.PortfolioMaturingLoanDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The credit facilities maturing in the next three years, by quarter."
      },
      "Cerebro.Api.Features.Compliance.Models.PortfolioMaturingQuarterDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Like \"2026 Q3\"."
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.PricedValueDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDynamic": {
            "type": "boolean"
          },
          "insufficientData": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "A rate in percent points (5.25 means 5.25%); `insufficientData` = dynamic and no value."
      },
      "Cerebro.Api.Features.Compliance.Models.RecalculationDto": {
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "None",
              "Queued",
              "Failed"
            ],
            "type": "string",
            "description": "What happened to the covenant targets that use the changed financial data."
          },
          "targetCount": {
            "type": "integer",
            "description": "The number of covenant targets that were queued.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The outcome of the covenant recalculation that follows a financial change (an edit, a clear or a delete)."
      },
      "Cerebro.Api.Features.Compliance.Models.ReferenceTextImageDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Presigned for 60 minutes; the editor inserts it."
          },
          "fileName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.RejectedDocumentDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.RelatedCompaniesActionsDto": {
        "type": "object",
        "properties": {
          "showMenu": {
            "type": "boolean"
          },
          "showLoanDetailReports": {
            "type": "boolean"
          },
          "showHedgeDetailReports": {
            "type": "boolean"
          },
          "showNonFinancialCovenantExtracts": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Which sections of the Actions menu show."
      },
      "Cerebro.Api.Features.Compliance.Models.RelatedCompaniesPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "showCreditExplorer": {
            "type": "boolean",
            "description": "The parent's flag: selects the table variant."
          },
          "hasCompliance": {
            "type": "boolean",
            "description": "The company manages financials or debt."
          },
          "manageInformation": {
            "type": "boolean",
            "description": "The contact enters financial data or covenants (employees: true)."
          },
          "canAdd": {
            "type": "boolean",
            "description": "The contact enters covenants and is not a third party contact (employees: true)."
          },
          "childCompanyTerm": {
            "type": "string",
            "description": "Subsidiary, Client, Portfolio or Related.",
            "nullable": true
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ComplianceInternalCodeDto"
            },
            "description": "Empty hides the filter; limited to the codes of the contact when it has any."
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RelatedCompanyRecordDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "totals": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RelatedCompanyTotalsDto"
          },
          "actions": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RelatedCompaniesActionsDto"
          }
        },
        "additionalProperties": false,
        "description": "One page of the related companies of a company, with the totals and what the user may do."
      },
      "Cerebro.Api.Features.Compliance.Models.RelatedCompanyRecordDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "description": "10, 20 or 30.",
            "format": "int32"
          },
          "statusName": {
            "type": "string",
            "description": "Active, Inactive or Pending."
          },
          "internalCode": {
            "type": "string",
            "nullable": true
          },
          "contactCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "mostRecentDealStatus": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementCount": {
            "type": "integer",
            "format": "int32"
          },
          "financialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonFinancialCovenantCount": {
            "type": "integer",
            "format": "int32"
          },
          "recentFinancialPeriod": {
            "type": "string",
            "description": "The end date of the most recent financial statement.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.RelatedCompanyTotalsDto": {
        "type": "object",
        "properties": {
          "loanAgreements": {
            "type": "integer",
            "format": "int32"
          },
          "financialCovenants": {
            "type": "integer",
            "format": "int32"
          },
          "nonFinancialCovenants": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.RenameDocumentFolderDto": {
        "type": "object",
        "properties": {
          "folderName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReorderLineItemTypesDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "orderedIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Every sibling in the new order.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReportHandedOffDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The 202 answer of a Reporting Summary or Covenant Summary download or e-mail that was handed off to the Lambda (story #14861): the text the apps show."
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryEmailFormDto": {
        "type": "object",
        "properties": {
          "from": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailSenderDto"
          },
          "replyTo": {
            "type": "string",
            "description": "Non employees: the address of the user.",
            "nullable": true
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The e-mail address of the SME (empty when the SME has none)."
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string",
            "description": "`Reporting Summary Reminders - {company of the SME contact}`."
          },
          "body": {
            "type": "string",
            "description": "Prefilled sanitized HTML."
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailDocumentDto"
            },
            "description": "Always empty (the legacy form has no company documents)."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantEmailLimitsDto"
          },
          "smeId": {
            "type": "integer",
            "format": "int64"
          },
          "smeName": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The prefilled Send Email drawer of the report (the shape of `EmailFormContent` of the covenant e-mail form)."
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportFiltersDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "description": "The selected related company; absent = all companies.",
            "format": "uuid",
            "nullable": true
          },
          "frequency": {
            "type": "string",
            "description": "`annual`, `eventDriven`, `monthly`, `quarterly` or `semiAnnual`; absent = any frequency.",
            "nullable": true
          },
          "smeId": {
            "type": "integer",
            "description": "ALWAYS present: 0 any SME, -1 no SME assigned, a positive contact id (the effective value, the default SME resolved).",
            "format": "int64"
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numDays": {
            "type": "integer",
            "description": "15, 30, 60, 90, -1 (historical) or 99 (custom range); absent = any due date.",
            "format": "int32",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "description": "Only with `numDays` 99: the effective start date (default today minus 30 days).",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "description": "Only with `numDays` 99: the effective end date (default today).",
            "nullable": true
          },
          "reportingOnly": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "description": "`Any`, `MissingData`, `Pending`, `Pass` or `Fail`."
          },
          "internalCodeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportInternalCodeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "label": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportOptionsDto": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportCompanyDto"
            },
            "description": "The Company select, ordered by name (the all companies option is the one with `isRoute`); empty = hide the select."
          },
          "smes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportSmeDto"
            },
            "description": "The legacy SME list including `{ id: -1, name: \"No SME Assigned\" }` at its sorted position; \"Any SME\" is added by the app."
          },
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Ascending years."
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportInternalCodeDto"
            },
            "description": "Empty = hide the \"More filters\" row."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportPageDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportFiltersDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportOptionsDto"
          },
          "access": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryAccessDto"
          },
          "hasSmes": {
            "type": "boolean",
            "description": "Some row of the WHOLE result has an assigned SME (column visibility)."
          },
          "canEnterResponses": {
            "type": "boolean",
            "description": "The \"Enter Responses for Pending Covenants\" link applies (the legacy condition over all rows)."
          },
          "canEmailReport": {
            "type": "boolean",
            "description": "The user may send the report by e-mail (not a third party contact)."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportRowDto"
            },
            "description": "The requested page in the fixed order."
          },
          "page": {
            "type": "integer",
            "description": "The effective (clamped) page.",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Reports > Reporting Summary (`docs/compliance-app-reportingsummary-contract.md`, section 6): the non-financial covenant results of the current\ncompany and the related companies the user may see. The API decides the state, the tone and the due date of every row and hides what the user may not\nsee: a hidden row (`notApproved`, `notAvailable`) carries no due line and no responder flags. Dates are `yyyy-MM-dd`; nulls are\nomitted by the global JSON option."
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportRowDto": {
        "type": "object",
        "properties": {
          "resultId": {
            "type": "integer",
            "description": "The `NonfinancialCovenantResultId`: the React key.",
            "format": "int64"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.CovenantSummaryReportLenderDto"
            }
          },
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "covenantDescription": {
            "type": "string",
            "nullable": true
          },
          "smes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportSmeDto"
            },
            "description": "The last names of the assigned SMEs in the order of the procedure."
          },
          "frequency": {
            "type": "string",
            "description": "`annual`, `semiAnnual`, `quarterly`, `monthly` or `eventDriven`."
          },
          "frequencyText": {
            "type": "string"
          },
          "periodLabel": {
            "type": "string",
            "description": "The stored period text, trimmed."
          },
          "dueDate": {
            "type": "string",
            "description": "The due date (`yyyy-MM-dd`); absent only for a legacy row without any date.",
            "nullable": true
          },
          "showDue": {
            "type": "boolean",
            "description": "The \"Due:\" line applies (incomplete, missing data or pending, not hidden)."
          },
          "isForecast": {
            "type": "boolean",
            "description": "Informational: the period has not ended."
          },
          "state": {
            "type": "string",
            "description": "`notApproved`, `notAvailable`, `missingData`, `pending`, `pass`, `fail` or `notApplicable`."
          },
          "tone": {
            "type": "string",
            "description": "`none`, `inactive`, `warning`, `success` or `errorSevere`."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.ReportingSummaryReportSmeDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "responded": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "An SME of a row: the last name and whether that SME answered (absent on a hidden row)."
      },
      "Cerebro.Api.Features.Compliance.Models.ResolveOrderConflictsResultDto": {
        "type": "object",
        "properties": {
          "groupCount": {
            "type": "integer",
            "description": "Groups renumbered.",
            "format": "int32"
          },
          "typeCount": {
            "type": "integer",
            "description": "Types whose position changed.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SaveCertificateReportFieldValueDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SaveCertificateReportSectionDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SaveCertificateReportTextDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT .../Text`. A null or empty text clears the report text (stored as an empty text)."
      },
      "Cerebro.Api.Features.Compliance.Models.SaveCovenantTextDto": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "description": "\"\" or only markup without text, links or images removes the text.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SaveCustomReportNotesDto": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "description": "At most 10,000 characters; null or white space clears the notes.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT Custom/{reportGuid}/Notes`."
      },
      "Cerebro.Api.Features.Compliance.Models.SaveFacilityReferenceTextDto": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "description": "\"\" or only markup without text, links or images clears the topic.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SaveFinancialTargetDto": {
        "type": "object",
        "properties": {
          "targetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "targetValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of Edit Target; both values are required (a missing one is a 400 on its key)."
      },
      "Cerebro.Api.Features.Compliance.Models.SaveTemplateCovenantsDto": {
        "type": "object",
        "properties": {
          "includedCovenantGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT Settings/Covenants`: the covenants whose calculation details are attached; every other covenant of the agreement is switched off (legacy)."
      },
      "Cerebro.Api.Features.Compliance.Models.SaveTemplateHeadingsDto": {
        "type": "object",
        "properties": {
          "headings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateHeadingValueDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT Settings/Headings`: only INCLUDED covenants; a covenant that is not listed keeps its heading (the legacy wrote NULL)."
      },
      "Cerebro.Api.Features.Compliance.Models.SaveTemplateLineItemMappingDto": {
        "type": "object",
        "properties": {
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateMappingValueDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT .../LineItemMapping`: ALL the placeholders that are still unmapped, in one save."
      },
      "Cerebro.Api.Features.Compliance.Models.SendInviteDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "emailAddress": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string",
            "description": "The welcome template with the literal placeholder `#passwordLink` where the sign-in link goes."
          },
          "isSingleSignOn": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.SendInviteRequestDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The recipient, the link and the sender are decided by the server."
      },
      "Cerebro.Api.Features.Compliance.Models.SetCertificateReportLogoDto": {
        "type": "object",
        "properties": {
          "includeLogo": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `PUT .../Logo`: required (nullable so a missing value is a 400 on its key)."
      },
      "Cerebro.Api.Features.Compliance.Models.SetLineItemTypeFlagDto": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "One of Revenue, Ebitda, Cash, MarketableSecurities, Inventory, AccountsReceivable, TotalAssets, RealEstate, Equipment; null clears.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedPeriodDto": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          },
          "periodName": {
            "type": "string"
          },
          "header": {
            "type": "string",
            "description": "The column header of the page, like \"2025 Q1:A YTD\"."
          },
          "exists": {
            "type": "boolean",
            "description": "A statement with that key exists now."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedRowDto": {
        "type": "object",
        "properties": {
          "stagedLineItemId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isHeading": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "description": "\"Existing\" or \"New\"."
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "orderChanges": {
            "type": "boolean",
            "description": "The position of the matched type will change."
          },
          "parentDiffers": {
            "type": "boolean",
            "description": "The type was matched under another parent than the file's: it stays where it is."
          },
          "existingParentName": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "type": "string",
            "description": "Currency, Percent or Numeric; Currency for a new type."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "description": "Aligned with the periods; null = empty cell."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedStatementDto": {
        "type": "object",
        "properties": {
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedPeriodDto"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedUploadCountsDto": {
        "type": "object",
        "properties": {
          "lineItems": {
            "type": "integer",
            "format": "int32"
          },
          "matched": {
            "type": "integer",
            "format": "int32"
          },
          "newItems": {
            "type": "integer",
            "format": "int32"
          },
          "orderChanges": {
            "type": "integer",
            "format": "int32"
          },
          "parentDiffers": {
            "type": "integer",
            "format": "int32"
          },
          "statementsToCreate": {
            "type": "integer",
            "format": "int32"
          },
          "statementsToOverwrite": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedUploadReviewDto": {
        "type": "object",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadSummaryDto"
          },
          "companyName": {
            "type": "string"
          },
          "companyCurrency": {
            "type": "string"
          },
          "requiresFinancialApproval": {
            "type": "boolean"
          },
          "canApprove": {
            "type": "boolean"
          },
          "counts": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedUploadCountsDto"
          },
          "blockingPeriods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Headers (\"2025 Q1:A\") of statements that exist now while overwrite is off: the import answers 409."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Parse warnings; they are not stored, so they are only present in the answer of the upload itself."
          },
          "statements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StagedStatementDto"
            },
            "description": "One per sheet, statement type ascending."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StagedUploadSummaryDto": {
        "type": "object",
        "properties": {
          "stagedUploadGuid": {
            "type": "string",
            "format": "uuid"
          },
          "category": {
            "type": "integer",
            "format": "int32"
          },
          "categoryName": {
            "type": "string"
          },
          "isYtd": {
            "type": "boolean"
          },
          "overwriteExisting": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "yearRange": {
            "type": "string",
            "description": "\"2024\" or \"2023-2025\"."
          },
          "sheetCount": {
            "type": "integer",
            "format": "int32"
          },
          "statementCount": {
            "type": "integer",
            "description": "The periods summed over the sheets: what the import creates or overwrites.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A staged upload in one line: the banner of the list and the head of the review."
      },
      "Cerebro.Api.Features.Compliance.Models.StartCertificateReportDto": {
        "type": "object",
        "properties": {
          "templateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "integer",
            "description": "The `Quarter` column: 1-3, 2, 5 (year end or Q4) and 13-24 (month + 12).",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of `POST .../ComplianceReports`. Every value is nullable so a missing one is a 400 on its key."
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageAttachmentDto": {
        "type": "object",
        "properties": {
          "fileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageDto": {
        "type": "object",
        "properties": {
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          },
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Sanitized HTML."
          },
          "visibility": {
            "type": "string"
          },
          "sentOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "description": "The sender; null is a system message (\"Cerebro Capital\").",
            "nullable": true
          },
          "fromIsMe": {
            "type": "boolean"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isReply": {
            "type": "boolean"
          },
          "isUnread": {
            "type": "boolean"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageAttachmentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageFormDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "statementTypeName": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageRecipientDto"
            }
          },
          "defaultVisibility": {
            "type": "string",
            "description": "`Public` or `Private`."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The compose drawer: who can be written to and the limits."
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageLimitsDto": {
        "type": "object",
        "properties": {
          "maxSubjectLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxBodyLength": {
            "type": "integer",
            "format": "int32"
          },
          "maxRecipients": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageRecipientDto": {
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "listName": {
            "type": "string",
            "description": "#14836: \"Last Name, First Name\" (the list name of a recipient); the display name of the user when the person has no name."
          },
          "kind": {
            "type": "string",
            "description": "`Company`, `Lender` or `AccountManager`."
          },
          "organization": {
            "type": "string",
            "description": "The company or bank of the person; null for an account manager.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A person a statement message can be sent to."
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessageSentDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "messageGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.StatementMessagesDto": {
        "type": "object",
        "properties": {
          "statementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "header": {
            "type": "string"
          },
          "statementTypeName": {
            "type": "string"
          },
          "totalCount": {
            "type": "integer",
            "description": "The messages the user may see, also those beyond the returned ones.",
            "format": "int32"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.StatementMessageDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The view messages drawer: newest first."
      },
      "Cerebro.Api.Features.Compliance.Models.TakenApprovalLevelDto": {
        "type": "object",
        "properties": {
          "level": {
            "enum": [
              "Level1",
              "Level2",
              "Level3",
              "Level4",
              "Final"
            ],
            "type": "string",
            "description": "The report approval levels of a compliance report."
          },
          "heldBy": {
            "type": "string",
            "description": "The name of the other contact who holds the level."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateFieldValuesDto": {
        "type": "object",
        "properties": {
          "fieldGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "fieldName": {
            "type": "string",
            "description": "The exact name of the field in the PDF form (the generator matches by this name); unique per template, ignoring case.",
            "nullable": true
          },
          "fieldDescription": {
            "type": "string",
            "nullable": true
          },
          "fieldValue": {
            "type": "string",
            "description": "The default value of the field.",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "description": "A short statement that describes the field and its usage.",
            "nullable": true
          },
          "context": {
            "type": "string",
            "description": "Rich text (HTML, sanitized on save) that shows the report content around the field.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The values of one custom field (`GET Settings/Fields/{fieldGuid}`, also the body of POST and PATCH)."
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateHeadingValueDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "heading": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateLineItemMappingDto": {
        "type": "object",
        "properties": {
          "templateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "frequencyText": {
            "type": "string",
            "description": "The legacy frequency text of the template (Annual, Semi-Annual, Quarterly, Monthly, Event Driven)."
          },
          "templateTypeText": {
            "type": "string",
            "description": "\"Text-Based\" or \"PDF Form\"."
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateMappingLineDto"
            },
            "description": "The default text split on `\\r\\n`; `#reportDate` is already replaced by today's long date. The app renders PLAIN text (never HTML)."
          },
          "placeholders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplatePlaceholderDto"
            },
            "description": "The distinct placeholders of the shape `#lineItemValue[cp]_{n}_` in the order of appearance; empty when everything is mapped."
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateLineItemOptionDto"
            },
            "description": "Every line item type of the company (the five statement types in the legacy order, tree order inside each, headings included but not selectable)."
          }
        },
        "additionalProperties": false,
        "description": "The page of `GET .../ComplianceReportTemplates/{templateGuid}/LineItemMapping`."
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateLineItemMappingSavedDto": {
        "type": "object",
        "properties": {
          "remaining": {
            "type": "integer",
            "description": "How many placeholders the stored text still has (0 after a normal save).",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateLineItemOptionDto": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "statementType": {
            "type": "integer",
            "format": "int32"
          },
          "statementTypeName": {
            "type": "string"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isParent": {
            "type": "boolean",
            "description": "A heading (it has children): shown, not selectable."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateMappingLineDto": {
        "type": "object",
        "properties": {
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateMappingSegmentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateMappingSegmentDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "`kind` is `Text` (`text` is set), `PageBreak` or `Placeholder` (`key` is set)."
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateMappingValueDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplatePlaceholderDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The legacy select name: `lineItemValuec_1` (current period) or `lineItemValuep_1` (prior period)."
          },
          "period": {
            "type": "string",
            "description": "`Current` or `Prior`."
          },
          "number": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantDto": {
        "type": "object",
        "properties": {
          "covenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "included": {
            "type": "boolean",
            "description": "The covenant details are attached to the report (`IncludeDetailsInComplianceReport`)."
          },
          "heading": {
            "type": "string",
            "description": "The title of the covenant details page; empty when none (the generator then falls back to its default)."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantsDto": {
        "type": "object",
        "properties": {
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "The answer of both covenant saves: the covenants of the page after the save."
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateSettingsDto": {
        "type": "object",
        "properties": {
          "templateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreementName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "frequencyText": {
            "type": "string",
            "description": "The legacy frequency text of the template (Annual, Semi-Annual, Quarterly, Monthly, Event Driven)."
          },
          "templateTypeText": {
            "type": "string",
            "description": "\"Text-Based\" or \"PDF Form\"."
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsCovenantDto"
            },
            "description": "Every financial covenant of the agreement (the legacy list order = database order) with its report flag and heading."
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsFieldDto"
            },
            "description": "The TEMPLATE LEVEL custom fields (the ones of a report are not listed), in database order."
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.TemplateSettingsLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "The page of `GET .../ComplianceReportTemplates/{templateGuid}/Settings`."
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateSettingsFieldDto": {
        "type": "object",
        "properties": {
          "fieldGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fieldName": {
            "type": "string"
          },
          "fieldDescription": {
            "type": "string"
          },
          "fieldValue": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.TemplateSettingsLimitsDto": {
        "type": "object",
        "properties": {
          "maxFieldName": {
            "type": "integer",
            "format": "int32"
          },
          "maxFieldDescription": {
            "type": "integer",
            "format": "int32"
          },
          "maxPrompt": {
            "type": "integer",
            "format": "int32"
          },
          "maxHeading": {
            "type": "integer",
            "format": "int32"
          },
          "maxFieldValue": {
            "type": "integer",
            "format": "int32"
          },
          "maxContext": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UpdateCertificateAttachmentDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "pageHeader": {
            "type": "string",
            "nullable": true
          },
          "reportTag": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The JSON body of `PATCH .../Attachments/{attachmentGuid}`: a full replace of the four values."
      },
      "Cerebro.Api.Features.Compliance.Models.UpdateCompanyOverviewValuesDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "companyTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "industryId": {
            "type": "integer",
            "description": "-1 is \"Other\".",
            "format": "int64",
            "nullable": true
          },
          "otherIndustry": {
            "type": "string",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "currency": {
            "type": "string",
            "description": "#14838: the currency code; null or blank leaves the stored one, and it is ignored when the user may not change it.",
            "nullable": true
          },
          "internalCodeId": {
            "type": "integer",
            "description": "-1 creates Cerebro.Api.Features.Compliance.Models.UpdateCompanyOverviewValuesDto.NewInternalCodeValue; null clears the code.",
            "format": "int64",
            "nullable": true
          },
          "newInternalCodeValue": {
            "type": "string",
            "nullable": true
          },
          "securityId": {
            "type": "string",
            "nullable": true
          },
          "requiresFinancialApproval": {
            "type": "boolean"
          },
          "requiresCovenantApproval": {
            "type": "boolean"
          },
          "reminderWeekly": {
            "type": "boolean"
          },
          "reminder30Days": {
            "type": "boolean"
          },
          "reminder15Days": {
            "type": "boolean"
          },
          "reminder10Days": {
            "type": "boolean"
          },
          "reminder7Days": {
            "type": "boolean"
          },
          "reminder3Days": {
            "type": "boolean"
          },
          "reminderOnDueDate": {
            "type": "boolean"
          },
          "reminderDayAfterDueDate": {
            "type": "boolean"
          },
          "reminderDailyUntilComplete": {
            "type": "boolean"
          },
          "isManagingDebt": {
            "type": "boolean",
            "description": "The company manages debt (covenants). At least one of the two management flags must stay on.",
            "nullable": true
          },
          "isManagingFinancials": {
            "type": "boolean",
            "description": "The company manages financials. At least one of the two management flags must stay on.",
            "nullable": true
          },
          "canAccessRelatedCompanies": {
            "type": "boolean",
            "description": "The company can see and manage related (child) companies.",
            "nullable": true
          },
          "bypassSupplementalTerms": {
            "type": "boolean",
            "description": "Supplemental terms are not required for the company.",
            "nullable": true
          },
          "restrictedAccess": {
            "type": "boolean",
            "description": "Only employees with the restricted companies permission see the company.",
            "nullable": true
          },
          "isTestCompany": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The values of the edit form. Limits are validated by `ComplianceCompanyOverviewValidator`."
      },
      "Cerebro.Api.Features.Compliance.Models.UpdateDocumentDto": {
        "type": "object",
        "properties": {
          "documentTitle": {
            "type": "string",
            "nullable": true
          },
          "documentTypeId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UpdateFinancialLineItemDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The new value of a cell in the stored units: Currency in the COMPANY currency, Percent as a fraction (0.25), Numeric as is.\nNull clears the cell."
      },
      "Cerebro.Api.Features.Compliance.Models.UploadDocumentsResultDto": {
        "type": "object",
        "properties": {
          "added": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UploadedDocumentDto"
            }
          },
          "rejected": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.RejectedDocumentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UploadedDocumentDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UserAuditReportPageDto": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UserAuditRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UserAuditRowDto": {
        "type": "object",
        "properties": {
          "userLastName": {
            "type": "string"
          },
          "userFirstName": {
            "type": "string"
          },
          "userEmailAddress": {
            "type": "string"
          },
          "propertyChanged": {
            "type": "string"
          },
          "previousValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "changedByLastName": {
            "type": "string"
          },
          "changedByFirstName": {
            "type": "string"
          },
          "changedByEmailAddress": {
            "type": "string"
          },
          "modifiedOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UserSummaryReportDto": {
        "type": "object",
        "properties": {
          "showComplianceColumns": {
            "type": "boolean",
            "description": "The company manages debt or financials."
          },
          "showCreditExplorerColumns": {
            "type": "boolean",
            "description": "The company shows the credit explorer."
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Compliance.Models.UserSummaryRowDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Compliance.Models.UserSummaryRowDto": {
        "type": "object",
        "properties": {
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "lastLoginOn": {
            "type": "string",
            "description": "UTC.",
            "format": "date-time",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "internalCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "financialDataEntry": {
            "type": "boolean"
          },
          "financialDataApproval": {
            "type": "boolean"
          },
          "covenantEntry": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "receiveCovenantReminderEmails": {
            "type": "boolean"
          },
          "covenantReportSignature": {
            "type": "boolean"
          },
          "covenantApprovalFinal": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "accessCreditExplorer": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.AddNewLoanRequestPageDto": {
        "required": [
          "childCompanies",
          "companySubscriptionHubspotGuid",
          "dealName",
          "isParentCompany"
        ],
        "type": "object",
        "properties": {
          "companySubscriptionHubspotGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isParentCompany": {
            "type": "boolean"
          },
          "dealName": {
            "type": "string"
          },
          "childCompanies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.AddRawLeadExcludedLenderFormDto": {
        "required": [
          "bankGuid"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.BillingPeriodDto": {
        "required": [
          "successFeeTiers"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "hubspotGuid": {
            "type": "string",
            "format": "uuid"
          },
          "periodStatus": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto"
            }
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "refinanceBenefitType": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "isPast": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyContactFormDto": {
        "required": [
          "createCreditSearch",
          "isActive",
          "isBillingContact",
          "isLockedOut",
          "isThirdPartyContact",
          "isUserAdministrator"
        ],
        "type": "object",
        "properties": {
          "officeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "prefix": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          },
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          },
          "fullname": {
            "type": "string",
            "readOnly": true
          },
          "auditModel": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.CompanyContactUserAuditModel"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyContactItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "lastLoginOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "officeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createCreditSearch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyContactUserAuditSearchResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "auditType": {
            "enum": [
              "Name",
              "Email",
              "Title",
              "IsActive",
              "IsLockedOut",
              "UserAdministrator",
              "CovenantEntry",
              "CovenantApprovalFinal",
              "CovenantReportSignature",
              "FinancialDataEntry",
              "FinancialDataApproval",
              "ReceiveCovenantReminderEmails",
              "ViewForecastData",
              "CreateCreditSearch",
              "InternalCodes"
            ],
            "type": "string"
          },
          "previousValue": {
            "type": "string"
          },
          "newValue": {
            "type": "string"
          },
          "changedByFirstName": {
            "type": "string"
          },
          "changedByLastName": {
            "type": "string"
          },
          "changedByEmailAddress": {
            "type": "string"
          },
          "changedByName": {
            "type": "string"
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyInvoiceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "invoiceTypeDisplay": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "scheduleDueDate": {
            "type": "string",
            "format": "date"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "invoiceFileName": {
            "type": "string"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string"
          },
          "invoiceStage": {
            "enum": [
              "Pending",
              "Approved"
            ],
            "type": "string"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "scheduleStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          },
          "isCreditMemo": {
            "type": "boolean"
          },
          "canEditPaymentSchedule": {
            "type": "boolean"
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyOfficeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "isHeadquarters": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CountryDto"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "addressString": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "cityState": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "companyStatus": {
            "enum": [
              "Active",
              "Inactive",
              "Pending"
            ],
            "type": "string"
          },
          "companyType": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "ownershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalYearEnd": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewFormDto": {
        "required": [
          "companyType",
          "fiscalEndDay",
          "fiscalEndMonth"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "companyType": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ownershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "nullable": true
          },
          "formSetOwnershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "readOnly": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "currency": {
            "type": "string"
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewPageDto": {
        "required": [
          "companyOverview",
          "currencies"
        ],
        "type": "object",
        "properties": {
          "companyOverview": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOverviewDto"
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.CurrencyDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyPeoplePageDto": {
        "required": [
          "currencies",
          "offices",
          "people",
          "prefixes",
          "states",
          "suffixes",
          "timezones"
        ],
        "type": "object",
        "properties": {
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactItemDto"
            }
          },
          "offices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOfficeDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "timezones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.CurrencyDto"
            }
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyRawLeadDealDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "industryName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "stateName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "interestCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingInterestCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "useOfProceeds": {
            "enum": [
              "Unknown",
              "WorkingCapital",
              "WorkingCapitalAccountsReceivableFinancing",
              "WorkingCapitalInventoryFinancing",
              "WorkingCapitalCapitalForOperatingExpenses",
              "EquipmentFinancing",
              "EquipmentFinancingMachineryAndEquipment",
              "EquipmentFinancingVehicles",
              "EquipmentFinancingMarineVessels",
              "EquipmentFinancingHelicopters",
              "EquipmentFinancingAircraft",
              "RealEstate",
              "RealEstateOffice",
              "RealEstateMedicalOffice",
              "RealEstateChildcare",
              "RealEstateRetail",
              "RealEstateSelfStorage",
              "RealEstateIndustrial",
              "RealEstateIndustrialManufacturing",
              "RealEstateIndustrialFlexHybrid",
              "RealEstateIndustrialDistribution",
              "RealEstateIndustrialWarehouse",
              "RealEstateHospitality",
              "RealEstateResidentialHealthcare",
              "RealEstateMultifamily",
              "RealEstateInvestorOwnedResidential",
              "GrowthCapital",
              "RefinanceExistingDebt",
              "AcquiringBusiness",
              "AcquiringBusinessStandalone",
              "AcquiringBusinessAddOn",
              "AcquiringBusinessPartnerBuyOut",
              "AcquiringBusinessManagementBuyOut",
              "OtherFinancingNeeds"
            ],
            "type": "string"
          },
          "rawLeadInterestLimitRestricted": {
            "type": "boolean"
          },
          "isBrokerDeal": {
            "type": "boolean"
          },
          "hasSignedContract": {
            "type": "boolean"
          },
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanyStatusBarDto": {
        "required": [
          "companyGuid",
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchDto": {
        "required": [
          "dealState",
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "dealState": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchItemDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "showDataRoomLink": {
            "type": "boolean"
          },
          "nextSteps": {
            "type": "string"
          },
          "requestPurposeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "isBridgeLoan": {
            "type": "boolean"
          },
          "isAcquisition": {
            "type": "boolean"
          },
          "isWorkingCapital": {
            "type": "boolean"
          },
          "isGrowthCapital": {
            "type": "boolean"
          },
          "isEquipmentFinancing": {
            "type": "boolean"
          },
          "isOwnerOccupiedRealEstate": {
            "type": "boolean"
          },
          "isRefinanceExistingDebt": {
            "type": "boolean"
          },
          "isOtherFinancingNeeds": {
            "type": "boolean"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "lendersInvited": {
            "type": "integer",
            "format": "int32"
          },
          "lendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "lendersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "isLoanFunded": {
            "type": "boolean"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ContactCompanyDto": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "isParentCompany": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "userAdministrator": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ContactDealDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "includeLoanApplication": {
            "type": "boolean"
          },
          "isDataRoomAccessible": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CreditExplorerCurrentUserDto": {
        "required": [
          "companies"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "prefix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "defaultTimezone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ContactCompanyDto"
            }
          },
          "isMultiCompanyUser": {
            "type": "boolean",
            "readOnly": true
          },
          "hasCompanySubscription": {
            "type": "boolean"
          },
          "hasRefinanceOpportunities": {
            "type": "boolean"
          },
          "isSingleSignOnUser": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "userAdministrator": {
            "type": "boolean"
          },
          "hasNdas": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.CreditExplorerDashboardDto": {
        "required": [
          "contactDeals",
          "rawLeadDeals"
        ],
        "type": "object",
        "properties": {
          "rawLeadDeals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyRawLeadDealDto"
            }
          },
          "contactDeals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ContactDealDto"
            }
          },
          "hasRawLeadDeals": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.DealSonarFinancialHistoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.EditDealSonarItemFormDto": {
        "required": [
          "advanceRateAgainstCollateral",
          "amortization",
          "collateralRequirements",
          "covenants",
          "interestRate",
          "loanAmount",
          "maturity",
          "personalGuarantee",
          "prepaymentFees"
        ],
        "type": "object",
        "properties": {
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "personalGuarantee": {
            "type": "boolean"
          },
          "personalGuaranteeText": {
            "type": "string",
            "nullable": true
          },
          "interestRate": {
            "type": "boolean"
          },
          "interestRateText": {
            "type": "string",
            "nullable": true
          },
          "covenants": {
            "type": "boolean"
          },
          "covenantsText": {
            "type": "string",
            "nullable": true
          },
          "maturity": {
            "type": "boolean"
          },
          "maturityText": {
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "boolean"
          },
          "amortizationText": {
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "boolean"
          },
          "loanAmountText": {
            "type": "string",
            "nullable": true
          },
          "prepaymentFees": {
            "type": "boolean"
          },
          "prepaymentFeesText": {
            "type": "string",
            "nullable": true
          },
          "advanceRateAgainstCollateral": {
            "type": "boolean"
          },
          "advanceRateAgainstCollateralText": {
            "type": "string",
            "nullable": true
          },
          "collateralRequirements": {
            "type": "boolean"
          },
          "collateralRequirementsText": {
            "type": "string",
            "nullable": true
          },
          "otherDetails": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.EditRawLeadDealDetailDto": {
        "required": [
          "companyGuid",
          "ebitda",
          "requestAmount",
          "revenue",
          "useOfProceeds"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "requestAmount": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerProvidingCash": {
            "type": "boolean",
            "readOnly": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "useOfProceeds": {
            "enum": [
              "Unknown",
              "WorkingCapital",
              "WorkingCapitalAccountsReceivableFinancing",
              "WorkingCapitalInventoryFinancing",
              "WorkingCapitalCapitalForOperatingExpenses",
              "EquipmentFinancing",
              "EquipmentFinancingMachineryAndEquipment",
              "EquipmentFinancingVehicles",
              "EquipmentFinancingMarineVessels",
              "EquipmentFinancingHelicopters",
              "EquipmentFinancingAircraft",
              "RealEstate",
              "RealEstateOffice",
              "RealEstateMedicalOffice",
              "RealEstateChildcare",
              "RealEstateRetail",
              "RealEstateSelfStorage",
              "RealEstateIndustrial",
              "RealEstateIndustrialManufacturing",
              "RealEstateIndustrialFlexHybrid",
              "RealEstateIndustrialDistribution",
              "RealEstateIndustrialWarehouse",
              "RealEstateHospitality",
              "RealEstateResidentialHealthcare",
              "RealEstateMultifamily",
              "RealEstateInvestorOwnedResidential",
              "GrowthCapital",
              "RefinanceExistingDebt",
              "AcquiringBusiness",
              "AcquiringBusinessStandalone",
              "AcquiringBusinessAddOn",
              "AcquiringBusinessPartnerBuyOut",
              "AcquiringBusinessManagementBuyOut",
              "OtherFinancingNeeds"
            ],
            "type": "string"
          },
          "isAcquisitionUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isWorkingCapitalUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isEquipmentUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isRealEstateUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ExplorerAccountSettingsDto": {
        "required": [
          "companyContactGuid",
          "dataRoomLenderUploadReminder",
          "dataRoomQuestionPostedReminder",
          "dataRoomTaskAssignedReminder",
          "dataRoomTaskDailyUpdateReminder",
          "dataRoomTaskWeeklyUpdateReminder",
          "dataRoomTermSheetAddedReminder",
          "lenderAccessRoomReminder"
        ],
        "type": "object",
        "properties": {
          "companyContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean"
          },
          "lenderAccessRoomReminder": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ExplorerCompanySubscriptionItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          },
          "accountManager": {
            "type": "string"
          },
          "agreementFileName": {
            "type": "string"
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "subscriptionEndDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "autoRenew": {
            "type": "boolean"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto"
            }
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "refinanceBenefitType": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ExplorerSingleEngagementItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto"
            }
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isBillingActive": {
            "type": "boolean"
          },
          "agreementFileName": {
            "type": "string"
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.ExplorerSubscriptionsDto": {
        "required": [
          "companySubscriptions",
          "singleEngagements"
        ],
        "type": "object",
        "properties": {
          "singleEngagements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerSingleEngagementItemDto"
            }
          },
          "companySubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.ExplorerCompanySubscriptionItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.HubspotDealDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "canShowDataRoomLink": {
            "type": "boolean"
          },
          "isAdditionalDeal": {
            "type": "boolean"
          },
          "launchedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.MultiCompanyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "contactCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "isParentCompany": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "userAdministrator": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.NewLoanRequestFormDto": {
        "required": [
          "companyGuid",
          "companyName",
          "companySubscriptionHubspotGuid",
          "isParentCompany",
          "totalRequestAmount"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionHubspotGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isParentCompany": {
            "type": "boolean"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "companyName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealExcludedLendersDto": {
        "required": [
          "excludedLenders"
        ],
        "type": "object",
        "properties": {
          "maxLenders": {
            "type": "integer",
            "format": "int32"
          },
          "excludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.RawLeadDealVisibilityFormDto": {
        "required": [
          "isRawLeadVisible"
        ],
        "type": "object",
        "properties": {
          "isRawLeadVisible": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.RawLeadDocumentDto": {
        "required": [
          "documentTitle",
          "fileName"
        ],
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string"
          },
          "documentTitle": {
            "type": "string"
          },
          "documentType": {
            "enum": [
              "Financial_Statement",
              "PersonalFinancial",
              "FinancialProjections",
              "Budget",
              "CapTable",
              "AccountAnalysisStatement",
              "BankStatement",
              "CompanyValuation",
              "EquipmentAppraisal",
              "RealEstateAppraisal",
              "AR_Agings",
              "AP_Agings",
              "Loan_Document",
              "DebtSchedule",
              "CorpTax",
              "PrincipalTax",
              "Collateral",
              "Valuation",
              "Diligence",
              "CompanyOverviewMaterials",
              "BoardReports",
              "OrganizationalChart",
              "IpDocs",
              "ManagementBios",
              "EmployeeDocument",
              "OrganizationalDocument",
              "SbaForm",
              "SbaSupportingDocument",
              "Nda",
              "FinancialUpload",
              "ExecutiveSummary",
              "BorrowingBase",
              "Other"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.RawLeadInterestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactName": {
            "type": "string"
          },
          "bankContactEmail": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean"
          },
          "borrowerInterestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          },
          "rawLeadStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string",
            "nullable": true
          },
          "rawLeadDeclineReason": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "nullable": true
          },
          "hideInterestFromBorrower": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.SearchLendersForRawLeadFormDto": {
        "required": [
          "keywords"
        ],
        "type": "object",
        "properties": {
          "keywords": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.SearchUserAuditReportFormDto": {
        "required": [
          "endDate",
          "page",
          "perPage",
          "startDate"
        ],
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.CreditExplorer.Models.UpdateDealSonarFinancialsFormDto": {
        "required": [
          "financialsAsOfDate"
        ],
        "type": "object",
        "properties": {
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceAmendmentDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "amendmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amendmentDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCompanyDocumentDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "documentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCompanyDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyStatus": {
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "internalCode": {
            "type": "string",
            "nullable": true
          },
          "securityId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyEventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "eventDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventOccurrenceDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyEventGuid": {
            "type": "string",
            "format": "uuid"
          },
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "eventDescription": {
            "type": "string",
            "nullable": true
          },
          "eventDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCovenantTargetDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "financialCovenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time"
          },
          "targetType": {
            "type": "string",
            "nullable": true
          },
          "targetValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetMet": {
            "type": "boolean"
          },
          "incompleteData": {
            "type": "boolean"
          },
          "calculatedValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "facilityPurpose": {
            "type": "string",
            "nullable": true
          },
          "originationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loanAmount": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "outstandingAmountAsOf": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "initialMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "additionalDrawExpiryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "baseRate": {
            "type": "string",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "liborReplacementType": {
            "type": "string",
            "nullable": true
          },
          "closingFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "closingFeeType": {
            "type": "string",
            "nullable": true
          },
          "commitmentFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commitmentFeeType": {
            "type": "string",
            "nullable": true
          },
          "unusedFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unusedFeeType": {
            "type": "string",
            "nullable": true
          },
          "otherFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFeeType": {
            "type": "string",
            "nullable": true
          },
          "otherFeeDescription": {
            "type": "string",
            "nullable": true
          },
          "facilityAmortizationStructure": {
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortizationDetails": {
            "type": "string",
            "nullable": true
          },
          "marketToMarketType": {
            "type": "string",
            "nullable": true
          },
          "marketToMarketDetail": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPenalties": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod1": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod1Details": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod2": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod2Details": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod3": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod3Details": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod4": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod4Details": {
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod5": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod5Details": {
            "type": "string",
            "nullable": true
          },
          "prepaymentThereafter": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentThereafterDetails": {
            "type": "string",
            "nullable": true
          },
          "lenderTransferRestriction": {
            "type": "string",
            "nullable": true
          },
          "isCreditSupport": {
            "type": "boolean",
            "nullable": true
          },
          "isLimitedRecourseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "directPaymentGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEquityFundingCommitment": {
            "type": "boolean",
            "nullable": true
          },
          "isEquityFundingCommitmentCap": {
            "type": "boolean",
            "nullable": true
          },
          "equityFundingCommitmentCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCarryGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCarryGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "carryGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCompletionGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCompletionGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "completionGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isFranchiseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isFranchiseGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "franchiseGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isOtherGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "creditSupportDetails": {
            "type": "string",
            "nullable": true
          },
          "isSecured": {
            "type": "boolean",
            "nullable": true
          },
          "generalCollateralDetails": {
            "type": "string",
            "nullable": true
          },
          "advanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "firstPaymentDate": {
            "type": "string",
            "nullable": true
          },
          "facilityType": {
            "type": "string",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "creditFacilityHedges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customers.Models.CreditFacilityHedgeDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityExtensionOptionDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "criteriaForExercising": {
            "type": "string",
            "nullable": true
          },
          "daysToExtendBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "exercisedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceFinancialCovenantDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "financialCovenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "covenantDescription": {
            "type": "string",
            "nullable": true
          },
          "covenantFormula": {
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "testFrequency": {
            "type": "string",
            "nullable": true
          },
          "covenantValueType": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "breachConsequence": {
            "type": "string",
            "nullable": true
          },
          "otherBreachConsequence": {
            "type": "string",
            "nullable": true
          },
          "testedEntity": {
            "type": "string",
            "nullable": true
          },
          "investorGuarantor": {
            "type": "string",
            "nullable": true
          },
          "isTrackingCovenant": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLineItemTypeDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "statementType": {
            "type": "string",
            "nullable": true
          },
          "parentLineItem": {
            "type": "string",
            "nullable": true
          },
          "lineItemName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementAdditionalBorrowerDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "borrowerDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "sendCovenantReminders": {
            "type": "boolean"
          },
          "loanCovenantsApproved": {
            "type": "boolean"
          },
          "covenantApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "covenantsApprovedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementGuarantorDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "guarantorDescription": {
            "type": "string",
            "nullable": true
          },
          "guarantorAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementHolderDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "holderName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementInvestorGuarantorDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "investorGuarantorDescription": {
            "type": "string",
            "nullable": true
          },
          "investorGuarantorAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementProviderDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "nonfinancialCovenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "covenantDescription": {
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "type": "string",
            "nullable": true
          },
          "testFrequency": {
            "type": "string",
            "nullable": true
          },
          "requiredAnswer": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantResultDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "nonfinancialCovenantGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "reportingDueDate": {
            "type": "string",
            "format": "date-time"
          },
          "resultComplete": {
            "type": "boolean"
          },
          "targetMet": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customer.Models.ComplianceSingleLoanAgreementDto": {
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementName": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "sendCovenantReminders": {
            "type": "boolean"
          },
          "loanCovenantsApproved": {
            "type": "boolean"
          },
          "covenantApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "covenantsApprovedBy": {
            "type": "string",
            "nullable": true
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementProviderDto"
            }
          },
          "additionalBorrowers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementAdditionalBorrowerDto"
            }
          },
          "guarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementGuarantorDto"
            }
          },
          "holders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementHolderDto"
            }
          },
          "investorGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementInvestorGuarantorDto"
            }
          },
          "amendments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceAmendmentDto"
            }
          },
          "creditFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityDto"
            }
          },
          "creditFacilityExtensionOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityExtensionOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customers.Models.CovenantFormDto": {
        "required": [
          "page",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "page": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "covenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "frequency": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "period": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customers.Models.CreditFacilityCreateHedgeDto": {
        "required": [
          "entityName",
          "hedgeType",
          "isHedgeInPlace",
          "isHedgeRequired"
        ],
        "type": "object",
        "properties": {
          "isHedgeRequired": {
            "type": "boolean"
          },
          "isHedgeInPlace": {
            "type": "boolean"
          },
          "hedgeLevel": {
            "type": "number",
            "description": "Required unless the hedge type is Collar Option, where it is ignored.",
            "format": "double",
            "nullable": true
          },
          "hedgeType": {
            "enum": [
              "Cap",
              "Swaption",
              "Swap",
              "CollarOption",
              "Floor"
            ],
            "type": "string"
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "minLength": 1,
            "type": "string"
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of the Create Credit Facility Hedge endpoint. The properties are the ones of the update body, except that\nthe hedge level is only required when the hedge is not a Collar Option (a Collar Option has collar levels instead)."
      },
      "Cerebro.Api.Features.Customers.Models.CreditFacilityCreatedHedgeDto": {
        "required": [
          "entityName",
          "hedgeLevel",
          "hedgeType",
          "isHedgeInPlace",
          "isHedgeRequired"
        ],
        "type": "object",
        "properties": {
          "isHedgeRequired": {
            "type": "boolean"
          },
          "isHedgeInPlace": {
            "type": "boolean"
          },
          "hedgeLevel": {
            "type": "number",
            "format": "double"
          },
          "hedgeType": {
            "enum": [
              "Cap",
              "Swaption",
              "Swap",
              "CollarOption",
              "Floor"
            ],
            "type": "string"
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "minLength": 1,
            "type": "string"
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          },
          "creditFacilityHedgeGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "The hedge as saved by the Create Credit Facility Hedge endpoint, with its identifier."
      },
      "Cerebro.Api.Features.Customers.Models.CreditFacilityFinancialStatementOutstandingBalanceHistoryDto": {
        "type": "object",
        "properties": {
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "statementDate": {
            "type": "string",
            "format": "date-time"
          },
          "statementPeriodDisplay": {
            "type": "string"
          },
          "outstandingBalance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customers.Models.CreditFacilityHedgeDto": {
        "type": "object",
        "properties": {
          "creditFacilityHedgeGuid": {
            "type": "string",
            "description": "The identifier of the hedge, used to update it with the Update Credit Facility Hedge endpoint.",
            "format": "uuid",
            "nullable": true
          },
          "isHedgeRequired": {
            "type": "boolean"
          },
          "isHedgeInPlace": {
            "type": "boolean"
          },
          "hedgeLevel": {
            "type": "string",
            "nullable": true
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hedgeType": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Customers.Models.CreditFacilityUpdateHedgeDto": {
        "required": [
          "entityName",
          "hedgeLevel",
          "hedgeType",
          "isHedgeInPlace",
          "isHedgeRequired"
        ],
        "type": "object",
        "properties": {
          "isHedgeRequired": {
            "type": "boolean"
          },
          "isHedgeInPlace": {
            "type": "boolean"
          },
          "hedgeLevel": {
            "type": "number",
            "format": "double"
          },
          "hedgeType": {
            "enum": [
              "Cap",
              "Swaption",
              "Swap",
              "CollarOption",
              "Floor"
            ],
            "type": "string"
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "minLength": 1,
            "type": "string"
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderDto": {
        "type": "object",
        "properties": {
          "dataRoomUserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealBankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "hasTermSheets": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderSummaryReportDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankName": {
            "type": "string"
          },
          "lastMilestoneCompleted": {
            "type": "string"
          },
          "mostRecentNote": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddDataRoomCallDto": {
        "type": "object",
        "properties": {
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "type": "string"
          },
          "callDetails": {
            "type": "string"
          },
          "callStatus": {
            "enum": [
              "Proposed",
              "Scheduled",
              "Completed",
              "Cancelled"
            ],
            "type": "string"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddDataRoomFolderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddDataRoomNoteDto": {
        "type": "object",
        "properties": {
          "details": {
            "type": "string",
            "nullable": true
          },
          "isBorrowerNote": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestDto": {
        "type": "object",
        "properties": {
          "lenderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "diligenceType": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string"
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddDiligenceRequestLinkDto": {
        "type": "object",
        "properties": {
          "documentGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddMatchedLenderTeasersDto": {
        "type": "object",
        "properties": {
          "tranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "tier1": {
            "enum": [
              "Commercial",
              "NonBank",
              "Both",
              "Other"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AddTeamMemberDto": {
        "required": [
          "canInteractWithTeasers",
          "editUnderwritingCriteria",
          "emailAddress",
          "firstName",
          "lastName",
          "sendInvite",
          "viewUnderwritingCriteria"
        ],
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "sendInvite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AssociateDiligenceDocumentsDto": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.AssociatedTeamMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "allowAccess": {
            "type": "boolean"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "parentDataRoomUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "contactType": {
            "enum": [
              "DataRoomUser",
              "TeamMember"
            ],
            "type": "string"
          },
          "inviteSent": {
            "type": "boolean",
            "description": "Only set by the associate endpoints: null when no invite was requested, otherwise whether the invite email went out.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.BankDealProfileDisplayDto": {
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "doesSeniorCashFlowDeals": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetBasedDeals": {
            "type": "boolean",
            "nullable": true
          },
          "doesJuniorCashFlowDeals": {
            "type": "boolean",
            "nullable": true
          },
          "seniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "targetStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            },
            "nullable": true
          },
          "criteriaLendingStyle": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "targetIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            },
            "nullable": true
          },
          "industryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "readOnly": true
          },
          "assetReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "assetInventory": {
            "type": "boolean",
            "nullable": true
          },
          "assetEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "assetFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "assetMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "assetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "usedAssetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "assetFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "assetIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "assetRoyalty": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetPoFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetFactoring": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mustNotHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "doesInventoryOnly": {
            "type": "boolean",
            "nullable": true
          },
          "accountsReceivableAdvanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advanceRateInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advanceRateNewHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advanceRateUsedHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetUsedFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetIntellectualPropertyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "royaltyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba7aProgram": {
            "type": "boolean",
            "nullable": true
          },
          "sba504Program": {
            "type": "boolean",
            "nullable": true
          },
          "usdaBusinessProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaRuralEnergyProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCommunityProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usda9003Program": {
            "type": "boolean",
            "nullable": true
          },
          "bankNotes": {
            "type": "string",
            "nullable": true
          },
          "generalSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "seniorCashSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "juniorCashSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "assetBasedSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "equitySectionNotes": {
            "type": "string",
            "nullable": true
          },
          "ventureSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "seniorRealEstateSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "juniorRealEstateSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "sbaSectionNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemCollateralDto": {
        "type": "object",
        "properties": {
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "advancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availabilityLimitType": {
            "enum": [
              "None",
              "EligibleAr",
              "MaxInventoryUsage",
              "Limit",
              "EligibleInventory",
              "Custom"
            ],
            "type": "string"
          },
          "otherAvailabilityLimit": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemConditionDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "conditionText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemCovenantDto": {
        "type": "object",
        "properties": {
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "covenantTarget": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "covenantTargetType": {
            "enum": [
              "GreaterThanOrEqual",
              "LessThanOrEqual",
              "GreaterThan",
              "LessThan",
              "Equals"
            ],
            "type": "string"
          },
          "isTargetDefined": {
            "type": "boolean"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string"
          },
          "covenantTargetDisplay": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemDto": {
        "required": [
          "collateral",
          "conditions",
          "covenants",
          "facilities"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemFacilityDto"
            }
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemCovenantDto"
            }
          },
          "collateral": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemCollateralDto"
            }
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemConditionDto"
            }
          },
          "personalGuarantee": {
            "type": "string",
            "nullable": true
          },
          "personalGuarantyDetails": {
            "type": "string",
            "nullable": true
          },
          "warrantRequired": {
            "type": "boolean"
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantAmountTbd": {
            "type": "boolean",
            "nullable": true
          },
          "warrantPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantPriceTbd": {
            "type": "boolean",
            "nullable": true
          },
          "warrantCoverageType": {
            "enum": [
              "None",
              "Full",
              "Loan"
            ],
            "type": "string",
            "nullable": true
          },
          "warrantDetails": {
            "type": "string"
          },
          "governanceType": {
            "enum": [
              "None",
              "ObserverRights",
              "BoardSeats"
            ],
            "type": "string"
          },
          "numberBoardSeats": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "governanceDetails": {
            "type": "string"
          },
          "requiresDeposit": {
            "type": "boolean"
          },
          "yesDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "yesUnusedDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "noDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          },
          "totalLoanAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemFacilityDto": {
        "type": "object",
        "properties": {
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "isTermLoan": {
            "type": "boolean",
            "readOnly": true
          },
          "isRevolver": {
            "type": "boolean",
            "readOnly": true
          },
          "isLease": {
            "type": "boolean",
            "readOnly": true
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "facilityLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "accordionAmount": {
            "type": "number",
            "format": "double"
          },
          "termMonths": {
            "type": "integer",
            "format": "int32"
          },
          "highEndInterestRate": {
            "type": "number",
            "format": "double"
          },
          "rateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string"
          },
          "interestRateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pricingComments": {
            "type": "string",
            "nullable": true
          },
          "amortizationStructure": {
            "enum": [
              "None",
              "StraightLine",
              "Mortgage",
              "Custom"
            ],
            "type": "string"
          },
          "amortizationPeriod": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemFeeDto"
            }
          },
          "showBaseRate": {
            "type": "boolean",
            "readOnly": true
          },
          "hasGracePeriod": {
            "type": "boolean"
          },
          "gracePeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gracePeriodLengthType": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string",
            "nullable": true
          },
          "amortizationPeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ecfSweep": {
            "type": "string"
          },
          "isDemandLine": {
            "type": "boolean"
          },
          "gracePeriodDisplay": {
            "type": "string",
            "readOnly": true
          },
          "isInterestOnlyPeriod": {
            "type": "boolean"
          },
          "interestOnlyPeriodDuration": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string",
            "nullable": true
          },
          "ioPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "interestOnlyPeriodDisplay": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonItemFeeDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "feeAmount": {
            "type": "number",
            "format": "double"
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string"
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string"
          },
          "isPrepaymentFee": {
            "type": "boolean"
          },
          "feeNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonLineItemDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "heading": {
            "type": "boolean"
          },
          "subHeading": {
            "type": "boolean"
          },
          "isSpacing": {
            "type": "boolean"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonLineItemValueDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ComparisonLineItemValueDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "enum": [
              "Text",
              "Currency",
              "Percent"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ConditionTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "conditionTypeName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.ContactBorrowerDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.CopyDocumentDto": {
        "type": "object",
        "properties": {
          "destinationGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.CopyDocumentToFormDto": {
        "required": [
          "fileName",
          "folderGuid"
        ],
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.CreateDataRoomContactDto": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "dealAdmin": {
            "type": "boolean"
          },
          "sendInvite": {
            "type": "boolean"
          },
          "isThirdParty": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "emaillAddress": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.CreateDataRoomTaskDto": {
        "type": "object",
        "properties": {
          "assignedUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "dataRoomFolderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "sendEmail": {
            "type": "boolean"
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomCallDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "callDetails": {
            "type": "string",
            "nullable": true
          },
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "type": "string",
            "nullable": true
          },
          "callStatus": {
            "enum": [
              "Proposed",
              "Scheduled",
              "Completed",
              "Cancelled"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomConfirmationDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "dealCanBeLaunched": {
            "type": "boolean"
          },
          "hasUnsentTeasers": {
            "type": "boolean"
          },
          "unsentTeasers": {
            "type": "integer",
            "format": "int32"
          },
          "teaserListConfirmed": {
            "type": "boolean"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string"
          },
          "isDirectIntroProduct": {
            "type": "boolean"
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomContactDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "companyContactDataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "allowAccess": {
            "type": "boolean"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isDealAdmin": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDiligenceRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "dataRoomUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomUser": {
            "type": "string",
            "nullable": true
          },
          "createdByGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdByUser": {
            "type": "string",
            "nullable": true
          },
          "updatedByUser": {
            "type": "string",
            "nullable": true
          },
          "diligenceType": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string"
          },
          "isWithdrawn": {
            "type": "boolean"
          },
          "folder": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DiligenceRequestFileDto"
            },
            "nullable": true
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DiligenceRequestLinkDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "documentDate": {
            "type": "string",
            "format": "date-time"
          },
          "documentType": {
            "enum": [
              "Financial_Statement",
              "PersonalFinancial",
              "FinancialProjections",
              "Budget",
              "CapTable",
              "AccountAnalysisStatement",
              "BankStatement",
              "CompanyValuation",
              "EquipmentAppraisal",
              "RealEstateAppraisal",
              "AR_Agings",
              "AP_Agings",
              "Loan_Document",
              "DebtSchedule",
              "CorpTax",
              "PrincipalTax",
              "Collateral",
              "Valuation",
              "Diligence",
              "CompanyOverviewMaterials",
              "BoardReports",
              "OrganizationalChart",
              "IpDocs",
              "ManagementBios",
              "EmployeeDocument",
              "OrganizationalDocument",
              "SbaForm",
              "SbaSupportingDocument",
              "Nda",
              "FinancialUpload",
              "ExecutiveSummary",
              "BorrowingBase",
              "Other"
            ],
            "type": "string"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "folderPath": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "parentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "isParentVisibleToAll": {
            "type": "boolean"
          },
          "canDelete": {
            "type": "boolean"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
            }
          },
          "folders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
            }
          },
          "activeDataRoomUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
            }
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "isChildFolder": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "organization": {
            "type": "string"
          },
          "downloadType": {
            "enum": [
              "Direct",
              "DownloadFolder",
              "DownloadAll",
              "CustomDownload"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDocumentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isReady": {
            "type": "boolean"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDownloadRequestDocumentDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "rootDataRoomFolderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "useDataRoomSequencing": {
            "type": "boolean",
            "nullable": true
          },
          "useDataRoomReminders": {
            "type": "boolean",
            "nullable": true
          },
          "outsideDataRoomUrl": {
            "type": "string",
            "nullable": true
          },
          "totalFileSize": {
            "type": "integer",
            "format": "int64"
          },
          "totalMegabytes": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "roomSummaryText": {
            "type": "string",
            "nullable": true
          },
          "hasAcceptedTermSheet": {
            "type": "boolean"
          },
          "teaserFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserFileDto"
            }
          },
          "dealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
          },
          "customAgreementText": {
            "type": "string",
            "nullable": true
          },
          "showFeedbackSummary": {
            "type": "boolean"
          },
          "isEditingFeedbackSummary": {
            "type": "boolean"
          },
          "showActiveSummaryReport": {
            "type": "boolean"
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomEmailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentBy": {
            "type": "string",
            "nullable": true
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomEmailRecipientDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomEmailRecipientDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomLenderStatusBarDto": {
        "required": [
          "directConnectReport",
          "report",
          "roomUser"
        ],
        "type": "object",
        "properties": {
          "roomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomUserDto"
          },
          "report": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto"
          },
          "directConnectReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DirectConnectMilestoneReportDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomLenderSummaryReportDto": {
        "required": [
          "header"
        ],
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportHeaderDto"
          },
          "lenderSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomLoanApplicationDto": {
        "required": [
          "allocation",
          "deal"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "col0": {
            "type": "string",
            "readOnly": true
          },
          "col1": {
            "type": "string",
            "readOnly": true
          },
          "col2": {
            "type": "string",
            "readOnly": true
          },
          "col3": {
            "type": "string",
            "readOnly": true
          },
          "col4": {
            "type": "string",
            "readOnly": true
          },
          "showBorrowerMetrics": {
            "type": "boolean"
          },
          "showAcquisitionMetrics": {
            "type": "boolean"
          },
          "transactionManager": {
            "type": "string"
          },
          "secondaryTransactionManager": {
            "type": "string"
          },
          "lenderRelationsManager": {
            "type": "string"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDto"
          },
          "allocation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealRequestAllocationDto"
          },
          "financialMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto"
            }
          },
          "excludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto"
            }
          },
          "reducedFeeLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealReducedFeeLenderDto"
            }
          },
          "debtSchedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SourceUseDto"
            }
          },
          "uses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.SourceUseDto"
            }
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto"
            }
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomNoteDto": {
        "required": [
          "createdOnFormatted",
          "hasBeenModified",
          "modifiedOnFormatted"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "isBorrowerNote": {
            "type": "boolean"
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "createdByName": {
            "type": "string",
            "nullable": true
          },
          "lenderUserName": {
            "type": "string",
            "nullable": true
          },
          "hasBeenModified": {
            "type": "boolean"
          },
          "createdOnFormatted": {
            "type": "string"
          },
          "modifiedOnFormatted": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomRepositoryDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isRoot": {
            "type": "boolean"
          },
          "folder": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentFolderDto"
          },
          "breadcrumbs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.RepositoryBreadcrumbDto"
            }
          },
          "totalDocuments": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "teasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "teasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "teasersPending": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeleted": {
            "type": "integer",
            "format": "int32"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "totalDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "lastDocumentUploaded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lendersAccessed": {
            "type": "integer",
            "format": "int32"
          },
          "lendersInvited": {
            "type": "integer",
            "format": "int32"
          },
          "lendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "lendersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "lendersPending": {
            "type": "integer",
            "format": "int32"
          },
          "lendersActive": {
            "type": "integer",
            "format": "int32"
          },
          "dataRoomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string"
          },
          "totalDiligenceRequests": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsOpen": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsClosed": {
            "type": "integer",
            "format": "int32"
          },
          "totalLoanApplicationTasks": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksOpen": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksClosed": {
            "type": "integer",
            "format": "int32"
          },
          "launchedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "institutionTeasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "institutionTeasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "institutionTeasersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "institutionTeasersPending": {
            "type": "integer",
            "format": "int32"
          },
          "institutionTeasersDeleted": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersAccessed": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersInvited": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersPending": {
            "type": "integer",
            "format": "int32"
          },
          "institutionLendersActive": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomTeamMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactTeamMemberId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactTeamMemberGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "allowAccess": {
            "type": "boolean"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealStatus": {
            "type": "string",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "affiliateLender": {
            "type": "string",
            "nullable": true
          },
          "bankHasNda": {
            "type": "boolean"
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "tier2Type": {
            "enum": [
              "International",
              "National",
              "Regional",
              "CreditUnion",
              "CommunityBank",
              "Sblc",
              "Sbic",
              "Bdc",
              "DirectLender",
              "VentureLender",
              "AssetBased",
              "FamilyOffice",
              "PrivateEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "scoreLastUpdatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "structureType": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "trancheType": {
            "enum": [
              "Unknown",
              "SeniorCash",
              "VentureDebt",
              "AssetBased",
              "JuniorCash",
              "Sba"
            ],
            "type": "string",
            "nullable": true
          },
          "decisionStatus": {
            "type": "string"
          },
          "lenderDeclineReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "otherDeclineReason": {
            "type": "string",
            "nullable": true
          },
          "reasonDetail": {
            "type": "string",
            "nullable": true
          },
          "reEngagePoint": {
            "type": "string",
            "nullable": true
          },
          "finderFeeAgreements": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reconciliationUrl": {
            "type": "string"
          },
          "isAutomaticTeaser": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "deletedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deletedBy": {
            "type": "string"
          },
          "hasFinderFeeAgreement": {
            "type": "boolean",
            "readOnly": true
          },
          "includeReferralLanguage": {
            "type": "boolean"
          },
          "ignoreAtLaunch": {
            "type": "boolean"
          },
          "receiveTeasersSms": {
            "type": "boolean"
          },
          "hasAccessedDataRoom": {
            "type": "boolean"
          },
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "sendIntroEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserFileDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserPreviewDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserFileDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomUserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "lenderScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderScoreLastUpdatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "tier1": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "accessed": {
            "type": "boolean"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "teamMemberCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasNda": {
            "type": "boolean"
          },
          "optedOut": {
            "type": "boolean"
          },
          "dealBankStatus": {
            "type": "string",
            "nullable": true
          },
          "customNdaFileName": {
            "type": "string",
            "nullable": true
          },
          "noteCount": {
            "type": "integer",
            "format": "int32"
          },
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "readyForCall": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string",
            "nullable": true
          },
          "readyForCallOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "underwriting": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string",
            "nullable": true
          },
          "underwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAssociatedContact": {
            "type": "boolean"
          },
          "hasEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.BankDealProfileDisplayDto"
          },
          "teamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.AssociatedTeamMemberDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DataRoomUserOptOutDto": {
        "type": "object",
        "properties": {
          "reasons": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "otherReason": {
            "type": "string"
          },
          "reasonDetail": {
            "type": "string"
          },
          "reEngagePoint": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DealLaunchStatusDto": {
        "required": [
          "isVerified"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          },
          "isVerified": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DiligenceRequestFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DiligenceRequestLinkDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "document": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDocumentDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DirectConnectLenderInviteDto": {
        "required": [
          "bankName",
          "lenderName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "inviteStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested"
            ],
            "type": "string"
          },
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.DirectConnectMilestoneReportDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactTypeDescription": {
            "type": "string",
            "readOnly": true
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "activeUser": {
            "type": "boolean"
          },
          "roomDeclineReasons": {
            "type": "string"
          },
          "roomDeclineReasonList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "otherRoomDeclineReason": {
            "type": "string"
          },
          "roomReasonDetail": {
            "type": "string"
          },
          "hasRoomOptOutReasons": {
            "type": "boolean",
            "readOnly": true
          },
          "otherDeclineReason": {
            "type": "string"
          },
          "lenderDeclineReasons": {
            "type": "string"
          },
          "lenderDeclineReasonList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentsDownloaded": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "documentsDownloadedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "termSheetSubmitted": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "termSheetSubmittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "underwriting": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "underwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "funded": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealBankStatus": {
            "type": "string"
          },
          "noteCount": {
            "type": "integer",
            "format": "int32"
          },
          "optedOut": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "signedNda": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.LenderInviteViewDto": {
        "required": [
          "dataRoom",
          "invites",
          "teaserPreview"
        ],
        "type": "object",
        "properties": {
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDto"
          },
          "invites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DirectConnectLenderInviteDto"
            }
          },
          "teaserPreview": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserPreviewDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportFormDto": {
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderFeedbackSummaryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "feedbackText": {
            "type": "string",
            "nullable": true
          },
          "nextStepsText": {
            "type": "string",
            "nullable": true
          },
          "isVisibleToBorrower": {
            "type": "boolean"
          },
          "isDoneEditing": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportHeaderDto": {
        "type": "object",
        "properties": {
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "loanPurpose": {
            "type": "string",
            "nullable": true
          },
          "loanType": {
            "type": "string",
            "nullable": true
          },
          "lendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "commercialBanks": {
            "type": "integer",
            "format": "int32"
          },
          "nonBanks": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.LenderSummaryReportItemDto": {
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderFeedbackSummaryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankName": {
            "type": "string"
          },
          "feedbackText": {
            "type": "string"
          },
          "feedbackTextLines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "feedbackTextDisplay": {
            "type": "string",
            "readOnly": true
          },
          "nextStepsText": {
            "type": "string"
          },
          "nextStepsTextLines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "nextStepsTextDisplay": {
            "type": "string",
            "readOnly": true
          },
          "isVisibleToBorrower": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.MilestoneReportDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "tier3ContactTypeDescription": {
            "type": "string",
            "readOnly": true
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "activeUser": {
            "type": "boolean"
          },
          "roomDeclineReasons": {
            "type": "string"
          },
          "roomDeclineReasonList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "otherRoomDeclineReason": {
            "type": "string"
          },
          "roomReasonDetail": {
            "type": "string"
          },
          "hasRoomOptOutReasons": {
            "type": "boolean",
            "readOnly": true
          },
          "teaser": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "teaserDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "otherDeclineReason": {
            "type": "string"
          },
          "lenderDeclineReasons": {
            "type": "string"
          },
          "teaserDeclineReasonList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "accessDeal": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentsDownloaded": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "documentsDownloadedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readyForCall": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "readyForCallOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoomCallGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "callStatus": {
            "enum": [
              "Proposed",
              "Scheduled",
              "Completed",
              "Cancelled"
            ],
            "type": "string",
            "nullable": true
          },
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "type": "string"
          },
          "callDetails": {
            "type": "string"
          },
          "hasCompletedCalls": {
            "type": "boolean"
          },
          "termSheetSubmitted": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "termSheetSubmittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "underwriting": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "underwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "funded": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string"
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealBankStatus": {
            "type": "string"
          },
          "noteCount": {
            "type": "integer",
            "format": "int32"
          },
          "optedOut": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "signedNda": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.MoveMultipleFilesDto": {
        "type": "object",
        "properties": {
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "fileGuid": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.OptOutDto": {
        "type": "object",
        "properties": {
          "reasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.OptOutReasonDto"
            }
          },
          "otherReason": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.OptOutReasonDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.RepositoryBreadcrumbDto": {
        "type": "object",
        "properties": {
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "isRoot": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "navigationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.RepositoryLinkDto": {
        "required": [
          "lenders"
        ],
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "emailBody": {
            "type": "string",
            "nullable": true
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.RepositoryLinkLenderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.RepositoryLinkLenderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SearchPagedActivityLog": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SendDataRoomLinkDto": {
        "type": "object",
        "properties": {
          "toList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          },
          "linkType": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SendInviteDto": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SendInviteModel": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SendLenderEmailDto": {
        "type": "object",
        "properties": {
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SetDirectConnectMilestoneDto": {
        "required": [
          "completed",
          "milestoneType"
        ],
        "type": "object",
        "properties": {
          "milestoneType": {
            "enum": [
              "DocumentsReviewed",
              "TermSheetSubmitted",
              "Underwriting",
              "Funded"
            ],
            "type": "string"
          },
          "completed": {
            "type": "boolean"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.SourceUseDto": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "Source",
              "Use"
            ],
            "type": "string"
          },
          "sourceUseItem": {
            "enum": [
              "None",
              "SellerNote",
              "CashEquity",
              "TangibleEquipment",
              "TangibleRealEstate",
              "NetEquityEquipment",
              "NetEquityRealEstate",
              "Earnout"
            ],
            "type": "string"
          },
          "allocationType": {
            "enum": [
              "Legacy",
              "Acquisition",
              "Refinance",
              "Equipment",
              "RealEstateTermLoan",
              "RealEstateRevolver",
              "WorkingCapital",
              "Inventory",
              "OperatingExpense",
              "OtherFinancingNeeds"
            ],
            "type": "string"
          },
          "sourceName": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.StagedDiligenceRequestUploadDto": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "fullName": {
            "type": "string"
          },
          "diligenceType": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.StagedStagedDiligenceRequestUploadItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.StagedStagedDiligenceRequestUploadItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "categoryName": {
            "type": "string"
          },
          "folderName": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TeamMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isAssociatedContact": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TeaserViewDto": {
        "required": [
          "dataRoom",
          "deal",
          "teaserPreview"
        ],
        "type": "object",
        "properties": {
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDto"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomDto"
          },
          "teaserPreview": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserPreviewDto"
          },
          "isDirectConnectOrIntroDeal": {
            "type": "boolean"
          },
          "teasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.DataRoomTeaserDto"
            }
          },
          "usedTranches": {
            "type": "array",
            "items": {
              "enum": [
                "SeniorCashFlow",
                "JuniorCashFlow",
                "VentureDebt",
                "Equity",
                "SeniorRealEstate",
                "JuniorRealEstate",
                "Sba7aRealEstate",
                "Sba7aNonRealEstate",
                "Sba504Senior",
                "Sba504Debenture",
                "UsdaBiRealEstate",
                "UsdaBiEquipment",
                "UsdaBiWorkingCapital",
                "AssetBasedWorkingCapitalAccountsReceivable",
                "AssetBasedWorkingCapitalInventory",
                "AssetBasedEquipmentMachinery",
                "AssetBasedEquipmentVehicles",
                "AssetBasedEquipmentMarine",
                "AssetBasedEquipmentHelicopters",
                "AssetBasedEquipmentAircraft",
                "AssetBasedIntangibleIntellectualProperty",
                "AssetBasedIntangibleRoyalty",
                "PoFinancing",
                "Factoring",
                "RecurringRevenue",
                "InventoryOnly",
                "LenderFinance",
                "FloorplanFinance",
                "AssetBasedWorkingCapitalArPlusInventory",
                "BridgeLoan",
                "Unknown"
              ],
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetComparisonDto": {
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonItemDto"
            }
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ComparisonLineItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetConditionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "conditionTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "type": {
            "type": "string"
          },
          "conditionText": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetConditionFormDto": {
        "type": "object",
        "properties": {
          "conditionTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "conditionText": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetCovenantFormDto": {
        "type": "object",
        "properties": {
          "financialCovenantTypeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "covenantTargetType": {
            "enum": [
              "GreaterThanOrEqual",
              "LessThanOrEqual",
              "GreaterThan",
              "LessThan",
              "Equals"
            ],
            "type": "string"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string"
          },
          "covenantTarget": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isTargetDefined": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetDto": {
        "required": [
          "revisions"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time"
          },
          "dateReceived": {
            "type": "string",
            "format": "date-time"
          },
          "termsEffectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isIncumbentSolution": {
            "type": "boolean"
          },
          "visibleToBorrower": {
            "type": "boolean"
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "responseStatus": {
            "enum": [
              "Replaced",
              "Pending",
              "Accepted",
              "Rejected"
            ],
            "type": "string"
          },
          "defaultStructureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "revisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "advancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availabilityLimitType": {
            "enum": [
              "None",
              "EligibleAr",
              "MaxInventoryUsage",
              "Limit",
              "EligibleInventory",
              "Custom"
            ],
            "type": "string"
          },
          "otherAvailabilityLimit": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralFormDto": {
        "type": "object",
        "properties": {
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "advancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availabilityLimitType": {
            "enum": [
              "None",
              "EligibleAr",
              "MaxInventoryUsage",
              "Limit",
              "EligibleInventory",
              "Custom"
            ],
            "type": "string"
          },
          "otherAvailabilityLimit": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "itemIdentifier": {
            "type": "string"
          },
          "highEndAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "highEndInterestRate": {
            "type": "number",
            "format": "double"
          },
          "rateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string"
          },
          "interestRateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "baseRateValue": {
            "type": "number",
            "format": "double"
          },
          "highEndMaturity": {
            "type": "number",
            "format": "double"
          },
          "termMonths": {
            "type": "integer",
            "format": "int32"
          },
          "isAccordion": {
            "type": "boolean"
          },
          "accordionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ioPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortizationStructure": {
            "enum": [
              "None",
              "StraightLine",
              "Mortgage",
              "Custom"
            ],
            "type": "string"
          },
          "facilityAmortizationPeriod": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "amortizationPeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ecfSweep": {
            "type": "string",
            "nullable": true
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterest": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterestCompounded": {
            "type": "boolean"
          },
          "pikInterestPeriod": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "pricingComments": {
            "type": "string"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "leaseRateFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseResidual": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exerciseLeaseResidual": {
            "type": "boolean"
          },
          "requiresDeposit": {
            "type": "boolean"
          },
          "depositRefundType": {
            "enum": [
              "None",
              "YesUnusedPortion",
              "Yes",
              "NotRefundable"
            ],
            "type": "string"
          },
          "depositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityFactorType": {
            "enum": [
              "NotApplicable",
              "RateFactor",
              "PaymentAmount"
            ],
            "type": "string"
          },
          "leasePaymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isInterestOnlyPeriod": {
            "type": "boolean",
            "nullable": true
          },
          "interestOnlyPeriodDuration": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string"
          },
          "otherBaseRateName": {
            "type": "string"
          },
          "otherBaseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "feesProvided": {
            "type": "boolean"
          },
          "hasGracePeriod": {
            "type": "boolean"
          },
          "gracePeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gracePeriodLengthType": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string",
            "nullable": true
          },
          "isDemandLine": {
            "type": "boolean"
          },
          "maturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "painPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityPainPointDto"
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeDto"
            }
          },
          "collateral": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityCollateralDto"
            }
          },
          "incompleteData": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeDto": {
        "required": [
          "termSheetFee"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFeeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFeeDto"
          },
          "feeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string"
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string"
          },
          "feeNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFeeFormDto": {
        "type": "object",
        "properties": {
          "termSheetFeeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "feeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string"
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string"
          },
          "feeNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityFormDto": {
        "type": "object",
        "properties": {
          "highEndAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "highEndInterestRate": {
            "type": "number",
            "format": "double"
          },
          "rateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string"
          },
          "interestRateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "baseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termMonths": {
            "type": "integer",
            "format": "int32"
          },
          "highEndMaturity": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "isAccordion": {
            "type": "boolean",
            "readOnly": true
          },
          "accordionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ioPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortizationStructure": {
            "enum": [
              "None",
              "StraightLine",
              "Mortgage",
              "Custom"
            ],
            "type": "string"
          },
          "facilityAmortizationPeriod": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "amortizationPeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ecfSweep": {
            "type": "string",
            "nullable": true
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterest": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterestCompounded": {
            "type": "boolean"
          },
          "pikInterestPeriod": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "leaseRateFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseResidual": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exerciseLeaseResidual": {
            "type": "boolean"
          },
          "requiresDeposit": {
            "type": "boolean"
          },
          "depositRefundType": {
            "enum": [
              "None",
              "YesUnusedPortion",
              "Yes",
              "NotRefundable"
            ],
            "type": "string"
          },
          "depositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityFactorType": {
            "enum": [
              "NotApplicable",
              "RateFactor",
              "PaymentAmount"
            ],
            "type": "string"
          },
          "leasePaymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isInterestOnlyPeriod": {
            "type": "boolean",
            "nullable": true
          },
          "interestOnlyPeriodDuration": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string"
          },
          "otherBaseRateName": {
            "type": "string"
          },
          "otherBaseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "feesProvided": {
            "type": "boolean"
          },
          "pricingComments": {
            "type": "string"
          },
          "hasGracePeriod": {
            "type": "boolean"
          },
          "gracePeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gracePeriodLengthType": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string",
            "nullable": true
          },
          "isDemandLine": {
            "type": "boolean"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateOnlyMaturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityHighLevelDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "itemIdentifier": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dateReceived": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityPainPointDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "maturityDate": {
            "type": "string",
            "format": "date"
          },
          "personalGuarantee": {
            "type": "boolean"
          },
          "personalGuaranteeText": {
            "type": "string"
          },
          "interestRate": {
            "type": "boolean"
          },
          "interestRateText": {
            "type": "string"
          },
          "covenants": {
            "type": "boolean"
          },
          "covenantsText": {
            "type": "string"
          },
          "maturity": {
            "type": "boolean"
          },
          "maturityText": {
            "type": "string"
          },
          "amortization": {
            "type": "boolean"
          },
          "amortizationText": {
            "type": "string"
          },
          "loanAmount": {
            "type": "boolean"
          },
          "loanAmountText": {
            "type": "string"
          },
          "prepaymentFees": {
            "type": "boolean"
          },
          "prepaymentFeesText": {
            "type": "string"
          },
          "advanceRateAgainstCollateral": {
            "type": "boolean"
          },
          "advanceRateAgainstCollateralText": {
            "type": "string"
          },
          "collateralRequirements": {
            "type": "boolean"
          },
          "collateralRequirementsText": {
            "type": "string"
          },
          "otherDetails": {
            "type": "string"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFeeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "feeName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isTermLoan": {
            "type": "boolean"
          },
          "isRevolver": {
            "type": "boolean"
          },
          "isLease": {
            "type": "boolean"
          },
          "excludedFromCostOfCapital": {
            "type": "boolean"
          },
          "isPrepaymentFee": {
            "type": "boolean"
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string"
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialCovenantDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "financialCovenantTypeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "financialCovenantType": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.FinancialCovenantTypeDto"
          },
          "covenantName": {
            "type": "string",
            "nullable": true
          },
          "covenantTarget": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "covenantTargetType": {
            "enum": [
              "GreaterThanOrEqual",
              "LessThanOrEqual",
              "GreaterThan",
              "LessThan",
              "Equals"
            ],
            "type": "string"
          },
          "isTargetDefined": {
            "type": "boolean"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true
          },
          "covenantTargetDisplay": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialReportingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reportingQuality": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string"
          },
          "frequency": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "daysToDeliver": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetReportingFormDto": {
        "type": "object",
        "properties": {
          "reportingQuality": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "daysToDeliver": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFileName": {
            "type": "string"
          },
          "termSheetFileType": {
            "type": "string"
          },
          "isCurrentVersion": {
            "type": "boolean"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "isAccepted": {
            "type": "boolean"
          },
          "borrowerNotes": {
            "type": "string"
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedByName": {
            "type": "string"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          },
          "visibleToBorrower": {
            "type": "boolean"
          },
          "termSheetType": {
            "enum": [
              "TermSheet",
              "IOI",
              "ExistingDebtTerms"
            ],
            "type": "string",
            "nullable": true
          },
          "termSheetGovernanceType": {
            "enum": [
              "None",
              "ObserverRights",
              "BoardSeats"
            ],
            "type": "string",
            "nullable": true
          },
          "numberBoardSeats": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasPersonalGuaranty": {
            "type": "boolean"
          },
          "personalGuaranteeType": {
            "enum": [
              "Personal",
              "Corporate",
              "Both",
              "ValiditySupport",
              "ValiditySupportAndCorporate"
            ],
            "type": "string",
            "nullable": true
          },
          "personalGuarantyDetails": {
            "type": "string"
          },
          "otherTermsNotes": {
            "type": "string"
          },
          "governanceDetails": {
            "type": "string"
          },
          "warrantDetails": {
            "type": "string"
          },
          "warrantRequired": {
            "type": "boolean"
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantAmountTbd": {
            "type": "boolean",
            "nullable": true
          },
          "warrantCoverageType": {
            "enum": [
              "None",
              "Full",
              "Loan"
            ],
            "type": "string",
            "nullable": true
          },
          "warrantPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantPriceTbd": {
            "type": "boolean",
            "nullable": true
          },
          "termsEffectiveDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "dateReceived": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "responseStatus": {
            "enum": [
              "Replaced",
              "Pending",
              "Accepted",
              "Rejected"
            ],
            "type": "string"
          },
          "facilityFactorType": {
            "enum": [
              "NotApplicable",
              "RateFactor",
              "PaymentAmount"
            ],
            "type": "string"
          },
          "costOfCapital": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "covenantsProvided": {
            "type": "boolean"
          },
          "reportingProvided": {
            "type": "boolean"
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "sendExpirationReminder": {
            "type": "boolean",
            "nullable": true
          },
          "facilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityDto"
            }
          },
          "covenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialCovenantDto"
            }
          },
          "reporting": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFinancialReportingDto"
            }
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetConditionDto"
            }
          },
          "incompleteData": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.TermSheetToolResponseDto": {
        "required": [
          "pagingInfo",
          "results"
        ],
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetToolResult"
            }
          },
          "pagingInfo": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PagingInfo"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomCallDto": {
        "type": "object",
        "properties": {
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "type": "string"
          },
          "callDetails": {
            "type": "string"
          },
          "callStatus": {
            "enum": [
              "Proposed",
              "Scheduled",
              "Completed",
              "Cancelled"
            ],
            "type": "string"
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomContactDto": {
        "type": "object",
        "properties": {
          "dealAdmin": {
            "type": "boolean"
          },
          "allowAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDocumentDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "documentType": {
            "enum": [
              "Financial_Statement",
              "PersonalFinancial",
              "FinancialProjections",
              "Budget",
              "CapTable",
              "AccountAnalysisStatement",
              "BankStatement",
              "CompanyValuation",
              "EquipmentAppraisal",
              "RealEstateAppraisal",
              "AR_Agings",
              "AP_Agings",
              "Loan_Document",
              "DebtSchedule",
              "CorpTax",
              "PrincipalTax",
              "Collateral",
              "Valuation",
              "Diligence",
              "CompanyOverviewMaterials",
              "BoardReports",
              "OrganizationalChart",
              "IpDocs",
              "ManagementBios",
              "EmployeeDocument",
              "OrganizationalDocument",
              "SbaForm",
              "SbaSupportingDocument",
              "Nda",
              "FinancialUpload",
              "ExecutiveSummary",
              "BorrowingBase",
              "Other"
            ],
            "type": "string"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "updateAction": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "string"
          },
          "useDataRoomSequencing": {
            "type": "boolean",
            "nullable": true
          },
          "useDataRoomReminders": {
            "type": "boolean",
            "nullable": true
          },
          "outsideDataRoomUrl": {
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "roomSummaryText": {
            "type": "string",
            "nullable": true
          },
          "customAgreementText": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string"
          },
          "transactionManager": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "secondaryTransactionManager": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "showFeedbackSummary": {
            "type": "boolean"
          },
          "isEditingFeedbackSummary": {
            "type": "boolean"
          },
          "showActiveSummaryReport": {
            "type": "boolean"
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomFolderDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "folderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isVisibleToAll": {
            "type": "boolean"
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDataRoomTeaserDto": {
        "type": "object",
        "properties": {
          "isAccepted": {
            "type": "boolean",
            "nullable": true
          },
          "structureType": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "otherReason": {
            "type": "string"
          },
          "reasonDetail": {
            "type": "string"
          },
          "reEngagePoint": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateDirectConnectMilestoneDto": {
        "required": [
          "milestoneType"
        ],
        "type": "object",
        "properties": {
          "milestoneType": {
            "enum": [
              "DocumentsReviewed",
              "TermSheetSubmitted",
              "Underwriting",
              "Funded"
            ],
            "type": "string"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DataRooms.Models.UpdateTermSheetRevisionDto": {
        "type": "object",
        "properties": {
          "isIncumbentSolution": {
            "type": "boolean"
          },
          "visibleToBorrower": {
            "type": "boolean"
          },
          "termSheetType": {
            "enum": [
              "TermSheet",
              "IOI",
              "ExistingDebtTerms"
            ],
            "type": "string",
            "nullable": true
          },
          "hasPersonalGuaranty": {
            "type": "boolean"
          },
          "personalGuaranteeType": {
            "enum": [
              "Personal",
              "Corporate",
              "Both",
              "ValiditySupport",
              "ValiditySupportAndCorporate"
            ],
            "type": "string",
            "nullable": true
          },
          "personalGuarantyDetails": {
            "type": "string"
          },
          "warrantRequired": {
            "type": "boolean"
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantAmountTbd": {
            "type": "boolean",
            "nullable": true
          },
          "warrantCoverageType": {
            "enum": [
              "None",
              "Full",
              "Loan"
            ],
            "type": "string",
            "nullable": true
          },
          "warrantPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isWarrantPriceTbd": {
            "type": "boolean",
            "nullable": true
          },
          "termsEffectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "governanceDetails": {
            "type": "string",
            "nullable": true
          },
          "warrantDetails": {
            "type": "string",
            "nullable": true
          },
          "termSheetGovernanceType": {
            "enum": [
              "None",
              "ObserverRights",
              "BoardSeats"
            ],
            "type": "string",
            "nullable": true
          },
          "numberBoardSeats": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "borrowerNotes": {
            "type": "string"
          },
          "optOutLenders": {
            "type": "boolean"
          },
          "notifyOptedOutLenders": {
            "type": "boolean"
          },
          "notifyLender": {
            "type": "boolean"
          },
          "reportingProvided": {
            "type": "boolean"
          },
          "covenantsProvided": {
            "type": "boolean"
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "sendExpirationReminder": {
            "type": "boolean",
            "nullable": true
          },
          "sourcePage": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentBorrowerContactDto": {
        "type": "object",
        "properties": {
          "companyContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "allowAccess": {
            "type": "boolean",
            "description": "The contact has access to this data room."
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentCallDto": {
        "type": "object",
        "properties": {
          "callGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The `CallStatus` value (Proposed 0, Scheduled 1, Completed 2, Cancelled 3).",
            "format": "int32"
          },
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentDealDto": {
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "dealStatus": {
            "type": "integer",
            "description": "The `DealStatuses` value (Active 40, ActiveClosing 42, TermSheetIssued 45, ...).",
            "format": "int32"
          },
          "isDirectConnect": {
            "type": "boolean",
            "description": "The deal is a DirectConnect (direct intro) deal."
          },
          "enteredMarketOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomStatus": {
            "type": "integer",
            "description": "The `DataRoomStatus` value (Closed 0, Open 1).",
            "format": "int32"
          },
          "owner": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentPersonDto"
          },
          "secondaryOwner": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentPersonDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentDeclineReasonDto": {
        "type": "object",
        "properties": {
          "lenderDeclineReasonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reasonName": {
            "type": "string",
            "nullable": true
          },
          "isUnresponsive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentDiligenceRequestDto": {
        "type": "object",
        "properties": {
          "diligenceRequestGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "type": {
            "type": "integer",
            "description": "The `DiligenceRequestType` value (DocumentRequest 0, Question 1).",
            "format": "int32",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isWithdrawn": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentLenderDto": {
        "type": "object",
        "properties": {
          "dataRoomUserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string",
            "description": "The contact's time zone, else the bank office's; null when neither is known.",
            "nullable": true
          },
          "contactIsActive": {
            "type": "boolean"
          },
          "excludedFromDeals": {
            "type": "boolean",
            "description": "The lender's criteria profile excludes it from deals."
          },
          "allowAccess": {
            "type": "boolean"
          },
          "isOptedOut": {
            "type": "boolean",
            "description": "The lender opted out: access was removed and a reason or detail was recorded (the rule the platform's own lender view uses)."
          },
          "accessed": {
            "type": "boolean"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastStatusUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readyForCall": {
            "type": "integer",
            "description": "The `MilestoneStatusResponse` values (NotAnswered 0, Yes 1, OptOut 2, NotYet 3).",
            "format": "int32",
            "nullable": true
          },
          "readyForCallOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "underwriting": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "underwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "declineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentDeclineReasonDto"
            }
          },
          "otherReason": {
            "type": "string",
            "nullable": true
          },
          "reasonDetail": {
            "type": "string",
            "nullable": true
          },
          "reEngagePoint": {
            "type": "string",
            "nullable": true
          },
          "directReviewedDocuments": {
            "type": "boolean",
            "nullable": true
          },
          "directReviewedDocumentsOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directTermSheetSubmitted": {
            "type": "boolean",
            "nullable": true
          },
          "directTermSheetSubmittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directInUnderwriting": {
            "type": "boolean",
            "nullable": true
          },
          "directInUnderwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directFunded": {
            "type": "boolean",
            "nullable": true
          },
          "directFundedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "teaser": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentTeaserDto"
          },
          "associatedContactCount": {
            "type": "integer",
            "description": "How many other contacts at the same lender are in the room. Nudge limits count the lender, not the contact.",
            "format": "int32"
          },
          "lastEmailSentOn": {
            "type": "string",
            "description": "The latest data room email addressed to this contact or one of its associated contacts, by anyone (staff or agent).",
            "format": "date-time",
            "nullable": true
          },
          "calls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentCallDto"
            }
          },
          "diligenceRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentDiligenceRequestDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "One lender (the top-level data room user; the lender's other contacts are only counted)."
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchDto": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "The address, trimmed and in lower case."
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentMatchedLenderDto"
            },
            "description": "The lenders (one per deal) that have a contact with this address."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchRequestDto": {
        "type": "object",
        "properties": {
          "emailAddresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchesDto": {
        "type": "object",
        "properties": {
          "matches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderMatchDto"
            },
            "description": "One entry per address that belongs to at least one lender in a monitored deal; addresses without a match are left out."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentMatchedLenderDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomUserGuid": {
            "type": "string",
            "description": "The lender's top-level data room user, also for an associated contact.",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentNoteDto": {
        "type": "object",
        "properties": {
          "noteGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "isBorrowerNote": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentPersonDto": {
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentRunNowDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The answer of the \"run now\" route: `queued`, or `willRunAfterCurrentRun` when a run of the deal is already in progress."
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentSnapshotDto": {
        "type": "object",
        "properties": {
          "generatedOn": {
            "type": "string",
            "format": "date-time"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentDealDto"
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentLenderDto"
            }
          },
          "termSheets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Models.DealAgentTermSheetDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "Everything the deal agent reads about one launched deal in a single call: the deal, who owns it and every lender with the facts the agent's\nrules need. These are raw facts from the platform; the agent decides what they mean (for example, there is no stored \"do not contact\" flag)."
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentTeaserDto": {
        "type": "object",
        "properties": {
          "decisionStatus": {
            "type": "integer",
            "description": "The `DealDecisionStatus` value (Pending 0, Accepted 1, Declined 2, Launched 3).",
            "format": "int32"
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ignoreAtLaunch": {
            "type": "boolean",
            "description": "The lender was ignored at launch."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Models.DealAgentTermSheetDto": {
        "type": "object",
        "properties": {
          "termSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "responseStatus": {
            "type": "integer",
            "description": "The `TermSheetResponse` value of the current version (Replaced 0, Pending 1, Accepted 2, Rejected 3); null when there is no current version.",
            "format": "int32",
            "nullable": true
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isIncumbentSolution": {
            "type": "boolean"
          },
          "isExistingDebtTerms": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Tasks.AgentTaskDto": {
        "type": "object",
        "properties": {
          "taskGuid": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "`draftLenderEmail` (a message for the owner to review and send) or `notifyOwner` (a task to acknowledge)."
          },
          "status": {
            "type": "string",
            "description": "`proposed`, `approved`, `rejected`, `sent`, `failed` or `expired`; a proposed task past its expiry is shown as `expired`."
          },
          "risk": {
            "type": "string",
            "description": "`low`, `medium` or `high`: what to look at first."
          },
          "lenderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "description": "For a draft: `to`, `from`, `subject`, `body`, `isReply`, `isNudge` (the owner's edited version when there is one). For a task: `title` and `message`.",
            "nullable": true
          },
          "isEdited": {
            "type": "boolean"
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "evidence": {
            "description": "The emails and quotes the agent based it on.",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "expiresOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "errorText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One draft or task of the deal agent, as the Data Room \"manage deal tasks\" view shows it."
      },
      "Cerebro.Api.Features.DealAgent.Tasks.AgentTaskProblemDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Why a task could not be handled (409, 502). `code` is one of `notAvailable`, `stale`, `lenderUnavailable`, `conflict`, `sendFailed`."
      },
      "Cerebro.Api.Features.DealAgent.Tasks.AgentTasksDto": {
        "type": "object",
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Tasks.ApprovedAgentTaskDto": {
        "type": "object",
        "properties": {
          "task": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealAgent.Tasks.AgentTaskDto"
          },
          "dataRoomEmailGuid": {
            "type": "string",
            "description": "The data room email that records the message that was sent; null for a task that was acknowledged.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Tasks.EditAgentDraftDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealAgent.Tasks.RejectAgentTaskDto": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealPartners.Models.CreateDealPartnerContactDto": {
        "type": "object",
        "properties": {
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "sendInvite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "contactNotes": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "hasLimitedAccess": {
            "type": "boolean"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "dealPartnerName": {
            "type": "string",
            "nullable": true
          },
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.GenerateDealSummary+Response": {
        "type": "object",
        "properties": {
          "outcome": {
            "enum": [
              "Success",
              "Error"
            ],
            "type": "string"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.AddExistingTermFormDto": {
        "required": [
          "addToDebtSchedule",
          "facilityType",
          "hasPersonalGuaranty",
          "highEndAmount",
          "highEndMaturity",
          "refinance"
        ],
        "type": "object",
        "properties": {
          "isIncumbentSolution": {
            "type": "boolean"
          },
          "termSheetType": {
            "enum": [
              "TermSheet",
              "IOI",
              "ExistingDebtTerms"
            ],
            "type": "string",
            "nullable": true
          },
          "dateReceived": {
            "type": "string",
            "format": "date-time"
          },
          "termsEffectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "lender": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.PartialBank"
          },
          "newLender": {
            "type": "boolean"
          },
          "refinance": {
            "type": "boolean"
          },
          "addToDebtSchedule": {
            "type": "boolean"
          },
          "newLenderName": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "hasPersonalGuaranty": {
            "type": "boolean"
          },
          "personalGuaranteeType": {
            "enum": [
              "Personal",
              "Corporate",
              "Both",
              "ValiditySupport",
              "ValiditySupportAndCorporate"
            ],
            "type": "string",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateOnlyMaturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "readOnly": true
          },
          "highEndAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "interestRateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "highEndMaturity": {
            "type": "number",
            "format": "double"
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityFactorType": {
            "enum": [
              "NotApplicable",
              "RateFactor",
              "PaymentAmount"
            ],
            "type": "string",
            "nullable": true
          },
          "leasePaymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseRateFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseResidual": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.AssociateCompanySubscriptionDto": {
        "type": "object",
        "properties": {
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ChangeDealSubscriptionProductDto": {
        "type": "object",
        "properties": {
          "productGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateCompanySubscriptionDto": {
        "type": "object",
        "properties": {
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "guaranteeTerms": {
            "type": "integer",
            "format": "int32"
          },
          "dealsPerYear": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "firstYearSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "additionalDealFee": {
            "type": "number",
            "format": "double"
          },
          "additionalDealFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasIncentivePricing": {
            "type": "boolean"
          },
          "incentiveSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "incentiveExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "minimumSuccessFee": {
            "maximum": 999999999.99,
            "minimum": 0.01,
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "successFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          },
          "includeSbaExclusion": {
            "type": "boolean"
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceBenefitType": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string"
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateDealDebtScheduleDto": {
        "type": "object",
        "properties": {
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "maturityQuarterType": {
            "enum": [
              "Q1",
              "Q2",
              "Q3",
              "Q4"
            ],
            "type": "string",
            "nullable": true
          },
          "maturityYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderType": {
            "enum": [
              "Unknown",
              "Assessment",
              "Bank",
              "NonBank",
              "Sba",
              "Usda",
              "SellerFinancing",
              "Other",
              "Factoring",
              "EquipmentBased"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateDealExcludedLenderDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "isIncumbentLender": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateDealReducedFeeLenderDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateDealRequestAllocationRealEstateDto": {
        "type": "object",
        "properties": {
          "realEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "termLoanNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revolvingDebtNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateRequiredDocumentDto": {
        "type": "object",
        "properties": {
          "taskType": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "isCustomFolder": {
            "type": "boolean"
          },
          "folderGuid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.CreateSuccessFeeInvoiceDto": {
        "type": "object",
        "properties": {
          "amountFunded": {
            "type": "number",
            "format": "double"
          },
          "projectedFundDate": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealDebtScheduleDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "isRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderType": {
            "enum": [
              "Unknown",
              "Assessment",
              "Bank",
              "NonBank",
              "Sba",
              "Usda",
              "SellerFinancing",
              "Other",
              "Factoring",
              "EquipmentBased"
            ],
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "isTermLoan": {
            "type": "boolean",
            "readOnly": true
          },
          "isRevolver": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "requestDescription": {
            "type": "string"
          },
          "pricePriority": {
            "type": "string"
          },
          "covenantPriority": {
            "type": "string"
          },
          "maturityPriority": {
            "type": "string"
          },
          "amortizationPriority": {
            "type": "string"
          },
          "amountPriority": {
            "type": "string"
          },
          "industryExpPriority": {
            "type": "string"
          },
          "localBankPriority": {
            "type": "string"
          },
          "bankExperiencePriority": {
            "type": "string"
          },
          "lowerEquityPriority": {
            "type": "string"
          },
          "avoidPersonalGuaranteePriority": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetReceiptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "investorOwned": {
            "type": "boolean",
            "nullable": true
          },
          "numberEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mostRecentFiscalYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionHaveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "haveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "monthlyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "annuallyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mostRecentTtmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtScheduleJson": {
            "type": "string"
          },
          "performaDebtIncludingFacility": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLoanRequestCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyClarifications": {
            "type": "string"
          },
          "isCompanyCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "financialClarifications": {
            "type": "string"
          },
          "isFinancialCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "lenderClarifications": {
            "type": "string"
          },
          "isLenderCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isQuestionsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyNotes": {
            "type": "string"
          },
          "lenderNotes": {
            "type": "string"
          },
          "requestNotes": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isContactsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "requestedLenderOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDealStructureCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isLockedStructures": {
            "type": "boolean",
            "nullable": true
          },
          "nonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isLegacyView": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "type": "string"
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionInstitutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "companyFinancialNotes": {
            "type": "string"
          },
          "acquisitionFinancialNotes": {
            "type": "string"
          },
          "narrative": {
            "type": "string"
          },
          "principalDetails": {
            "type": "string"
          },
          "additionalInformationRequest": {
            "type": "string"
          },
          "additionalInformationResponse": {
            "type": "string"
          },
          "isDebtSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isSettingsSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "hasExcludedLenders": {
            "type": "boolean",
            "nullable": true
          },
          "hasReducedFeeLenders": {
            "type": "boolean",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "postalCode": {
            "type": "string"
          },
          "borrowerSubmittedLoanApplicationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "enteredMarketOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "acquisitionCurrency": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "acquisitionAddress1": {
            "type": "string"
          },
          "acquisitionCity": {
            "type": "string"
          },
          "acquisitionPostalCode": {
            "type": "string"
          },
          "acquisitionUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionNonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "welcomeEmailSentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "applicationCompleteOverride": {
            "type": "boolean"
          },
          "isExecutiveSummaryComplete": {
            "type": "boolean",
            "nullable": true
          },
          "dealClosedDiscardedReason": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "dealClosedDiscardedNotes": {
            "type": "string"
          },
          "dealPausedReason": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "dealPausedNotes": {
            "type": "string"
          },
          "followUpDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "includeExecutiveSummary": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationDetails": {
            "type": "string"
          },
          "acquisitionCustomerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerConcentrationDetails": {
            "type": "string"
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionPurchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "generateLoanApplicationPdf": {
            "type": "boolean"
          },
          "businessOwnershipNarrative": {
            "type": "string",
            "nullable": true
          },
          "lastMatchingUpdateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastMatchingUpdateString": {
            "type": "string",
            "readOnly": true
          },
          "isPendingMatchingUpdate": {
            "type": "boolean"
          },
          "isLenderFinanceDeal": {
            "type": "boolean"
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean"
          },
          "hasSelectedPreference": {
            "type": "boolean"
          },
          "hasCompanySubscription": {
            "type": "boolean"
          },
          "hasParentCompany": {
            "type": "boolean"
          },
          "isCompanySubscriptionRefinance": {
            "type": "boolean"
          },
          "companySubscriptionRefinanceIncrementalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasGeneratedSuccessFeeInvoice": {
            "type": "boolean"
          },
          "countryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string"
          },
          "acquisitionCountryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "isEditingCreditAnalysis": {
            "type": "boolean"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          },
          "hasLaunched": {
            "type": "boolean",
            "readOnly": true
          },
          "contractSignedOrLater": {
            "type": "boolean",
            "readOnly": true
          },
          "excludedLenderCount": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLenderCount": {
            "type": "integer",
            "format": "int32"
          },
          "showMatchingBlankIssue": {
            "type": "boolean"
          },
          "isClosedDeal": {
            "type": "boolean"
          },
          "financialStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "rawLeadInterestLimitRestricted": {
            "type": "boolean"
          },
          "reasonForUsingCerebro": {
            "type": "string",
            "nullable": true
          },
          "whySelectedTermSheet": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          },
          "dealSummary": {
            "type": "string",
            "nullable": true
          },
          "matchingFailedUpdated": {
            "type": "boolean"
          },
          "matchingProcessStartedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fundingLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderDto"
            }
          },
          "companyType": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyer": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "businessSalesType": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "transactionType": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "companyFinancialStatementType": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionRunwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionBusinessSalesType": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialStatementType": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "naicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.NaicsCodeDto"
          },
          "companyIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
          },
          "acquisitionState": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "acquisitionIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
          },
          "acquisitionNaicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.NaicsCodeDto"
          },
          "salesPerson": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "transactionManager": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "secondaryTransactionManager": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lenderRelationsManager": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealPartner": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
          },
          "dealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DealPartners.Models.DealPartnerContactDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealExcludedLenderDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "isIncumbentLender": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealFinancialMetricDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "analysisMetricType": {
            "enum": [
              "Borrower",
              "Acquisition"
            ],
            "type": "string",
            "nullable": true
          },
          "financialMetricType": {
            "enum": [
              "Mrr",
              "TotalRevenue",
              "NetIncome",
              "Ebitda",
              "Adjustments",
              "AdjustedEbitda",
              "Cash",
              "Marketables",
              "AccountsReceivables",
              "Inventory",
              "Equipment",
              "RealEstate",
              "FurnitureFixture",
              "Vehicles",
              "MarineVessels",
              "Helicopters",
              "FixedWingAircraft",
              "IntellectualProperty",
              "Royalties",
              "NetEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "metricName": {
            "type": "string"
          },
          "twoYearsAgo": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "previousFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trailingTwelveMonths": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "projectedFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "futureYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "profileRealEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "amountDescription": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealFundingLenderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lenderName": {
            "type": "string"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "finderFeeAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Banks.Models.FinderFeeAgreementDto"
          },
          "amountFunded": {
            "type": "number",
            "format": "double"
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealFundingLenderFormDto": {
        "type": "object",
        "properties": {
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "fundingLenderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "finderFeeAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealInvoiceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "invoiceTypeDisplay": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "scheduleDueDate": {
            "type": "string",
            "format": "date"
          },
          "isCompanySubscriptionInvoice": {
            "type": "boolean"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "invoiceFileName": {
            "type": "string"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string"
          },
          "invoiceStage": {
            "enum": [
              "Pending",
              "Approved"
            ],
            "type": "string"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "scheduleStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          },
          "isCreditMemo": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "autoRenewal": {
            "type": "boolean"
          },
          "isBillingActive": {
            "type": "boolean"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "agreementFileName": {
            "type": "string"
          },
          "canDelete": {
            "type": "boolean"
          },
          "isCancelled": {
            "type": "boolean"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementSignedBy": {
            "type": "string"
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessFeeTierDto"
            }
          },
          "paymentTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermDto"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealInvoiceDto"
            }
          },
          "paymentTermsComplete": {
            "type": "boolean"
          },
          "contractFileName": {
            "type": "string",
            "nullable": true
          },
          "feesCredited": {
            "type": "boolean",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "platformAccessPaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "successFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "includeSbaExclusion": {
            "type": "boolean"
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealQuestionAnswerDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "answerValue": {
            "type": "string",
            "description": "Used for Yes/No, Yes/No + Comment, and Multiple Choice",
            "nullable": true
          },
          "answerText": {
            "type": "string",
            "description": "Used for Open-Ended and Yes/No + Comment",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealReducedFeeLenderDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealRequestAllocationDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "debtCapitalForBusiness": {
            "type": "boolean"
          },
          "dealType": {
            "enum": [
              "RealEstate",
              "WorkingCapital",
              "EquipmentLeasing",
              "Acquisitions",
              "GrowthCapital",
              "Recapitalizations",
              "Refinancing",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "ProjectFinance",
              "InvestmentRealEstate"
            ],
            "type": "string",
            "nullable": true
          },
          "percentageBeingPurchased": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasCurrentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "currentOwnershipPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "confirmRollingAmount": {
            "type": "boolean",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerEquityRollAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "provideSellerFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerProvidingCash": {
            "type": "boolean",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasEarnout": {
            "type": "boolean",
            "nullable": true
          },
          "earnoutAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionType": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyer": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "type": "string"
          },
          "refinanceExistingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentDescription": {
            "type": "string"
          },
          "purchaseRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "manageCapitalOrLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "financeExpensesOrGrowth": {
            "type": "boolean",
            "nullable": true
          },
          "hiringDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringProviderAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringExecutiveAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "costsNewLocationsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseholdImprovementAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "furnitureFixturesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "researchDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "softwareTechnologyAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingNeeds": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingDescription": {
            "type": "string"
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "refinanceMaturingSoon": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceLowerRate": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExtendAmortization": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceIncreaseLoanSize": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceNewLender": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceOther": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseInventoryAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean",
            "nullable": true
          },
          "allocationInventoryType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalWorkingCapitalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalHardCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalSoftCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalImproveLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalPurchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalOperatingExpenses": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "hasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "hasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "hasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "hasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "hasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "hasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "hasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "hasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "hasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "hasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "hasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreference": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreference": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "unknownPreference": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryOnlyPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryOnlyPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "loanRequestNotes": {
            "type": "string",
            "nullable": true
          },
          "hasPreference": {
            "type": "boolean"
          },
          "hasSelectedPreference": {
            "type": "boolean"
          },
          "acquisitionTransactionCostsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionWorkingCapitalContributionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalAcquisitionCapitalNeededAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealRequestAllocationRealEstateDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "requestAllocationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "realEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "termLoanNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revolvingDebtNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "dealSize": {
            "type": "number",
            "format": "double"
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double"
          },
          "leverageRatio": {
            "type": "number",
            "format": "double"
          },
          "industryName": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          },
          "industryMatch": {
            "type": "boolean"
          },
          "institutionLendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "dealLaunched": {
            "type": "boolean"
          },
          "isClosedFunded": {
            "type": "boolean"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "daysToTermSheet": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealStatusStatDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DealStatusViewDto": {
        "required": [
          "deal"
        ],
        "type": "object",
        "properties": {
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealDto"
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ProductDto"
          },
          "subscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealProductSubscriptionDto"
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
          },
          "activeLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.ActiveDataRoomLenderDto"
            }
          },
          "activeTermSheets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetDto"
            }
          },
          "companySubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
            }
          },
          "eSignDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentDto"
          },
          "eSignDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentDto"
            }
          },
          "fundingLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealFundingLenderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.DownloadSimilarDealsDto": {
        "required": [
          "includeIndustry",
          "includeOther",
          "includeSummary"
        ],
        "type": "object",
        "properties": {
          "includeSummary": {
            "type": "boolean"
          },
          "includeIndustry": {
            "type": "boolean"
          },
          "includeOther": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.EditLoanApplicationTaskDto": {
        "required": [
          "applicationTaskTitle",
          "removeUploadedFile",
          "summary"
        ],
        "type": "object",
        "properties": {
          "updateType": {
            "enum": [
              "MarkNa",
              "ClearNa",
              "Edit",
              "Upload",
              "Completed"
            ],
            "type": "string"
          },
          "applicationTaskTitle": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "removeUploadedFile": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersDto": {
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customPrompt": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.GenerateSuggestedLendersResponseDto": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "response": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDocumentDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "documentTitle": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "applicationTaskTitle": {
            "type": "string",
            "nullable": true
          },
          "collectionIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notApplicable": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "enum": [
              "Pending",
              "InProgress",
              "Completed",
              "NotApplicable"
            ],
            "type": "string"
          },
          "completedBy": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "loanApplicationDisplayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "statusValue": {
            "type": "integer",
            "format": "int32"
          },
          "templateFileName": {
            "type": "string",
            "nullable": true
          },
          "template": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTemplateDto"
          },
          "hasTemplate": {
            "type": "boolean",
            "readOnly": true
          },
          "isCustomExampleFile": {
            "type": "boolean",
            "readOnly": true
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.LoanApplicationTaskDocumentDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.LoanApplicationTemplateDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "displayOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCustomFolder": {
            "type": "boolean"
          },
          "templateFileName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ProductDto": {
        "type": "object",
        "properties": {
          "productGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productName": {
            "type": "string",
            "nullable": true
          },
          "productCategory": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string"
          },
          "subscriptionPrice": {
            "type": "number",
            "format": "double"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "productStatus": {
            "type": "integer",
            "format": "int32"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "accessFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "cancellationFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "successFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "isContractRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isCompanySubscriptionDealProduct": {
            "type": "boolean"
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isDirectIntroProduct": {
            "type": "boolean",
            "nullable": true
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessFeeTierDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ProductSubscriptionSuccessTierFormDto": {
        "type": "object",
        "properties": {
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentDto": {
        "type": "object",
        "properties": {
          "requiredDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.ReorderRequiredDocumentItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SaveDealQuestionAnswerDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "description": "The Guid representing the DealQuestionAnswer entity in the DB. \nSetting to null indicates that this is a new answer to a question rather than a change in answer to a question.",
            "format": "uuid",
            "nullable": true
          },
          "questionGuid": {
            "type": "string",
            "description": "The Guid representing the CompanyQuestion entity that this is an answer to.",
            "format": "uuid"
          },
          "answerValue": {
            "type": "string",
            "description": "Used for Yes/No, Yes/No + Comment, and Multiple Choice",
            "nullable": true
          },
          "answerText": {
            "type": "string",
            "description": "Used for Open-Ended and Yes/No + Comment",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SimilarDealReportDto": {
        "required": [
          "items",
          "matchedSummary",
          "otherSummary"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.DealSearchItemDto"
            }
          },
          "matchedSummary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SimilarDealSummaryDto"
          },
          "otherSummary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Deals.Models.SimilarDealSummaryDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SimilarDealSummaryDto": {
        "type": "object",
        "properties": {
          "industryMatch": {
            "type": "boolean"
          },
          "dealsLaunched": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetsReceived": {
            "type": "integer",
            "format": "int32"
          },
          "totalClosed": {
            "type": "number",
            "format": "double"
          },
          "totalFundedAmount": {
            "type": "number",
            "format": "double"
          },
          "averageLaunchToTermSheetDays": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "numberOfDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SubscriptionPaymentTermFormDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "numberOfDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.SuccessFeeTierDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateClosedFundedDealDetailsDto": {
        "type": "object",
        "properties": {
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createSuccessFeeInvoice": {
            "type": "boolean"
          },
          "reasonForUsingCerebro": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          },
          "whySelectedTermSheet": {
            "type": "string",
            "nullable": true
          },
          "marketingOutreachOptOut": {
            "type": "boolean"
          },
          "willingReferral": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealDebtScheduleDto": {
        "type": "object",
        "properties": {
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maturityQuarterType": {
            "enum": [
              "Q1",
              "Q2",
              "Q3",
              "Q4"
            ],
            "type": "string",
            "nullable": true
          },
          "maturityYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "isRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderType": {
            "enum": [
              "Unknown",
              "Assessment",
              "Bank",
              "NonBank",
              "Sba",
              "Usda",
              "SellerFinancing",
              "Other",
              "Factoring",
              "EquipmentBased"
            ],
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealDto": {
        "type": "object",
        "properties": {
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "pricePriority": {
            "type": "string",
            "nullable": true
          },
          "covenantPriority": {
            "type": "string",
            "nullable": true
          },
          "maturityPriority": {
            "type": "string",
            "nullable": true
          },
          "amortizationPriority": {
            "type": "string",
            "nullable": true
          },
          "amountPriority": {
            "type": "string",
            "nullable": true
          },
          "industryExpPriority": {
            "type": "string",
            "nullable": true
          },
          "localBankPriority": {
            "type": "string",
            "nullable": true
          },
          "bankExperiencePriority": {
            "type": "string",
            "nullable": true
          },
          "lowerEquityPriority": {
            "type": "string",
            "nullable": true
          },
          "avoidPersonalGuaranteePriority": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetReceiptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "investorOwned": {
            "type": "boolean",
            "nullable": true
          },
          "numberEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mostRecentFiscalYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "haveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHaveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "monthlyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "annuallyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mostRecentTtmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtScheduleJson": {
            "type": "string",
            "nullable": true
          },
          "performaDebtIncludingFacility": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isLoanRequestCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyClarifications": {
            "type": "string",
            "nullable": true
          },
          "isCompanyCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "financialClarifications": {
            "type": "string",
            "nullable": true
          },
          "isFinancialCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "lenderClarifications": {
            "type": "string",
            "nullable": true
          },
          "isLenderCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isQuestionsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyNotes": {
            "type": "string",
            "nullable": true
          },
          "lenderNotes": {
            "type": "string",
            "nullable": true
          },
          "requestNotes": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isContactsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "requestedLenderOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDealStructureCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isLockedStructures": {
            "type": "boolean",
            "nullable": true
          },
          "nonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isLegacyView": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "type": "string",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionInstitutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "companyFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "principalDetails": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationRequest": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationResponse": {
            "type": "string",
            "nullable": true
          },
          "isDebtSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isSettingsSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "hasExcludedLenders": {
            "type": "boolean",
            "nullable": true
          },
          "hasReducedFeeLenders": {
            "type": "boolean",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "borrowerSubmittedLoanApplicationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "enteredMarketOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCurrency": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "acquisitionAddress1": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCity": {
            "type": "string",
            "nullable": true
          },
          "acquisitionPostalCode": {
            "type": "string",
            "nullable": true
          },
          "acquisitionUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionNonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "welcomeEmailSentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "applicationCompleteOverride": {
            "type": "boolean"
          },
          "isExecutiveSummaryComplete": {
            "type": "boolean",
            "nullable": true
          },
          "dealClosedDiscardedReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dealClosedDiscardedNotes": {
            "type": "string",
            "nullable": true
          },
          "includeExecutiveSummary": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCustomerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionPurchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "generateLoanApplicationPdf": {
            "type": "boolean"
          },
          "businessOwnershipNarrative": {
            "type": "string",
            "nullable": true
          },
          "isLenderFinanceDeal": {
            "type": "boolean"
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean"
          },
          "countryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string"
          },
          "acquisitionCountryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "isEditingCreditAnalysis": {
            "type": "boolean"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          },
          "financialStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "companyType": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyer": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "businessSalesType": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "transactionType": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "companyFinancialStatementType": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionRunwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionBusinessSalesType": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialStatementType": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "sourcePage": {
            "type": "string",
            "nullable": true
          },
          "naicsCode": {
            "type": "string",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "companyIndustryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "salesPerson": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "acquisitionNaicsCode": {
            "type": "string",
            "nullable": true
          },
          "acquisitionStateCode": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCountryCode": {
            "type": "string",
            "nullable": true
          },
          "acquisitionIndustryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealPartnerContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealExcludedLenderDto": {
        "type": "object",
        "properties": {
          "isIncumbentLender": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationDto": {
        "type": "object",
        "properties": {
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "debtCapitalForBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "dealType": {
            "enum": [
              "RealEstate",
              "WorkingCapital",
              "EquipmentLeasing",
              "Acquisitions",
              "GrowthCapital",
              "Recapitalizations",
              "Refinancing",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "ProjectFinance",
              "InvestmentRealEstate"
            ],
            "type": "string",
            "nullable": true
          },
          "percentageBeingPurchased": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasCurrentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "currentOwnershipPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "confirmRollingAmount": {
            "type": "boolean",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerEquityRollAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "provideSellerFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerProvidingCash": {
            "type": "boolean",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasEarnout": {
            "type": "boolean",
            "nullable": true
          },
          "earnoutAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionType": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyer": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "type": "string",
            "nullable": true
          },
          "refinanceExistingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentDescription": {
            "type": "string",
            "nullable": true
          },
          "purchaseRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "manageCapitalOrLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "financeExpensesOrGrowth": {
            "type": "boolean",
            "nullable": true
          },
          "hiringDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringProviderAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringExecutiveAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "costsNewLocationsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseholdImprovementAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "furnitureFixturesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "researchDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "softwareTechnologyAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingNeeds": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingDescription": {
            "type": "string",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "refinanceMaturingSoon": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceLowerRate": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExtendAmortization": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceIncreaseLoanSize": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceNewLender": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceOther": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseInventoryAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean",
            "nullable": true
          },
          "allocationInventoryType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalWorkingCapitalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalHardCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalSoftCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalImproveLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalPurchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalOperatingExpenses": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "hasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "hasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "hasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "hasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "hasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "hasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "hasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "hasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "hasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "hasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "hasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreference": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreference": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "unknownPreference": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryOnlyPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryOnlyPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "loanRequestNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionTransactionCostsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionWorkingCapitalContributionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealRequestAllocationRealEstateDto": {
        "type": "object",
        "properties": {
          "realEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "termLoanNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revolvingDebtNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateDealStatusDto": {
        "type": "object",
        "properties": {
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "initialAmountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fundingLenderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "finderFeeAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "optOutLenders": {
            "type": "boolean"
          },
          "notifyOptedOutLenders": {
            "type": "boolean"
          },
          "selectedTermSheets": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "closedDiscardedId": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "closedDiscardedNotes": {
            "type": "string",
            "nullable": true
          },
          "isCompanySubscriptionRefinance": {
            "type": "boolean"
          },
          "companySubscriptionRefinanceIncrementalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pausedReasonId": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "pausedReasonNotes": {
            "type": "string",
            "nullable": true
          },
          "followUpDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reasonForUsingCerebro": {
            "type": "string",
            "nullable": true
          },
          "whySelectedTermSheet": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpdateLoanApplicationTaskDto": {
        "type": "object",
        "properties": {
          "updateType": {
            "enum": [
              "MarkNa",
              "ClearNa",
              "Edit",
              "Upload",
              "Completed"
            ],
            "type": "string"
          },
          "notApplicable": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.Models.UpsertDealFinancialMetricDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "financialMetricType": {
            "enum": [
              "Mrr",
              "TotalRevenue",
              "NetIncome",
              "Ebitda",
              "Adjustments",
              "AdjustedEbitda",
              "Cash",
              "Marketables",
              "AccountsReceivables",
              "Inventory",
              "Equipment",
              "RealEstate",
              "FurnitureFixture",
              "Vehicles",
              "MarineVessels",
              "Helicopters",
              "FixedWingAircraft",
              "IntellectualProperty",
              "Royalties",
              "NetEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "analysisMetricType": {
            "enum": [
              "Borrower",
              "Acquisition"
            ],
            "type": "string",
            "nullable": true
          },
          "twoYearsAgo": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "previousFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trailingTwelveMonths": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "projectedFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "futureYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amountDescription": {
            "type": "string",
            "nullable": true
          },
          "profileRealEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Deals.UpdateDealSuccessStory+Request": {
        "type": "object",
        "properties": {
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "reasonForUsingCerebro": {
            "type": "string",
            "nullable": true
          },
          "whySelectedTermSheet": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          },
          "dealSummary": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.DebtCapacityCalculators.DebtCapacityCalculatorResults": {
        "type": "object",
        "properties": {
          "debtCapacityCalculatorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "debtCapacity": {
            "type": "number",
            "format": "double"
          },
          "assetCapacity": {
            "type": "number",
            "format": "double"
          },
          "ventureDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "annualRevenue": {
            "type": "number",
            "format": "double"
          },
          "negativeEbitdaIssue": {
            "type": "boolean"
          },
          "allowRequestForHelp": {
            "type": "boolean"
          },
          "numberOfLenders": {
            "type": "integer",
            "format": "int32"
          },
          "help": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DebtCapacityCalculators.DebtCapacityHelpState"
          }
        },
        "additionalProperties": false,
        "description": "The results of a debt capacity calculation. NO personal data (no name, e-mail, phone or company): the guid alone retrieves these.\nThe first five properties are the original contract of POST api/DebtCapacityCalculators and must not change; the others were added."
      },
      "Cerebro.Api.Features.DebtCapacityCalculators.DebtCapacityHelpState": {
        "type": "object",
        "properties": {
          "requested": {
            "type": "boolean"
          },
          "hasCompanyName": {
            "type": "boolean"
          },
          "hasPhoneNumber": {
            "type": "boolean"
          },
          "hasCompanyType": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "What the \"request a call\" panel needs to know: whether a call was requested and which values are already stored (so the page only asks for the missing ones)."
      },
      "Cerebro.Api.Features.DebtCapacityCalculators.RequestDebtCapacityHelpBody": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "companyType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The body of POST api/DebtCapacityCalculators/RequestHelp. The id is a string so a malformed one is the generic 404, not a binding error."
      },
      "Cerebro.Api.Features.EmailResponses.Models.AcquisitionStageOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionDecisionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "choice": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E7 body. `choice` is \"connect\" or \"decline\" and required (missing is a 400, never a decline)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionPageDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.RawLeadRequestSummaryDto"
          },
          "preselectedChoice": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E6: what the borrower sees before answering a lender's connection request. The link's choice is never sent here."
      },
      "Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionResultDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "E7/E8 result and the 409 body."
      },
      "Cerebro.Api.Features.EmailResponses.Models.BorrowerConnectionStatusDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E8 body. `status` is the numeric RawLeadStatus; `reason` the numeric RawLeadDeclineReason (optional)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionsDto": {
        "type": "object",
        "properties": {
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionDto"
            }
          },
          "tier3ContactTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaTier3OptionDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionDto"
            }
          },
          "lendingStyles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaPostalCodeDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "radiusMiles": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationFormDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "tranche": {
            "type": "string"
          },
          "continueUrl": {
            "type": "string"
          },
          "lenderCriteriaUrl": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "values": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaValuesDto"
          },
          "postalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaPostalCodeDto"
            }
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.CriteriaOptionsDto"
          }
        },
        "additionalProperties": false,
        "description": "E4 answer when something is at odds. `continueUrl` is the lender app (employees: the data room)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSaveDto": {
        "type": "object",
        "properties": {
          "teaserGuid": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E5 body. There is deliberately NO profile identifier: the profile is always the teaser's. `values` is a bag so that a key that is\nabsent (leave as is) differs from an explicit null (clear). Extra properties in the JSON are ignored."
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaReconciliationSavedDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaTier3OptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "help": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.CriteriaValuesDto": {
        "type": "object",
        "properties": {
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumYearsOperating": {
            "type": "integer",
            "format": "int32"
          },
          "mustHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "mustNotHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "personalGuaranteeRequired": {
            "type": "boolean",
            "nullable": true
          },
          "mustHavePositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "internationalLending": {
            "type": "boolean",
            "nullable": true
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "tier3ContactTypes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "criteriaLendingStyle": {
            "type": "integer",
            "format": "int32"
          },
          "excludedIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          },
          "specialtyIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false,
        "description": "The current values of the profile (E4). Tranche specific values are null when the teaser's tranche has no such column."
      },
      "Cerebro.Api.Features.EmailResponses.Models.DeclineReasonOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "isOther": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingConflictDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "E14 409 body: lenders have shown interest since the page was loaded; nothing was written."
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingFormDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "requestAmount": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "useOfProceeds": {
            "type": "integer",
            "format": "int32"
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The editable values (the legacy form fields). No guids, no lender data, no interest counts, no contact e-mail or phone."
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingLimitsDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "integer",
            "format": "int32"
          },
          "companyOverview": {
            "type": "integer",
            "format": "int32"
          },
          "jobTitle": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingOptionsDto": {
        "type": "object",
        "properties": {
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "useOfProceeds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.UseOfProceedsCategoryDto"
            }
          },
          "acquisitionStages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.AcquisitionStageOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "requestAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "useOfProceeds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E14 body: exactly the legacy form fields, nothing else is bound (unknown JSON fields are ignored). Every value is nullable so a\nmissing one is a 400 on its key instead of a silent zero."
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestPageDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          },
          "form": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingFormDto"
          },
          "options": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingOptionsDto"
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.EditFinancingLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "E13. `Form`, `Options` and `Limits` are null when the state is `loginRequired`."
      },
      "Cerebro.Api.Features.EmailResponses.Models.EditFinancingRequestSavedDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          }
        },
        "additionalProperties": false,
        "description": "E14 success."
      },
      "Cerebro.Api.Features.EmailResponses.Models.LenderDealSummaryDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.LenderInviteDecisionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "choice": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.LenderInvitePageDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "dealSummary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.LenderDealSummaryDto"
          },
          "preselectedChoice": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E9: what the lender sees before answering a DirectConnect marketplace invite."
      },
      "Cerebro.Api.Features.EmailResponses.Models.LenderInviteResultDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E10 result and the 409 body."
      },
      "Cerebro.Api.Features.EmailResponses.Models.PreMarketConflictDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "E12 409 body: a different answer was recorded earlier."
      },
      "Cerebro.Api.Features.EmailResponses.Models.PreMarketDealDecisionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "choice": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E12 body. `choice` is \"interested\" or \"notInterested\" and required (missing is a 400, never a pass)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.PreMarketDealPageDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          },
          "preselectedResponse": {
            "type": "string",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.PreMarketDealSummaryDto"
          }
        },
        "additionalProperties": false,
        "description": "E11. `PreselectedResponse` is always null: the app maps `?response=True|False` itself."
      },
      "Cerebro.Api.Features.EmailResponses.Models.PreMarketDealResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string"
          },
          "choice": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          }
        },
        "additionalProperties": false,
        "description": "E12 result. `outcome` \"dealClosed\" is a 200 without a write (`choice` then echoes the posted one)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.PreMarketDealSummaryDto": {
        "type": "object",
        "properties": {
          "dealNumber": {
            "type": "integer",
            "format": "int64"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "requestType": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetFundingDate": {
            "type": "string",
            "description": "yyyy-MM-dd.",
            "nullable": true
          },
          "isAsap": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "What the e-mail itself shows (same fields as `SendPreMarketDealTrackingEmail`). No company name, no bank contact, no loan\napplication, no questions, no guids."
      },
      "Cerebro.Api.Features.EmailResponses.Models.RawLeadRequestSummaryDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "The requested amount of the deal.",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "description": "yyyy-MM-dd."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserConflictDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "E3 409: the teaser stopped being answerable (the other answer was recorded, or the deal closed). The page reloads E1."
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "bankContactGuid": {
            "type": "string",
            "nullable": true
          },
          "t": {
            "type": "string",
            "nullable": true
          },
          "isAccepted": {
            "type": "boolean"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "otherReason": {
            "type": "string",
            "nullable": true
          },
          "reasonDetail": {
            "type": "string",
            "nullable": true
          },
          "reEngagePoint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "E3 body. Ids arrive as text so a malformed guid is the same generic 404 as an unknown one (never a 400)."
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserDecisionResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string"
          },
          "thankYou": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          },
          "reconciliation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserReconciliationDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLimitsDto": {
        "type": "object",
        "properties": {
          "otherReason": {
            "type": "integer",
            "format": "int32"
          },
          "reasonDetail": {
            "type": "integer",
            "format": "int32"
          },
          "reEngagePoint": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationAllocationDto": {
        "type": "object",
        "properties": {
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "dealType": {
            "enum": [
              "RealEstate",
              "WorkingCapital",
              "EquipmentLeasing",
              "Acquisitions",
              "GrowthCapital",
              "Recapitalizations",
              "Refinancing",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "ProjectFinance",
              "InvestmentRealEstate"
            ],
            "type": "string",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerEquityRollAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "earnoutAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalForAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyer": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "transactionType": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "type": "string",
            "nullable": true
          },
          "totalAcquisitionCapitalNeededAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean",
            "nullable": true
          },
          "totalWorkingCapitalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalImproveLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalPurchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalOperatingExpenses": {
            "type": "boolean",
            "nullable": true
          },
          "financeExpensesOrGrowth": {
            "type": "boolean",
            "nullable": true
          },
          "totalGrowthCapitalHardCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalSoftCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "equipmentDescription": {
            "type": "string",
            "nullable": true
          },
          "purchaseRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExistingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceMaturingSoon": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceLowerRate": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExtendAmortization": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceIncreaseLoanSize": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceNewLender": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceOther": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingNeeds": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDealDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserNamedLookupDto"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserNamedLookupDto"
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "haveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserNamedLookupDto"
          },
          "acquisitionState": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserNamedLookupDto"
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionNonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionInstitutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionHaveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "principalDetails": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDebtDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "isRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderType": {
            "enum": [
              "Unknown",
              "Assessment",
              "Bank",
              "NonBank",
              "Sba",
              "Usda",
              "SellerFinancing",
              "Other",
              "Factoring",
              "EquipmentBased"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDto": {
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "col0": {
            "type": "string"
          },
          "col1": {
            "type": "string"
          },
          "col2": {
            "type": "string"
          },
          "col3": {
            "type": "string"
          },
          "col4": {
            "type": "string"
          },
          "showBorrowerMetrics": {
            "type": "boolean"
          },
          "showAcquisitionMetrics": {
            "type": "boolean"
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDealDto"
          },
          "allocation": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationAllocationDto"
          },
          "financialMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationMetricDto"
            }
          },
          "debtSchedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationDebtDto"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationSourceUseDto"
            }
          },
          "uses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationSourceUseDto"
            }
          }
        },
        "additionalProperties": false,
        "description": "E2: the loan application an ANONYMOUS lender may read before accepting a teaser. This is an ALLOW-LIST: a separate type that\nholds only what the platform-app LoanApplicationDisplay renders (property names, nesting and enum/date formats are the same as\nCerebro.Api.Features.DataRooms.Models.DataRoomLoanApplicationDto, so the page is unchanged). Everything else of the deal (internal notes, HubSpot id,\nother lenders, deal partner, fees, manager names, tasks) has no property here, so a new field of the full DTO can never leak."
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationMetricDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "analysisMetricType": {
            "enum": [
              "Borrower",
              "Acquisition"
            ],
            "type": "string",
            "nullable": true
          },
          "financialMetricType": {
            "enum": [
              "Mrr",
              "TotalRevenue",
              "NetIncome",
              "Ebitda",
              "Adjustments",
              "AdjustedEbitda",
              "Cash",
              "Marketables",
              "AccountsReceivables",
              "Inventory",
              "Equipment",
              "RealEstate",
              "FurnitureFixture",
              "Vehicles",
              "MarineVessels",
              "Helicopters",
              "FixedWingAircraft",
              "IntellectualProperty",
              "Royalties",
              "NetEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "metricName": {
            "type": "string",
            "nullable": true
          },
          "twoYearsAgo": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "previousFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trailingTwelveMonths": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "projectedFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "futureYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amountDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserLoanApplicationSourceUseDto": {
        "type": "object",
        "properties": {
          "sourceName": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserNamedLookupDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserReconciliationDto": {
        "type": "object",
        "properties": {
          "teaserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "t": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.TeaserResponsePageDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "next": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Auth.Models.NextStep"
          },
          "teaserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isDirectDeal": {
            "type": "boolean"
          },
          "dealName": {
            "type": "string"
          },
          "structureTranche": {
            "type": "string",
            "nullable": true
          },
          "includeReferralLanguage": {
            "type": "boolean"
          },
          "lenderCriteriaUrl": {
            "type": "string"
          },
          "preselectedResponse": {
            "type": "string",
            "description": "\"interested\" or \"notInterested\"; only for state pending.",
            "nullable": true
          },
          "declineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.DeclineReasonOptionDto"
            },
            "description": "Only for state pending.",
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.TeaserLimitsDto"
          }
        },
        "additionalProperties": false,
        "description": "E1: what the lender sees before answering a data room teaser. Nulls are omitted by the Api's JSON options."
      },
      "Cerebro.Api.Features.EmailResponses.Models.UseOfProceedsCategoryDto": {
        "type": "object",
        "properties": {
          "category": {
            "type": "integer",
            "description": "The UseOfProceeds enum value of the category (also the stored value for a category without details).",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.EmailResponses.Models.UseOfProceedsDetailDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.EmailResponses.Models.UseOfProceedsDetailDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.AISourceDocumentItemDto": {
        "required": [
          "fileName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string"
          },
          "documentType": {
            "enum": [
              "ProductAndPlatformDocumentation",
              "SalesAndMarketingReferences",
              "CustomerAndDealReference",
              "TechnicalAndOperationalResources",
              "AdministrativeAndPolicyDocuments",
              "Miscellaneous"
            ],
            "type": "string"
          },
          "documentDescription": {
            "type": "string",
            "nullable": true
          },
          "internalUseOnly": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "downloadUrl": {
            "type": "string",
            "description": "A short lived link to download the document.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ActionTakenFormDto": {
        "required": [
          "actionTakenDate",
          "actionTakenNotes"
        ],
        "type": "object",
        "properties": {
          "actionTakenDate": {
            "type": "string",
            "format": "date-time"
          },
          "actionTakenType": {
            "enum": [
              "CalledXLeftVoicemail",
              "CalledXSpokeToContact",
              "EmailedContact",
              "NoneXNewInfo",
              "DeclinedDataRoomTeaser",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "actionTakenNotes": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.AddDealPartnerFormDto": {
        "required": [
          "effectiveOn",
          "isActive",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "expirationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.AddTeamMemberFormDto": {
        "required": [
          "bankContactId",
          "canInteractWithTeasers",
          "currency",
          "editUnderwritingCriteria",
          "emailAddress",
          "firstName",
          "lastName",
          "timeZoneId",
          "viewUnderwritingCriteria"
        ],
        "type": "object",
        "properties": {
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorDto": {
        "required": [
          "message",
          "referrer",
          "route",
          "statusName",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationErrorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "Open",
              "AnalysisInProgress",
              "Duplicate",
              "NoIssue",
              "BugEntered"
            ],
            "type": "string"
          },
          "statusName": {
            "type": "string"
          },
          "ownerName": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "affectedUserName": {
            "type": "string",
            "nullable": true
          },
          "route": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastOccurredOn": {
            "type": "string",
            "format": "date-time"
          },
          "statusNotes": {
            "type": "string",
            "nullable": true
          },
          "ownerUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "referrer": {
            "type": "string"
          },
          "parameters": {
            "type": "string",
            "nullable": true
          },
          "stackTrace": {
            "type": "string",
            "nullable": true
          },
          "innerExceptionJson": {
            "type": "string",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedByName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorFormDto": {
        "required": [
          "ownerUserGuid",
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "Open",
              "AnalysisInProgress",
              "Duplicate",
              "NoIssue",
              "BugEntered"
            ],
            "type": "string"
          },
          "ownerUserGuid": {
            "type": "string",
            "description": "Every managed error needs an owner, like the legacy form.",
            "format": "uuid"
          },
          "statusNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorOwnerDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorSearchItemDto": {
        "required": [
          "message",
          "route",
          "statusName",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationErrorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "Open",
              "AnalysisInProgress",
              "Duplicate",
              "NoIssue",
              "BugEntered"
            ],
            "type": "string"
          },
          "statusName": {
            "type": "string"
          },
          "ownerName": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "affectedUserName": {
            "type": "string",
            "nullable": true
          },
          "route": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastOccurredOn": {
            "type": "string",
            "format": "date-time"
          },
          "statusNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportFiltersDto": {
        "type": "object",
        "properties": {
          "statuses": {
            "type": "array",
            "items": {
              "enum": [
                "Open",
                "AnalysisInProgress",
                "Duplicate",
                "NoIssue",
                "BugEntered"
              ],
              "type": "string"
            },
            "description": "Empty keeps the legacy default of the open and analysis in progress errors.",
            "nullable": true
          },
          "ownerUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "lastOnOrAfter": {
            "type": "string",
            "description": "Errors that last occurred on or after this date.",
            "format": "date",
            "nullable": true
          },
          "lastOnOrBefore": {
            "type": "string",
            "description": "Errors that last occurred on or before this date.",
            "format": "date",
            "nullable": true
          },
          "statusesOrDefault": {
            "type": "array",
            "items": {
              "enum": [
                "Open",
                "AnalysisInProgress",
                "Duplicate",
                "NoIssue",
                "BugEntered"
              ],
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationErrorsReportParamsDto": {
        "type": "object",
        "properties": {
          "statuses": {
            "type": "array",
            "items": {
              "enum": [
                "Open",
                "AnalysisInProgress",
                "Duplicate",
                "NoIssue",
                "BugEntered"
              ],
              "type": "string"
            },
            "description": "Empty keeps the legacy default of the open and analysis in progress errors.",
            "nullable": true
          },
          "ownerUserGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "lastOnOrAfter": {
            "type": "string",
            "description": "Errors that last occurred on or after this date.",
            "format": "date",
            "nullable": true
          },
          "lastOnOrBefore": {
            "type": "string",
            "description": "Errors that last occurred on or before this date.",
            "format": "date",
            "nullable": true
          },
          "statusesOrDefault": {
            "type": "array",
            "items": {
              "enum": [
                "Open",
                "AnalysisInProgress",
                "Duplicate",
                "NoIssue",
                "BugEntered"
              ],
              "type": "string"
            },
            "readOnly": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ApplicationSettingFormDto": {
        "required": [
          "valueType"
        ],
        "type": "object",
        "properties": {
          "parameterName": {
            "maxLength": 150,
            "type": "string",
            "description": "Only used when creating a setting, the name of an existing setting cannot be changed.",
            "nullable": true
          },
          "valueType": {
            "enum": [
              "String",
              "Boolean",
              "DateTime",
              "Integer"
            ],
            "type": "string"
          },
          "parameterValue": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankAccountFormDto": {
        "required": [
          "beneficiary",
          "beneficiaryAccountNumber",
          "isActive",
          "isDefault",
          "receivingBank"
        ],
        "type": "object",
        "properties": {
          "receivingBank": {
            "maxLength": 128,
            "type": "string"
          },
          "bankAba": {
            "maxLength": 64,
            "type": "string",
            "nullable": true
          },
          "beneficiary": {
            "maxLength": 128,
            "type": "string"
          },
          "beneficiaryAccountNumber": {
            "maxLength": 32,
            "type": "string"
          },
          "swiftBic": {
            "maxLength": 32,
            "type": "string",
            "nullable": true
          },
          "noteText": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactDealSummaryItemDto": {
        "required": [
          "dealOptOutReasons",
          "teaserDeclineReasons"
        ],
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "statusType": {
            "enum": [
              "DataRoomUser",
              "Teaser"
            ],
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "teaserDecisionStatus": {
            "enum": [
              "Pending",
              "Accepted",
              "Declined",
              "Launched"
            ],
            "type": "string",
            "nullable": true
          },
          "teaserSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "teaserDecisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "teaserResponseTime": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "teaserDeclineReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dataRoomTeaserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTeaserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomUserStatus": {
            "type": "string",
            "nullable": true
          },
          "dataRoomLastAccessed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealOptOutReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "dataRoomUserCreatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactDealSummarySearchParamsDto": {
        "required": [
          "dealStatus",
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "teaserStatus"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "teaserStatus": {
            "type": "integer",
            "format": "int32"
          },
          "dataRoomStatus": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactDirectConnectFilterPage": {
        "required": [
          "filter",
          "geographies",
          "industries",
          "profileDetails"
        ],
        "type": "object",
        "properties": {
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            }
          },
          "geographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "filter": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto"
          },
          "profileDetails": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.BankDealProfiles.Models.ViewDealCriteriaProfileFilteresDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactFormDto": {
        "required": [
          "bankContactRole",
          "currency",
          "dataRoomDayOfCallReminder",
          "dataRoomDocumentAddedReminder",
          "dataRoomDocumentDailyReminder",
          "dataRoomDocumentWeeklyReminder",
          "dataRoomQuestionAnsweredReminder",
          "dataRoomSevenDayCallReminder",
          "dataRoomTaskAssignedReminder",
          "dataRoomTaskDailyUpdateReminder",
          "dataRoomTaskWeeklyUpdateReminder",
          "dataRoomTermSheetResponseReminder",
          "editDealCriteria",
          "emailAddress",
          "firstName",
          "hasEnterpriseLoanWatchSubscription",
          "isActive",
          "isBillingContact",
          "isLockedOut",
          "isUserAdministrator",
          "lastName",
          "missingBankProfile",
          "referralRewardsInd",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "missingBankProfile": {
            "type": "boolean"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankOfficeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "editDealCriteria": {
            "type": "boolean"
          },
          "referralRewardsInd": {
            "type": "boolean"
          },
          "bankContactRole": {
            "enum": [
              "CreditOfficer",
              "TreasuryManagementOfficer",
              "BankAssociate",
              "BankManagement",
              "RelationshipManager",
              "Other"
            ],
            "type": "string"
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentAddedReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentDailyReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentWeeklyReminder": {
            "type": "boolean"
          },
          "dataRoomSevenDayCallReminder": {
            "type": "boolean"
          },
          "dataRoomDayOfCallReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionAnsweredReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "hasEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          },
          "rawLeadInterestLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "invitesSent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactLenderScorePageDto": {
        "required": [
          "scores"
        ],
        "type": "object",
        "properties": {
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "lenderScoreFlagText": {
            "type": "string",
            "nullable": true
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "scores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderScoreDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactLookupDto": {
        "required": [
          "contactName"
        ],
        "type": "object",
        "properties": {
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "contactName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactSearchItemDto": {
        "required": [
          "contactName",
          "emailAddress",
          "lastLoginOn",
          "tier3ContactTypeList"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "lastLoginOn": {
            "type": "string"
          },
          "teamMemberCount": {
            "type": "integer",
            "format": "int32"
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "tier3ContactTypeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "searchTerm": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactSubscriptionSearchItemDto": {
        "required": [
          "contactName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          },
          "facilityViewCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealOpportunityCount": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionStatus": {
            "enum": [
              "Active",
              "Canceled",
              "FailedPayment",
              "PendingCancellation",
              "PendingPayment"
            ],
            "type": "string"
          },
          "lastLoginDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numberLogins": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactTeamMemberDto": {
        "required": [
          "canInteractWithTeasers",
          "currency",
          "editUnderwritingCriteria",
          "emailAddress",
          "firstName",
          "isActive",
          "isLockedOut",
          "lastName",
          "timeZoneId",
          "viewUnderwritingCriteria"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchItemDto": {
        "required": [
          "bankContactName",
          "contactName",
          "emailAddress",
          "lastLoginOn"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "bankContactName": {
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "lastLoginOn": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "searchTerm": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankDealSearchItemDto": {
        "required": [
          "bankContactFirstName",
          "bankContactLastName",
          "lenderStatus"
        ],
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "transactionManagerFirstName": {
            "type": "string",
            "nullable": true
          },
          "transactionManagerLastName": {
            "type": "string",
            "nullable": true
          },
          "termSheetCount": {
            "type": "integer",
            "format": "int32"
          },
          "lenderStatus": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "bankContactLastName": {
            "type": "string"
          },
          "bankContactFirstName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankDealSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankContact": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lenderStatus": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankDocumentSearchParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankDto": {
        "required": [
          "bankName",
          "currency",
          "noteParagraphs",
          "ssoDomain",
          "tier1BankType",
          "tier2BankType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "tier2BankType": {
            "enum": [
              "International",
              "National",
              "Regional",
              "CreditUnion",
              "CommunityBank",
              "Sblc",
              "Sbic",
              "Bdc",
              "DirectLender",
              "VentureLender",
              "AssetBased",
              "FamilyOffice",
              "PrivateEquity"
            ],
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "bankAssets": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "affiliateLender": {
            "type": "string",
            "nullable": true
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "emailDomain": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "interestRateRange": {
            "type": "string",
            "nullable": true
          },
          "loanSizeRange": {
            "type": "string",
            "nullable": true
          },
          "commonProducts": {
            "type": "string",
            "nullable": true
          },
          "overview": {
            "type": "string",
            "nullable": true
          },
          "bankSize": {
            "enum": [
              "Top5LargestUSBank",
              "Top10LargestUSBank",
              "Top25LargestUSBank",
              "SuperRegionalBank",
              "RegionalBank",
              "CommunityBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "type": "string",
            "nullable": true
          },
          "overviewUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "overviewManuallyUpdated": {
            "type": "boolean"
          },
          "bankStatus": {
            "enum": [
              "Active",
              "Expired",
              "Pending"
            ],
            "type": "string"
          },
          "isMediumHighConfidence": {
            "type": "boolean",
            "readOnly": true
          },
          "noteParagraphs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ssoDomain": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankFormHelperDto": {
        "required": [
          "anyFinderFeeAgreementsNotAppliesAll",
          "bankContacts",
          "bankOffices",
          "countries",
          "currencies",
          "defaultCountryId",
          "defaultInvitesSent",
          "hasEnterpriseLoanWatchSubscription",
          "prefixes",
          "states",
          "suffixes",
          "timezones"
        ],
        "type": "object",
        "properties": {
          "timezones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.CurrencyDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "defaultCountryId": {
            "type": "integer",
            "format": "int64"
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CountryDto"
            }
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactLookupDto"
            }
          },
          "bankOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankOfficeDto"
            }
          },
          "hasEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          },
          "defaultInvitesSent": {
            "type": "integer",
            "format": "int32"
          },
          "anyFinderFeeAgreementsNotAppliesAll": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankNdaDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankNdaPageDto": {
        "required": [
          "ndas",
          "ndaTemplates"
        ],
        "type": "object",
        "properties": {
          "ndas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankNdaDto"
            }
          },
          "ndaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataroomNdaTemplateDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankNdaTemplateFormDto": {
        "required": [
          "defaultText",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "defaultText": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankNotesFormDto": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankOfficeFormDto": {
        "required": [
          "city",
          "countryId",
          "isBillingAddress",
          "isPrimaryAddress",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "countryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "isPrimaryAddress": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankPremiumOptionPage": {
        "required": [
          "agreements",
          "bankContacts"
        ],
        "type": "object",
        "properties": {
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinderFeeContactDto"
            }
          },
          "agreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "affiliateLender": {
            "type": "string",
            "nullable": true
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "tier2Type": {
            "enum": [
              "International",
              "National",
              "Regional",
              "CreditUnion",
              "CommunityBank",
              "Sblc",
              "Sbic",
              "Bdc",
              "DirectLender",
              "VentureLender",
              "AssetBased",
              "FamilyOffice",
              "PrivateEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "contactCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalDealCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeDealCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealClosedCount": {
            "type": "integer",
            "format": "int32"
          },
          "bankStatus": {
            "enum": [
              "Active",
              "Expired",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "canBeMerged": {
            "type": "boolean"
          },
          "canBeDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BankSearchParamsDto": {
        "required": [
          "hasClosed",
          "hasContacts",
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status",
          "tier1Type",
          "tier2Type"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1Type": {
            "type": "integer",
            "format": "int32"
          },
          "tier2Type": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "hasClosed": {
            "type": "integer",
            "format": "int32"
          },
          "hasContacts": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryDto": {
        "type": "object",
        "properties": {
          "invited": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryStageDto"
          },
          "accepted": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryStageDto"
          },
          "termSheetsIssued": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryStageDto"
          },
          "funded": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryStageDto"
          }
        },
        "additionalProperties": false,
        "description": "The deal funnel of a bank (all its contacts): invited, accepted, term sheets issued and funded."
      },
      "Cerebro.Api.Features.Employees.Models.Banks.BankDealSummaryStageDto": {
        "type": "object",
        "properties": {
          "deals": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "The deal count and amount of one stage of the lender deal funnel."
      },
      "Cerebro.Api.Features.Employees.Models.Banks.BankEnterpriseLoanWatchSubscriptionDto": {
        "required": [
          "audits",
          "billingContactListCollection",
          "invoices"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "baseFeeAmount": {
            "type": "number",
            "format": "double"
          },
          "tier1FeeAmount": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFeeType": {
            "enum": [
              "BaseSubscriptionFee",
              "Tier1SubscriptionFee"
            ],
            "type": "string"
          },
          "termSheetThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "treasuryReferralThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          },
          "agreementSignedBy": {
            "type": "string",
            "nullable": true
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementFileName": {
            "type": "string",
            "nullable": true
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "accountManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "accountManagerUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "accountManager": {
            "type": "string",
            "nullable": true
          },
          "termSheetCount": {
            "type": "integer",
            "format": "int32"
          },
          "treasuryCount": {
            "type": "integer",
            "format": "int32"
          },
          "teaserCount": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionStatus": {
            "enum": [
              "Pending",
              "Active",
              "PendingCancellation",
              "Canceled"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "billingContactList": {
            "type": "string",
            "nullable": true
          },
          "billingContactListCollection": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lenderRawLeads": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inviteExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connectedExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termInMonths": {
            "type": "integer",
            "format": "int32"
          },
          "renewalDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "hasCancellationDate": {
            "type": "boolean",
            "readOnly": true
          },
          "hasCancellationReason": {
            "type": "boolean",
            "readOnly": true
          },
          "isPendingCancellation": {
            "type": "boolean",
            "readOnly": true
          },
          "hasInviteExclusivityPeriod": {
            "type": "boolean",
            "readOnly": true
          },
          "hasConnectedExclusivityPeriod": {
            "type": "boolean",
            "readOnly": true
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchInvoiceItemDto"
            }
          },
          "audits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Banks.EnterpriseLoanWatchSubscriptionAuditDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Banks.BankOfficeSearchParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Banks.BankStatusBarDto": {
        "required": [
          "bankGuid",
          "bankName"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Banks.DirectConnectFilterFormDto": {
        "required": [
          "acquisition",
          "amountRange",
          "balanceSheetAr",
          "balanceSheetEquipment",
          "balanceSheetRealEstate",
          "brokerSubmitted",
          "connectionStatus",
          "dateRange",
          "ebitdaRange",
          "geography",
          "industry",
          "interestLevel",
          "receiveDailyEmail",
          "receiveWeeklyEmail",
          "revenueRange",
          "useProfile"
        ],
        "type": "object",
        "properties": {
          "useProfile": {
            "type": "integer",
            "format": "int32"
          },
          "acquisition": {
            "type": "integer",
            "format": "int32"
          },
          "amountRange": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetAr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetEquipment": {
            "type": "integer",
            "format": "int32"
          },
          "dateRange": {
            "type": "integer",
            "format": "int32"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "industry": {
            "type": "integer",
            "format": "int64"
          },
          "geography": {
            "type": "integer",
            "format": "int64"
          },
          "connectionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "brokerSubmitted": {
            "type": "integer",
            "format": "int32"
          },
          "receiveDailyEmail": {
            "type": "boolean"
          },
          "receiveWeeklyEmail": {
            "type": "boolean"
          },
          "balanceSheetRealEstate": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Banks.EnterpriseLoanWatchSubscriptionAuditDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "auditType": {
            "enum": [
              "StartedOn",
              "BaseFeeChanged",
              "Tier1FeeChanged",
              "SubscriptionFeeChanged",
              "SubscriptionFeeType",
              "TermSheetThresholdChanged",
              "TreasuryReferralThresholdChanged",
              "SubscriptionStatusChanged",
              "RawLeadDealsInterest",
              "InviteExclusivityPeriod",
              "ConnectedExclusivityPeriod",
              "TermInMonths"
            ],
            "type": "string"
          },
          "previousValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.BillingPeriodFormDto": {
        "required": [
          "billingFrequency",
          "subscriptionFee"
        ],
        "type": "object",
        "properties": {
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancelCompanySubscriptionFormDto": {
        "required": [
          "cancellationDate",
          "hasCancellationFee",
          "hasRefund"
        ],
        "type": "object",
        "properties": {
          "cancellationDate": {
            "type": "string",
            "format": "date"
          },
          "hasCancellationFee": {
            "type": "boolean"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasRefund": {
            "type": "boolean"
          },
          "refundAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancelEnterpriseLoanWatchSubscriptionFormDto": {
        "required": [
          "cancellationDate",
          "cancellationReason"
        ],
        "type": "object",
        "properties": {
          "cancellationDate": {
            "type": "string",
            "format": "date"
          },
          "cancellationReason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancelSingleEngagementFormDto": {
        "required": [
          "applyCancellationFee"
        ],
        "type": "object",
        "properties": {
          "reasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherReason": {
            "type": "string",
            "nullable": true
          },
          "applyCancellationFee": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancellationReasonDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reasonName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancellationReasonFormDto": {
        "required": [
          "isActive",
          "reasonName"
        ],
        "type": "object",
        "properties": {
          "reasonName": {
            "maxLength": 150,
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CancellationReasonItemDto": {
        "required": [
          "reasonName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reasonName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportDto": {
        "required": [
          "juniorCash",
          "seniorCash"
        ],
        "type": "object",
        "properties": {
          "seniorCash": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LeverageRatioStatDto"
          },
          "juniorCash": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LeverageRatioStatDto"
          },
          "filteredByCompany": {
            "type": "boolean",
            "description": "True when the statistics are for lenders matching the company criteria, false when they are for every lender."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CashLeverageRatioReportParamsDto": {
        "type": "object",
        "properties": {
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ratio": {
            "type": "number",
            "description": "The company's leverage ratio, only lenders with a target ratio at least this high are included.",
            "format": "double",
            "nullable": true
          },
          "hasCompanyCriteria": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "The company to compare lender leverage ratios for, the statistics of every lender are returned when no revenue, EBITDA or years in operation are set."
      },
      "Cerebro.Api.Features.Employees.Models.ChatHistoryMessageDto": {
        "required": [
          "role",
          "text"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "type": "string",
            "description": "user or bot."
          },
          "text": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ChatHistoryReportItemDto": {
        "type": "object",
        "properties": {
          "conversationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "user": {
            "type": "string",
            "description": "The email address of the person who chatted, empty for visitors that did not give one."
          },
          "userIpAddress": {
            "type": "string",
            "nullable": true
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "messagesCount": {
            "type": "integer",
            "format": "int32"
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "isBlocked": {
            "type": "boolean"
          },
          "blockReason": {
            "type": "string",
            "nullable": true
          },
          "utmCampaign": {
            "type": "string",
            "description": "The utm_campaign the visitor arrived at Xavier with, if any.",
            "nullable": true
          },
          "utmSource": {
            "type": "string",
            "description": "The utm_source the visitor arrived at Xavier with, if any.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ChatRulesUrlDto": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalItemDto": {
        "required": [
          "bankName",
          "companyName",
          "dealName",
          "facilityTypeName",
          "lenderName"
        ],
        "type": "object",
        "properties": {
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time"
          },
          "facilityTypeName": {
            "type": "string"
          },
          "facilityAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityTerm": {
            "type": "number",
            "description": "The facility term in years.",
            "format": "double"
          },
          "estimatedMaturityDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "maturityFilter": {
            "enum": [
              "All",
              "Past",
              "Next12Months",
              "Future",
              "Unknown",
              "AllKnown"
            ],
            "type": "string",
            "description": "The maturity filters, the values the legacy reports used. Unknown and All Known only apply to the existing debt maturity report."
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CommitmentChartCompanyDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "debtAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CommitmentChartIndustryDto": {
        "required": [
          "companies",
          "industry"
        ],
        "type": "object",
        "properties": {
          "industryId": {
            "type": "integer",
            "description": "Zero for the companies without an industry.",
            "format": "int64"
          },
          "industry": {
            "type": "string"
          },
          "companyCount": {
            "type": "integer",
            "format": "int32"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "debtAmount": {
            "type": "number",
            "format": "double"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CommitmentChartCompanyDto"
            },
            "description": "In company name order."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CommitmentChartLenderDto": {
        "required": [
          "lender"
        ],
        "type": "object",
        "properties": {
          "lenderGuid": {
            "type": "string",
            "description": "An empty guid for the facilities without a bank provider.",
            "format": "uuid"
          },
          "lender": {
            "type": "string"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "debtAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CommitmentChartLenderLoanDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "providerPercentage": {
            "type": "number",
            "description": "The lender's share of the facility, null for the facilities without a bank provider.",
            "format": "double",
            "nullable": true
          },
          "loanAmount": {
            "type": "number",
            "description": "The lender's share of the facility's loan amount, in the employee's currency.",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CommitmentChartReportDto": {
        "required": [
          "currency",
          "industries",
          "lenders"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "The currency the amounts were converted to, the employee's currency."
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CommitmentChartLenderDto"
            },
            "description": "Largest amount first. A facility shared by several lenders counts once for each of them."
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CommitmentChartIndustryDto"
            },
            "description": "In industry name order."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Companies.AddCompanySubscriptionDefaults": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeePaymentSchedule": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Companies.CompanySubscriptionPage": {
        "required": [
          "defaults",
          "subscriptions"
        ],
        "type": "object",
        "properties": {
          "hubspotPortalId": {
            "type": "string",
            "nullable": true
          },
          "defaults": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.Companies.AddCompanySubscriptionDefaults"
          },
          "subscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Companies.Models.CompanySubscriptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.Companies.SingleEngagementPaymentTermFormDto": {
        "required": [
          "amount",
          "numberOfDays"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "numberOfDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyAndLenderAddCountMonthDto": {
        "required": [
          "label"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Like Mar 2026."
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "companiesAdded": {
            "type": "integer",
            "format": "int32"
          },
          "companiesToDate": {
            "type": "integer",
            "format": "int32"
          },
          "lendersAdded": {
            "type": "integer",
            "format": "int32"
          },
          "lendersToDate": {
            "type": "integer",
            "description": "The lenders active at the end of the month.",
            "format": "int32"
          },
          "profilesCompleted": {
            "type": "integer",
            "format": "int32"
          },
          "profilesCompletedToDate": {
            "type": "integer",
            "description": "The completed lender profiles at the end of the month.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyBankDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "otherBankName": {
            "type": "string",
            "nullable": true
          },
          "companyBankType": {
            "enum": [
              "Other",
              "Treasury",
              "Financing"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyBankFormDto": {
        "required": [
          "companyBankType",
          "newLender"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "newLender": {
            "type": "boolean"
          },
          "newBankName": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "companyBankType": {
            "enum": [
              "Other",
              "Treasury",
              "Financing"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyContactDetailedDto": {
        "required": [
          "companyAdmin",
          "createCreditSearch",
          "currency",
          "dataRoomLenderUploadReminder",
          "dataRoomQuestionPostedReminder",
          "dataRoomTaskAssignedReminder",
          "dataRoomTaskDailyUpdateReminder",
          "dataRoomTaskWeeklyUpdateReminder",
          "dataRoomTermSheetAddedReminder",
          "emailAddress",
          "firstName",
          "fullname",
          "influenceLevel",
          "isActive",
          "isBillingContact",
          "isLockedOut",
          "isThirdPartyContact",
          "lastName",
          "lenderAccessRoomReminder",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullname": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "influenceLevel": {
            "enum": [
              "Decision_Maker",
              "High_Influence",
              "Medium_Influence",
              "Low_Influence",
              "Other"
            ],
            "type": "string"
          },
          "office": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyOfficeDto"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean"
          },
          "lenderAccessRoomReminder": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyContactFormDto": {
        "required": [
          "companyAdmin",
          "currency",
          "emailAddress",
          "firstName",
          "isActive",
          "isBillingContact",
          "isLockedOut",
          "isThirdPartyContact",
          "lastName",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "companyOfficeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "influenceLevel": {
            "enum": [
              "Decision_Maker",
              "High_Influence",
              "Medium_Influence",
              "Low_Influence",
              "Other"
            ],
            "type": "string"
          },
          "receiveCovenantReminderEmails": {
            "type": "boolean"
          },
          "covenantEntry": {
            "type": "boolean"
          },
          "covenantApprovalLevel1": {
            "type": "boolean"
          },
          "covenantApprovalLevel2": {
            "type": "boolean"
          },
          "covenantApprovalLevel3": {
            "type": "boolean"
          },
          "covenantApprovalLevel4": {
            "type": "boolean"
          },
          "covenantApprovalFinal": {
            "type": "boolean"
          },
          "covenantReportSignature": {
            "type": "boolean"
          },
          "financialDataEntry": {
            "type": "boolean"
          },
          "financialDataApproval": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyContactSearchItemDto": {
        "required": [
          "contactName",
          "emailAddress",
          "lastLoginOn",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "lastLoginOn": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyContactSearchParamsDto": {
        "required": [
          "page",
          "permissions",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "searchTerm": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "permissions": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyDetailedDto": {
        "required": [
          "companyName",
          "currencyType",
          "fiscalEndDay",
          "fiscalEndMonth"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "parentCompany": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ParentCompanyDto"
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentCompanyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "parentCompanyName": {
            "type": "string",
            "nullable": true
          },
          "parentCompanyLogo": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "companyStatus": {
            "enum": [
              "Active",
              "Inactive",
              "Pending"
            ],
            "type": "string"
          },
          "accountingSystemType": {
            "enum": [
              "AbilaMip",
              "FreshBooks",
              "MicrosoftDynamics",
              "NetSuite",
              "Pegasus",
              "QuickBooksDesktop",
              "QuickBooksOnline",
              "Sage100",
              "Sage200",
              "Sage300",
              "Sage50PeachTree",
              "SageIntacct",
              "Sap",
              "Xero",
              "Zoho",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "companyType": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string"
          },
          "customerType": {
            "enum": [
              "OperatingCompany",
              "Intermediary",
              "PrivateEquityFirm",
              "IndependentSponsor",
              "Advisor",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
          },
          "leadSource": {
            "enum": [
              "Advertisement",
              "Cold_Call",
              "Trade_Show_Meeting",
              "Colleague_Referral",
              "Referral",
              "Internet_Search",
              "Newsletter",
              "Email_Invitation",
              "Direct_Mailing",
              "Other",
              "Website"
            ],
            "type": "string",
            "nullable": true
          },
          "currencyType": {
            "type": "string"
          },
          "salesRepPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "salesPersonName": {
            "type": "string",
            "nullable": true
          },
          "accountManagerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "accountManagerName": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "emailDomain": {
            "type": "string",
            "nullable": true
          },
          "ownershipStructure": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string",
            "nullable": true
          },
          "numEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "treasuryMgmtFees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "foreignExchangeVolume": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sizeOf401KPlan": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "outstandingSwapValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "securityId": {
            "type": "string",
            "nullable": true
          },
          "existingAccountant": {
            "type": "string",
            "nullable": true
          },
          "existingLawFirm": {
            "type": "string",
            "nullable": true
          },
          "isGovtContractor": {
            "type": "boolean"
          },
          "percentGovtRevenue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "requiresFinancialApproval": {
            "type": "boolean"
          },
          "requiresCovenantApproval": {
            "type": "boolean"
          },
          "canAccessRelatedCompanies": {
            "type": "boolean"
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "isSoftwareSaasCompany": {
            "type": "boolean"
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "restrictedAccess": {
            "type": "boolean"
          },
          "isTestCompany": {
            "type": "boolean"
          },
          "bypassSupplementalTerms": {
            "type": "boolean"
          },
          "weekly": {
            "type": "boolean"
          },
          "thirtyDay": {
            "type": "boolean"
          },
          "fifteenDay": {
            "type": "boolean"
          },
          "tenDay": {
            "type": "boolean"
          },
          "sevenDay": {
            "type": "boolean"
          },
          "threeDay": {
            "type": "boolean"
          },
          "dueDate": {
            "type": "boolean"
          },
          "dayAfter": {
            "type": "boolean"
          },
          "dueUntilComplete": {
            "type": "boolean"
          },
          "singleSignOnTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateDto"
          },
          "companyBanks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyBankDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyFormHelperDto": {
        "required": [
          "accountManagers",
          "countries",
          "currencies",
          "defaultCountryId",
          "industries",
          "prefixes",
          "salesReps",
          "states",
          "suffixes",
          "timezones"
        ],
        "type": "object",
        "properties": {
          "timezones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.CurrencyDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "defaultCountryId": {
            "type": "integer",
            "format": "int64"
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CountryDto"
            }
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accountManagers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          },
          "salesReps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            }
          },
          "primaryOperatingAccountsClauseEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyOfficeFormDto": {
        "required": [
          "city",
          "countryId",
          "isBillingAddress",
          "isHeadquarters",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "countryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "isHeadquarters": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyOfficeSearchParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyPortfolioItemDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "contactCount": {
            "type": "integer",
            "format": "int32"
          },
          "officeCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "companyStatus": {
            "enum": [
              "Active",
              "Inactive",
              "Pending"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyQuestionActiveDto": {
        "required": [
          "isActive"
        ],
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyQuestionFormDto": {
        "required": [
          "includeOther",
          "isCompanyQuestion",
          "isLoanApplicationQuestion",
          "isLoanAssessmentQuestion",
          "questionFormat",
          "questionNumber",
          "questionText"
        ],
        "type": "object",
        "properties": {
          "categoryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "questionFormat": {
            "enum": [
              "YesNo",
              "YesNoWithComment",
              "MultipleChoice",
              "OpenEnded"
            ],
            "type": "string"
          },
          "questionText": {
            "maxLength": 1000,
            "type": "string"
          },
          "answerChoices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Up to ten answer choices of up to 250 characters, only kept for multiple choice questions.",
            "nullable": true
          },
          "includeOther": {
            "type": "boolean"
          },
          "isCompanyQuestion": {
            "type": "boolean"
          },
          "isLoanApplicationQuestion": {
            "type": "boolean"
          },
          "isLoanAssessmentQuestion": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyQuestionItemDto": {
        "required": [
          "answerChoices",
          "questionText"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "questionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "categoryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "categoryName": {
            "type": "string",
            "nullable": true
          },
          "isCompanyQuestion": {
            "type": "boolean"
          },
          "isLoanApplicationQuestion": {
            "type": "boolean"
          },
          "isLoanAssessmentQuestion": {
            "type": "boolean"
          },
          "questionFormat": {
            "enum": [
              "YesNo",
              "YesNoWithComment",
              "MultipleChoice",
              "OpenEnded"
            ],
            "type": "string"
          },
          "questionText": {
            "type": "string"
          },
          "answerChoices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The answer choices of multiple choice questions, in order."
          },
          "includeOther": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyQuestionsReportParamsDto": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Every word in the search must be part of the question text.",
            "nullable": true
          },
          "categoryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionFormat": {
            "enum": [
              "YesNo",
              "YesNoWithComment",
              "MultipleChoice",
              "OpenEnded"
            ],
            "type": "string",
            "nullable": true
          },
          "feature": {
            "enum": [
              "Deal",
              "Company",
              "LoanAssessment"
            ],
            "type": "string",
            "description": "The feature the question is used by: Deal for loan applications, Company or Loan Assessment.",
            "nullable": true
          },
          "active": {
            "type": "integer",
            "description": "-1 = any, 1 = active, 0 = inactive",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanySearchItemDto": {
        "required": [
          "companyStatus"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyStatus": {
            "type": "string"
          },
          "contacts": {
            "type": "integer",
            "format": "int32"
          },
          "locations": {
            "type": "integer",
            "format": "int32"
          },
          "totalSubscriptions": {
            "type": "integer",
            "format": "int32"
          },
          "creditExplorer": {
            "type": "boolean"
          },
          "complianceNavigator": {
            "type": "boolean"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "canBeMerged": {
            "type": "boolean"
          },
          "canAddChild": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanySearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanyStatusBarDto": {
        "required": [
          "companyGuid",
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanySubscriptionHubspotFormDto": {
        "type": "object",
        "properties": {
          "hubSpotId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanySubscriptionSearchItemDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "accountManager": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "additionalDealFee": {
            "type": "number",
            "format": "double"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextTermStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscriptionEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealsPerYear": {
            "type": "integer",
            "format": "int32"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceCount": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompanySubscriptionsReportParamsDto": {
        "required": [
          "autoRenew",
          "nextTermRenewal",
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextTermRenewal": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenew": {
            "type": "integer",
            "format": "int32"
          },
          "accountManagerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadDto": {
        "required": [
          "sendEmail"
        ],
        "type": "object",
        "properties": {
          "sendEmail": {
            "type": "boolean",
            "description": "Emails the uploader, or the company's contacts when a company user did not upload it, that the financials are loaded."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CompleteFinancialLoadResultDto": {
        "required": [
          "emailedTo"
        ],
        "type": "object",
        "properties": {
          "emailedTo": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The addresses the financials loaded email was sent to, empty when no email was sent."
          },
          "emailError": {
            "type": "string",
            "description": "Why the email could not be sent, the document is still marked loaded.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ComplianceCompanySearchItemDto": {
        "required": [
          "companyStatus"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyStatus": {
            "type": "string"
          },
          "contacts": {
            "type": "integer",
            "format": "int32"
          },
          "childCompanies": {
            "type": "integer",
            "format": "int32"
          },
          "loanAgreements": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptions": {
            "type": "integer",
            "description": "Compliance Navigator subscriptions; always 0 for an employee without the Access Subscriptions permission.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "One row of the employee Compliance Companies list (the legacy Emp/Dashboard listing)."
      },
      "Cerebro.Api.Features.Employees.Models.ComplianceCustomerSummaryItemDto": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "description": "The subscription's renewal date.",
            "format": "date-time",
            "nullable": true
          },
          "companyCount": {
            "type": "integer",
            "description": "The customer and its child companies.",
            "format": "int32"
          },
          "loanAgreementCount": {
            "type": "integer",
            "format": "int32"
          },
          "userCount": {
            "type": "integer",
            "description": "The active contacts of the customer and its child companies.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisDealPartnerDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportItemDto": {
        "required": [
          "analysisStatusName",
          "companyName",
          "currency",
          "emailAddress"
        ],
        "type": "object",
        "properties": {
          "complimentaryAnalysisGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "dealTypeName": {
            "type": "string",
            "description": "Whether the borrower is acquiring a business, raising debt capital or both.",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "description": "The trailing twelve months revenue of the borrower, the acquisition target or both, depending on the deal type.",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "description": "The trailing twelve months adjusted EBITDA, or EBITDA without adjustments, of the borrower, the acquisition target or both.",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "analysisStatus": {
            "enum": [
              "PendingSubmission",
              "WaitingForReview",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ReviewedCall",
              "Canceled",
              "Abandoned",
              "ReviewedSalesActionNeeded",
              "SBAMarketplaceDeal",
              "OtherMarketplaceDeal",
              "WaitingForReviewCalledScheduled",
              "DeclinedAfterMoreInfo"
            ],
            "type": "string",
            "nullable": true
          },
          "analysisStatusName": {
            "type": "string"
          },
          "seekingPppLoan": {
            "type": "boolean"
          },
          "additionalInformationProvided": {
            "type": "boolean",
            "description": "The borrower answered a request for more information and the assessment is waiting for review."
          },
          "convertedDealGuid": {
            "type": "string",
            "description": "The deal the loan assessment was converted to.",
            "format": "uuid",
            "nullable": true
          },
          "uploadedFinancials": {
            "type": "boolean"
          },
          "financialMetricsEntered": {
            "type": "boolean"
          },
          "dealPartnerContactName": {
            "type": "string",
            "nullable": true
          },
          "dealPartnerName": {
            "type": "string",
            "nullable": true
          },
          "lenderReferralContactName": {
            "type": "string",
            "nullable": true
          },
          "lenderReferralBankName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportParamsDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "analysisStatus": {
            "enum": [
              "PendingSubmission",
              "WaitingForReview",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ReviewedCall",
              "Canceled",
              "Abandoned",
              "ReviewedSalesActionNeeded",
              "SBAMarketplaceDeal",
              "OtherMarketplaceDeal",
              "WaitingForReviewCalledScheduled",
              "DeclinedAfterMoreInfo"
            ],
            "type": "string",
            "nullable": true
          },
          "submittedAfter": {
            "type": "string",
            "description": "Loan assessments submitted on or after this date.",
            "format": "date",
            "nullable": true
          },
          "submittedBefore": {
            "type": "string",
            "description": "Loan assessments submitted on or before this date.",
            "format": "date",
            "nullable": true
          },
          "dealPartnerGuid": {
            "type": "string",
            "description": "The deal partner that referred the loan assessments.",
            "format": "uuid",
            "nullable": true
          },
          "sortBy": {
            "type": "string",
            "description": "Empty keeps the default order: the newest submitted when waiting for review, otherwise the newest created.",
            "nullable": true
          },
          "sortDir": {
            "type": "string",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ConditionTypeFormDto": {
        "required": [
          "conditionTypeName"
        ],
        "type": "object",
        "properties": {
          "conditionTypeName": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ConditionTypeSearchItemDto": {
        "required": [
          "conditionTypeName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "conditionTypeName": {
            "type": "string"
          },
          "termSheetCount": {
            "type": "integer",
            "description": "Condition types used on a term sheet cannot be deleted.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ConditionTypesReportParamsDto": {
        "required": [
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ControlledObjectLookupDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "type": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ConvertTeamMemberFormDto": {
        "required": [
          "copyDealCriteria"
        ],
        "type": "object",
        "properties": {
          "copyDealCriteria": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CopyLoanRequestFormDto": {
        "required": [
          "copyAcquisitionFinancials",
          "copyBorrowerFinancials",
          "copyDocuments",
          "dealName",
          "totalAmount"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "copyDocuments": {
            "type": "boolean"
          },
          "copyBorrowerFinancials": {
            "type": "boolean"
          },
          "copyAcquisitionFinancials": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CreateDealValidationResultDto": {
        "required": [
          "companies",
          "emailAddress"
        ],
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "emailAddress": {
            "type": "string"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          },
          "hasExistingCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "isNonCompanyUser": {
            "type": "boolean"
          },
          "isParentCompanyContact": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CurrencyExchangeRateItemDto": {
        "required": [
          "baseCurrency",
          "targetCurrency"
        ],
        "type": "object",
        "properties": {
          "baseCurrency": {
            "type": "string"
          },
          "targetCurrency": {
            "type": "string"
          },
          "conversionRate": {
            "type": "number",
            "format": "double"
          },
          "lastUpdatedOn": {
            "type": "string",
            "description": "When the rate was last modified, or created when it has not been modified.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CurrencyExchangeRatesReportDto": {
        "required": [
          "items",
          "targetCurrencies"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CurrencyExchangeRateItemDto"
            }
          },
          "targetCurrencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every target currency with a rate, in order, to filter by. Not limited by the filter."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportColumnsDto": {
        "required": [
          "amortizationPeriod",
          "amortizationStructure",
          "baseRate",
          "cashInterest",
          "collateral",
          "dateReceived",
          "facilityType",
          "fees",
          "guarantee",
          "identifier",
          "industry",
          "lenderType",
          "loanAmount",
          "loanType",
          "term",
          "warrantCoverage"
        ],
        "type": "object",
        "properties": {
          "identifier": {
            "type": "boolean"
          },
          "lenderType": {
            "type": "boolean"
          },
          "facilityType": {
            "type": "boolean"
          },
          "loanType": {
            "type": "boolean"
          },
          "industry": {
            "type": "boolean"
          },
          "loanAmount": {
            "type": "boolean"
          },
          "fees": {
            "type": "boolean"
          },
          "dateReceived": {
            "type": "boolean"
          },
          "collateral": {
            "type": "boolean"
          },
          "baseRate": {
            "type": "boolean"
          },
          "cashInterest": {
            "type": "boolean"
          },
          "term": {
            "type": "boolean"
          },
          "amortizationStructure": {
            "type": "boolean"
          },
          "amortizationPeriod": {
            "type": "boolean"
          },
          "guarantee": {
            "type": "boolean"
          },
          "warrantCoverage": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Which columns a custom report shows."
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportDto": {
        "required": [
          "columns",
          "createdByName",
          "filters",
          "items",
          "reportName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string"
          },
          "createdByName": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFilterDto"
            }
          },
          "columns": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportColumnsDto"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFilterDto": {
        "required": [
          "label",
          "value"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportFormDto": {
        "required": [
          "columns",
          "excludedItemGuids",
          "reportName"
        ],
        "type": "object",
        "properties": {
          "reportName": {
            "maxLength": 256,
            "type": "string"
          },
          "columns": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportColumnsDto"
          },
          "excludedItemGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The report items to remove from the report, every other item is included."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportListItemDto": {
        "required": [
          "createdByName",
          "reportName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string"
          },
          "createdByName": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "itemCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.CustomTermSheetReportsParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "reportName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "description": "The employee user that created the reports, null for any employee.",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DashboardReportHelperDto": {
        "required": [
          "industries",
          "states"
        ],
        "type": "object",
        "properties": {
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DataRoomDocumentFolderTemplateLookupDto": {
        "required": [
          "folderName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DataSubscriptionReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DataSubscriptionSearchItemDto": {
        "required": [
          "accountName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "accountName": {
            "type": "string"
          },
          "dataDeliveryType": {
            "enum": [
              "S3",
              "Email"
            ],
            "type": "string"
          },
          "bucketName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "dataStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "contractDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "agreementFileName": {
            "type": "string",
            "nullable": true
          },
          "subscriptionStatus": {
            "enum": [
              "Active",
              "Expired"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealAgentConfigDto": {
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          },
          "pilotAllowlistOnly": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "modelDefault": {
            "type": "string"
          },
          "modelClassifier": {
            "type": "string"
          },
          "modelEscalation": {
            "type": "string",
            "nullable": true
          },
          "activeHoursStart": {
            "type": "integer",
            "format": "int32"
          },
          "activeHoursEnd": {
            "type": "integer",
            "format": "int32"
          },
          "activeHoursTimeZoneId": {
            "type": "string"
          },
          "maxClaimsPerTick": {
            "type": "integer",
            "format": "int32"
          },
          "maxInFlight": {
            "type": "integer",
            "format": "int32"
          },
          "claimTimeoutMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "stalenessDaysStandard": {
            "type": "integer",
            "format": "int32"
          },
          "stalenessDaysDirectConnect": {
            "type": "integer",
            "format": "int32"
          },
          "checkIntervalHours": {
            "type": "integer",
            "format": "int32"
          },
          "monitoredDealStatuses": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "maxToolRounds": {
            "type": "integer",
            "format": "int32"
          },
          "maxTokensPerRun": {
            "type": "integer",
            "format": "int32"
          },
          "dailyTokenBudget": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "maxNudgesPerLender": {
            "type": "integer",
            "format": "int32"
          },
          "maxNudgesPerLenderDirectConnect": {
            "type": "integer",
            "format": "int32"
          },
          "minGapBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "firstNudgeBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "classificationConfidenceThreshold": {
            "type": "number",
            "format": "double"
          },
          "draftExpiryHours": {
            "type": "integer",
            "format": "int32"
          },
          "emailWatermarkOn": {
            "type": "string",
            "description": "Read only: HubSpot email ingestion has read everything modified before this time (UTC).",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "description": "Read only: when and by whom the row was last changed from this page.",
            "format": "date-time",
            "nullable": true
          },
          "modifiedByName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The deal agent's single configuration row as the Deal Agent Configuration admin page shows it."
      },
      "Cerebro.Api.Features.Employees.Models.DealAgentConfigFormDto": {
        "required": [
          "activeHoursEnd",
          "activeHoursStart",
          "checkIntervalHours",
          "claimTimeoutMinutes",
          "classificationConfidenceThreshold",
          "draftExpiryHours",
          "dryRun",
          "firstNudgeBusinessDays",
          "isEnabled",
          "maxClaimsPerTick",
          "maxInFlight",
          "maxNudgesPerLender",
          "maxNudgesPerLenderDirectConnect",
          "maxTokensPerRun",
          "maxToolRounds",
          "minGapBusinessDays",
          "pilotAllowlistOnly",
          "stalenessDaysDirectConnect",
          "stalenessDaysStandard"
        ],
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          },
          "pilotAllowlistOnly": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "modelDefault": {
            "type": "string",
            "nullable": true
          },
          "modelClassifier": {
            "type": "string",
            "nullable": true
          },
          "modelEscalation": {
            "type": "string",
            "nullable": true
          },
          "activeHoursStart": {
            "type": "integer",
            "format": "int32"
          },
          "activeHoursEnd": {
            "type": "integer",
            "format": "int32"
          },
          "activeHoursTimeZoneId": {
            "type": "string",
            "nullable": true
          },
          "maxClaimsPerTick": {
            "type": "integer",
            "format": "int32"
          },
          "maxInFlight": {
            "type": "integer",
            "format": "int32"
          },
          "claimTimeoutMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "stalenessDaysStandard": {
            "type": "integer",
            "format": "int32"
          },
          "stalenessDaysDirectConnect": {
            "type": "integer",
            "format": "int32"
          },
          "checkIntervalHours": {
            "type": "integer",
            "format": "int32"
          },
          "monitoredDealStatuses": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "maxToolRounds": {
            "type": "integer",
            "format": "int32"
          },
          "maxTokensPerRun": {
            "type": "integer",
            "format": "int32"
          },
          "dailyTokenBudget": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "maxNudgesPerLender": {
            "type": "integer",
            "format": "int32"
          },
          "maxNudgesPerLenderDirectConnect": {
            "type": "integer",
            "format": "int32"
          },
          "minGapBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "firstNudgeBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "classificationConfidenceThreshold": {
            "type": "number",
            "format": "double"
          },
          "draftExpiryHours": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "What the Deal Agent Configuration page saves. Nothing is validated by data annotations because the page shows the first\nproblem as plain text; `DealAgentConfigRules` holds every rule."
      },
      "Cerebro.Api.Features.Employees.Models.DealInterestedLenderDto": {
        "required": [
          "bankName",
          "borrowerStatus",
          "inviteStatus",
          "lenderName",
          "tier1BankType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          },
          "borrowerInterestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rawLeadStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string",
            "nullable": true
          },
          "rawLeadDeclineReason": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "nullable": true
          },
          "statusOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderResponseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inviteStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerContactDto": {
        "required": [
          "emailAddress",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "hasLimitedAccess": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerContactFormDto": {
        "required": [
          "currency",
          "emailAddress",
          "firstName",
          "hasLimitedAccess",
          "isActive",
          "isLockedOut",
          "lastName",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string",
            "format": "email"
          },
          "phone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "hasLimitedAccess": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerContactSearchItemDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "referralCode": {
            "type": "string",
            "nullable": true
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "agreementUrl": {
            "type": "string",
            "nullable": true
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "expirationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchItemDto": {
        "required": [
          "currency",
          "dealStatus"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "dealStatus": {
            "type": "string"
          },
          "showDataRoom": {
            "type": "boolean"
          },
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchParamsDto": {
        "required": [
          "dealStatus",
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchItemDto": {
        "required": [
          "currency",
          "dealType",
          "status"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "dealType": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "type": "string"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealDataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "type": "string",
            "nullable": true
          },
          "showDealDataRoom": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchParamsDto": {
        "required": [
          "analysisStatus",
          "dealStatus",
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "analysisStatus": {
            "type": "integer",
            "format": "int32"
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerSearchItemDto": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "contactCount": {
            "type": "integer",
            "format": "int32"
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "expirationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealPartnerStatusBarDto": {
        "required": [
          "dealPartnerGuid",
          "dealPartnerName"
        ],
        "type": "object",
        "properties": {
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealPartnerName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSearchReportItemDto": {
        "required": [
          "companyName",
          "dealStatusName",
          "industryName",
          "stateCode"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealStatusName": {
            "type": "string"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "dealSize": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "industryName": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSearchReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "keywords": {
            "type": "string",
            "description": "Searched in the deals' full text content.",
            "nullable": true
          },
          "ebitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealSizeMin": {
            "type": "number",
            "description": "The amount funded for closed funded deals, the largest term sheet for deals with term sheets, otherwise the requested amount.",
            "format": "double",
            "nullable": true
          },
          "dealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisition": {
            "type": "boolean",
            "description": "True for acquisition deals, false for other deals, empty for either.",
            "nullable": true
          },
          "leverageRatioMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leverageRatioMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cashEquityMin": {
            "type": "integer",
            "description": "The percent of an acquisition's price paid with the buyer's cash.",
            "format": "int32",
            "nullable": true
          },
          "cashEquityMax": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionFilter": {
            "type": "integer",
            "description": "The procedures' value for the acquisition filter, -1 for either.",
            "format": "int32",
            "readOnly": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSonarActivityReportParams": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSonarActivitySearchItemDto": {
        "required": [
          "collateralItems",
          "contactName",
          "firstName",
          "interestStatus",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "collateralList": {
            "type": "string",
            "nullable": true
          },
          "collateralItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "interestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "interestStatus": {
            "type": "string"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "isEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          },
          "hasAnySubscription": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealStatusAverageReportAmountDrillInDto": {
        "type": "object",
        "properties": {
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalDealAmount": {
            "type": "number",
            "format": "double"
          },
          "averageDealSize": {
            "type": "number",
            "format": "double"
          },
          "medianDealSize": {
            "type": "number",
            "format": "double"
          },
          "upToTwoMillion": {
            "type": "integer",
            "format": "int32"
          },
          "upToTwoMillionPercent": {
            "type": "number",
            "format": "double"
          },
          "twoToFiveMillion": {
            "type": "integer",
            "format": "int32"
          },
          "twoToFiveMillionPercent": {
            "type": "number",
            "format": "double"
          },
          "fiveToTenMillion": {
            "type": "integer",
            "format": "int32"
          },
          "fiveToTenMillionPercent": {
            "type": "number",
            "format": "double"
          },
          "tenToTwentyMillion": {
            "type": "integer",
            "format": "int32"
          },
          "tenToTwentyMillionPercent": {
            "type": "number",
            "format": "double"
          },
          "twentyToFortyMillion": {
            "type": "integer",
            "format": "int32"
          },
          "twentyToFortyMillionPercent": {
            "type": "number",
            "format": "double"
          },
          "overFortyMillion": {
            "type": "integer",
            "format": "int32"
          },
          "overFortyMillionPercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealStatusAverageReportCountDrillInDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isContractSignedOrLater": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealStatusCountAndAverageDealSizeReportDto": {
        "type": "object",
        "properties": {
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "currentStatusCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentStatusAvgDealSize": {
            "type": "number",
            "format": "double"
          },
          "currentMonthCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthAvgDealSize": {
            "type": "number",
            "format": "double"
          },
          "currentQuarterCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentQuarterAvgDealSize": {
            "type": "number",
            "format": "double"
          },
          "yearToDateCount": {
            "type": "integer",
            "format": "int32"
          },
          "yearToDateAvgDealSize": {
            "type": "number",
            "format": "double"
          },
          "lastYearCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastYearAvgDealSize": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSummaryDashboardReportParamsDto": {
        "required": [
          "borrowerRevenue",
          "industryId",
          "stateId"
        ],
        "type": "object",
        "properties": {
          "industryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64"
          },
          "borrowerRevenue": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSummaryReportDrillInDto": {
        "required": [
          "borrowerRevenue",
          "dealStatus",
          "industryId",
          "scope",
          "stateId"
        ],
        "type": "object",
        "properties": {
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "scope": {
            "type": "integer",
            "format": "int32"
          },
          "industryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64"
          },
          "borrowerRevenue": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSummaryReportPageDto": {
        "required": [
          "dealStatus",
          "salesReps",
          "transactionManagers"
        ],
        "type": "object",
        "properties": {
          "hubSpotPortalId": {
            "type": "string",
            "nullable": true
          },
          "transactionManagerUserId": {
            "type": "integer",
            "format": "int64"
          },
          "salesRepUserId": {
            "type": "integer",
            "format": "int64"
          },
          "dealStatus": {
            "type": "array",
            "items": {
              "enum": [
                "Started",
                "Accepted",
                "Declined",
                "MoreInfoNeeded",
                "ContractSigned",
                "ReadyForReview",
                "Active",
                "ActiveClosing",
                "TermSheetIssued",
                "ClosedFunded",
                "ClosedDiscarded",
                "Paused",
                "Inactive"
              ],
              "type": "string"
            }
          },
          "transactionManagers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          },
          "salesReps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSummaryReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "productType",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "type": "array",
            "items": {
              "enum": [
                "Started",
                "Accepted",
                "Declined",
                "MoreInfoNeeded",
                "ContractSigned",
                "ReadyForReview",
                "Active",
                "ActiveClosing",
                "TermSheetIssued",
                "ClosedFunded",
                "ClosedDiscarded",
                "Paused",
                "Inactive"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "transactionManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "salesRepUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productType": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DealSummarySearchItemDto": {
        "required": [
          "companyName",
          "contractType",
          "dealName",
          "launchDateString"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "companyCurrency": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "dealLaunchDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "launchDateString": {
            "type": "string"
          },
          "transactionManagerName": {
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "totalLoanApplicationTasks": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksOpen": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksClosed": {
            "type": "integer",
            "format": "int32"
          },
          "teasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "teasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "totalDiligenceRequests": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsOpen": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsClosed": {
            "type": "integer",
            "format": "int32"
          },
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealPartnerContactName": {
            "type": "string",
            "nullable": true
          },
          "dealPartnerName": {
            "type": "string",
            "nullable": true
          },
          "contractType": {
            "type": "string"
          },
          "salesRepName": {
            "type": "string",
            "nullable": true
          },
          "numberDataRoomDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "contactEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "hasReachedContractSigned": {
            "type": "boolean"
          },
          "totalInterests": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DebtCapacityCalculatorItemDto": {
        "required": [
          "currency",
          "name"
        ],
        "type": "object",
        "properties": {
          "debtCapacityCalculatorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "helpRequested": {
            "type": "boolean",
            "description": "Whether the submitter asked for a call."
          },
          "currency": {
            "type": "string",
            "description": "The currency of every amount, the employee's currency."
          },
          "annualRevenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "accountsReceivable": {
            "type": "number",
            "format": "double"
          },
          "inventory": {
            "type": "number",
            "format": "double"
          },
          "equipment": {
            "type": "number",
            "format": "double"
          },
          "realEstate": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "cashFlowCapacity": {
            "type": "number",
            "format": "double"
          },
          "assetCapacity": {
            "type": "number",
            "description": "The asset based lending capacity.",
            "format": "double"
          },
          "ventureDebtCapacity": {
            "type": "number",
            "format": "double"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.DebtCapacityConfigFormDto": {
        "required": [
          "factoringMultiplier",
          "liborBaseRate",
          "primeBaseRate",
          "purchaseOrderFinancingMultiplier",
          "sba504DebentureMultiplier",
          "sba504SeniorMultiplier",
          "sba7aNonRealEstateMultiplier",
          "sba7aRealEstateMultiplier",
          "sofrRate",
          "usdaEquipmentMultiplier",
          "usdaRealEstateMultiplier",
          "usdaWorkingCapitalMultiplier",
          "workingCapitalBankMultiplier",
          "workingCapitalCollateralSecurityType",
          "workingCapitalFacilityType",
          "workingCapitalNonBankMultiplier"
        ],
        "type": "object",
        "properties": {
          "workingCapitalBankMultiplier": {
            "type": "number",
            "format": "double"
          },
          "workingCapitalNonBankMultiplier": {
            "type": "number",
            "format": "double"
          },
          "workingCapitalFacilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "workingCapitalCollateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "primeBaseRate": {
            "type": "number",
            "format": "double"
          },
          "liborBaseRate": {
            "type": "number",
            "format": "double"
          },
          "sofrRate": {
            "type": "number",
            "format": "double"
          },
          "sba7aRealEstateMultiplier": {
            "type": "number",
            "format": "double"
          },
          "sba7aNonRealEstateMultiplier": {
            "type": "number",
            "format": "double"
          },
          "sba504SeniorMultiplier": {
            "type": "number",
            "format": "double"
          },
          "sba504DebentureMultiplier": {
            "type": "number",
            "format": "double"
          },
          "usdaRealEstateMultiplier": {
            "type": "number",
            "format": "double"
          },
          "usdaEquipmentMultiplier": {
            "type": "number",
            "format": "double"
          },
          "usdaWorkingCapitalMultiplier": {
            "type": "number",
            "format": "double"
          },
          "purchaseOrderFinancingMultiplier": {
            "type": "number",
            "format": "double"
          },
          "factoringMultiplier": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "The single debt capacity configuration record, used both to display and to update it."
      },
      "Cerebro.Api.Features.Employees.Models.EditBankContactSubscriptionFormDto": {
        "type": "object",
        "properties": {
          "preventDataRoomAccess": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EditBankDocumentFormDto": {
        "required": [
          "documentTitle",
          "documentType"
        ],
        "type": "object",
        "properties": {
          "documentType": {
            "enum": [
              "Bank_Profile",
              "Loan_Document",
              "Finders_Fee_Agreement",
              "Other"
            ],
            "type": "string"
          },
          "documentTitle": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EditPainPointFacilityFormDto": {
        "required": [
          "advanceRateAgainstCollateral",
          "amortization",
          "collateralRequirements",
          "covenants",
          "interestRate",
          "loanAmount",
          "maturity",
          "maturityDate",
          "personalGuarantee",
          "prePaymentFees"
        ],
        "type": "object",
        "properties": {
          "maturityDate": {
            "type": "string",
            "format": "date"
          },
          "personalGuarantee": {
            "type": "boolean"
          },
          "personalGuaranteeText": {
            "type": "string",
            "nullable": true
          },
          "interestRate": {
            "type": "boolean"
          },
          "interestRateText": {
            "type": "string",
            "nullable": true
          },
          "covenants": {
            "type": "boolean"
          },
          "covenantsText": {
            "type": "string",
            "nullable": true
          },
          "maturity": {
            "type": "boolean"
          },
          "maturityText": {
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "boolean"
          },
          "amortizationText": {
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "boolean"
          },
          "loanAmountText": {
            "type": "string",
            "nullable": true
          },
          "prePaymentFees": {
            "type": "boolean"
          },
          "prePaymentFeesText": {
            "type": "string",
            "nullable": true
          },
          "advanceRateAgainstCollateral": {
            "type": "boolean"
          },
          "advanceRateAgainstCollateralText": {
            "type": "string",
            "nullable": true
          },
          "collateralRequirements": {
            "type": "boolean"
          },
          "collateralRequirementsText": {
            "type": "string",
            "nullable": true
          },
          "otherDetails": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EditTeamMemberFormDto": {
        "required": [
          "canInteractWithTeasers",
          "currency",
          "editUnderwritingCriteria",
          "emailAddress",
          "firstName",
          "isActive",
          "isLockedOut",
          "lastName",
          "timeZoneId",
          "viewUnderwritingCriteria"
        ],
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeAccountSettingsDto": {
        "required": [
          "employeeCommunicationPermissionGuid"
        ],
        "type": "object",
        "properties": {
          "employeeCommunicationPermissionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean",
            "nullable": true
          },
          "lenderAccessRoomReminder": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeAppReportDto": {
        "required": [
          "categoryName",
          "reactUrl",
          "reportName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string"
          },
          "categoryName": {
            "type": "string"
          },
          "reportDescription": {
            "type": "string",
            "nullable": true
          },
          "reactUrl": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "An employee report that has been converted to the employee app and can be opened from its reports or admin page."
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeBankLookupDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "enum": [
              "Active",
              "Expired",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeBankProfileLookupDto": {
        "required": [
          "lenderName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lenderName": {
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isFlagged": {
            "type": "boolean"
          },
          "type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeChatIntroductionDto": {
        "type": "object",
        "properties": {
          "responseText": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeChatMessageFormDto": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "integer",
            "description": "The conversation to continue, empty to start a new one.",
            "format": "int64",
            "nullable": true
          },
          "message": {
            "maxLength": 4000,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeChatResponseDto": {
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "integer",
            "format": "int64"
          },
          "responseText": {
            "type": "string",
            "description": "The bot's answer, in the HTML the chatbot rules ask for."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupDto": {
        "required": [
          "people"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "enum": [
              "Active",
              "Inactive",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "isComplianceCompany": {
            "type": "boolean",
            "description": "The company manages debt or financials, so employees open it in the compliance company pages."
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupPersonDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCompanyLookupPersonDto": {
        "required": [
          "emailAddress",
          "fullName"
        ],
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "allowAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionFormDto": {
        "required": [
          "allowAccess",
          "companyGuid"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "allowAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionsPageDto": {
        "required": [
          "permissions"
        ],
        "type": "object",
        "properties": {
          "borrowerProfilesAccess": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessDto"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeCompanyPermissionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeCurrentUserDto": {
        "required": [
          "controlledObjects",
          "currency",
          "defaultTimezone",
          "emailAddress",
          "firstName",
          "lastName",
          "timeZoneId",
          "username"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "middleInitial": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "defaultTimezone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "emailAddress": {
            "type": "string"
          },
          "imageFileName": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "hubspotPortalId": {
            "type": "string",
            "nullable": true
          },
          "formalName": {
            "type": "string",
            "readOnly": true
          },
          "fullname": {
            "type": "string",
            "readOnly": true
          },
          "lastNameFirst": {
            "type": "string",
            "readOnly": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "smsVerificationCode": {
            "type": "string",
            "nullable": true
          },
          "receiveTeasersSms": {
            "type": "boolean"
          },
          "smsPhone": {
            "type": "string",
            "nullable": true
          },
          "controlledObjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserControlledObjectDto"
            }
          },
          "accessDataRooms": {
            "type": "boolean",
            "readOnly": true
          },
          "accessBorrowerProfiles": {
            "type": "boolean",
            "readOnly": true
          },
          "manageLenderProfiles": {
            "type": "boolean",
            "readOnly": true
          },
          "accessDealPartners": {
            "type": "boolean",
            "readOnly": true
          },
          "accessDataSubscriptions": {
            "type": "boolean",
            "readOnly": true
          },
          "accessSubscriptions": {
            "type": "boolean",
            "readOnly": true
          },
          "isTransactionManager": {
            "type": "boolean"
          },
          "isLenderRelationsManager": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeDashboardDto": {
        "required": [
          "companySubscriptionSummaryReport",
          "employeeTermSheetSummaryReport",
          "lenderSummaryDashboardReport"
        ],
        "type": "object",
        "properties": {
          "companySubscriptionSummaryReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionSummaryReport"
          },
          "lenderSummaryDashboardReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderSummaryDashboardReport"
          },
          "employeeTermSheetSummaryReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeTermSheetSummaryReport"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string"
          },
          "allowAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionFormDto": {
        "required": [
          "allowAccess",
          "dealGuid"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "allowAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionsPageDto": {
        "required": [
          "permissions"
        ],
        "type": "object",
        "properties": {
          "dataRoomsAccess": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessDto"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeDataRoomPermissionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeDealLookupDto": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeePreMarketDealsSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealEditDto": {
        "required": [
          "companyGuid",
          "companyName",
          "ebitda",
          "requestAmount",
          "revenue",
          "useOfProceeds"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "requestAmount": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto"
            }
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerProvidingCash": {
            "type": "boolean",
            "readOnly": true
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "useOfProceeds": {
            "enum": [
              "Unknown",
              "WorkingCapital",
              "WorkingCapitalAccountsReceivableFinancing",
              "WorkingCapitalInventoryFinancing",
              "WorkingCapitalCapitalForOperatingExpenses",
              "EquipmentFinancing",
              "EquipmentFinancingMachineryAndEquipment",
              "EquipmentFinancingVehicles",
              "EquipmentFinancingMarineVessels",
              "EquipmentFinancingHelicopters",
              "EquipmentFinancingAircraft",
              "RealEstate",
              "RealEstateOffice",
              "RealEstateMedicalOffice",
              "RealEstateChildcare",
              "RealEstateRetail",
              "RealEstateSelfStorage",
              "RealEstateIndustrial",
              "RealEstateIndustrialManufacturing",
              "RealEstateIndustrialFlexHybrid",
              "RealEstateIndustrialDistribution",
              "RealEstateIndustrialWarehouse",
              "RealEstateHospitality",
              "RealEstateResidentialHealthcare",
              "RealEstateMultifamily",
              "RealEstateInvestorOwnedResidential",
              "GrowthCapital",
              "RefinanceExistingDebt",
              "AcquiringBusiness",
              "AcquiringBusinessStandalone",
              "AcquiringBusinessAddOn",
              "AcquiringBusinessPartnerBuyOut",
              "AcquiringBusinessManagementBuyOut",
              "OtherFinancingNeeds"
            ],
            "type": "string"
          },
          "isAcquisitionUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isWorkingCapitalUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isEquipmentUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "isRealEstateUseOfProceeds": {
            "type": "boolean",
            "readOnly": true
          },
          "companyName": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "The borrower's edit of a DirectConnect marketplace deal, with the company name an employee can also change. The job title\nis the one of the company's first contact."
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealItemDto": {
        "required": [
          "companyName",
          "emailAddress",
          "industryName",
          "stateCode"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "industryName": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "interestCount": {
            "type": "integer",
            "description": "The lenders interested in the deal.",
            "format": "int32"
          },
          "notInterestedCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasAdditionalInformation": {
            "type": "boolean"
          },
          "hasSignedContract": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean",
            "description": "Whether lenders can see the lead, and its lender invites are listed."
          },
          "isInterestLimitRestricted": {
            "type": "boolean",
            "description": "Whether the borrower only sees some of the lender invites."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeReportCategoryLookupDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeUserDto": {
        "required": [
          "emailAddress",
          "firstName",
          "fullname",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "employeeContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullname": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "enum": [
              "None",
              "CompanyUser",
              "BankUser",
              "TeamMember",
              "Employee",
              "Consultant",
              "DealPartner"
            ],
            "type": "string"
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isTransactionManager": {
            "type": "boolean"
          },
          "isLenderRelationsManager": {
            "type": "boolean"
          },
          "isSalesRep": {
            "type": "boolean"
          },
          "isComplianceEmployee": {
            "type": "boolean"
          },
          "canAccessRestrictedCompanies": {
            "type": "boolean"
          },
          "isAuthorizedContractSigner": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "isCurrentUser": {
            "type": "boolean"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeUserLookupDto": {
        "required": [
          "emailAddress",
          "fullName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "organizationType": {
            "enum": [
              "Employee",
              "Company",
              "Bank"
            ],
            "type": "string"
          },
          "organizationGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "enum": [
              "ManageUserAccount",
              "SingleSignOnTemplates",
              "ResetCovenants",
              "MilestoneDefaults",
              "ResetCompanyFinancials",
              "LoanPurposeFacilities",
              "EditInvoices",
              "NaicsCodes",
              "LoanApplicationForm",
              "TaskChecklistInformation",
              "ApplicationSettings",
              "ManageIndustries",
              "AccessDealPartners",
              "AccessLoanAssessments",
              "AccessDataRooms",
              "ManageLenderProfiles",
              "AccessBorrowerProfiles",
              "AccessSubscriptions",
              "MatchingConfiguration",
              "UpdateHubSpotId",
              "ApplicationErrors",
              "ManageExecutiveSummary",
              "TermSheetFee",
              "ManageViewJobs",
              "FinancialCovenantType",
              "BankAccountManagement",
              "DataSubscriptions",
              "EmployeeReports",
              "ManageProducts",
              "ChatRules",
              "EditClosedFundedDeals",
              "SendPreMarketDealEmails",
              "ManageAISourceDocuments",
              "ManageProspectPrompt",
              "ManageDealAgent"
            ],
            "type": "string"
          },
          "hasAccess": {
            "type": "boolean",
            "description": "Null when the employee has never been granted or denied access to the page.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeUserPageAccessFormDto": {
        "required": [
          "hasAccess"
        ],
        "type": "object",
        "properties": {
          "hasAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EmployeeUserPreferencesDto": {
        "required": [
          "dataRoomLenderUploadReminder",
          "dataRoomQuestionPostedReminder",
          "dataRoomTaskAssignedReminder",
          "dataRoomTaskDailyUpdateReminder",
          "dataRoomTaskWeeklyUpdateReminder",
          "dataRoomTermSheetAddedReminder",
          "dataRoomTermSheetResponseReminder",
          "lenderAccessRoomReminder"
        ],
        "type": "object",
        "properties": {
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean"
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean"
          },
          "lenderAccessRoomReminder": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionFormDto": {
        "required": [
          "lenderRawLeads",
          "subscriptionFee",
          "subscriptionFeeType",
          "termInMonths",
          "termSheetThreshold",
          "tier1Fee",
          "treasuryReferralThreshold"
        ],
        "type": "object",
        "properties": {
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "tier1Fee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFeeType": {
            "enum": [
              "BaseSubscriptionFee",
              "Tier1SubscriptionFee"
            ],
            "type": "string"
          },
          "monthlySubscriptionFee": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "termSheetThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "treasuryReferralThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "lenderRawLeads": {
            "type": "integer",
            "format": "int32"
          },
          "inviteExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connectedExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termInMonths": {
            "type": "integer",
            "format": "int32"
          },
          "accountManagerUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "renewalDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "teaserCount": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetCount": {
            "type": "integer",
            "format": "int32"
          },
          "treasuryCount": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionStatus": {
            "enum": [
              "Pending",
              "Active",
              "PendingCancellation",
              "Canceled"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.EnterpriseSubscriptionSearchParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityItemDto": {
        "required": [
          "collateralSecurityTypeName",
          "companyName",
          "facilityTypeName",
          "lenderTypeName"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "facilityTypeName": {
            "type": "string"
          },
          "lenderTypeName": {
            "type": "string"
          },
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "collateralSecurityTypeName": {
            "type": "string"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time"
          },
          "isMaturityUnknown": {
            "type": "boolean",
            "description": "True when the loan application has no maturity date, so the maturity date is when the deal was created."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "maturityFilter": {
            "enum": [
              "All",
              "Past",
              "Next12Months",
              "Future",
              "Unknown",
              "AllKnown"
            ],
            "type": "string",
            "description": "The maturity filters, the values the legacy reports used. Unknown and All Known only apply to the existing debt maturity report."
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.FederalReserveDataItemDto": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "priceNetPercent": {
            "type": "integer",
            "description": "The net percentage of domestic lenders increasing the cost of credit lines to large and middle-market firms.",
            "format": "int32",
            "nullable": true
          },
          "priceAdjustment": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeFormDto": {
        "required": [
          "covenantName",
          "covenantValueType",
          "reportingType"
        ],
        "type": "object",
        "properties": {
          "covenantName": {
            "maxLength": 128,
            "type": "string"
          },
          "reportingType": {
            "enum": [
              "None",
              "MaximumSeniorLeverageRatio",
              "MaximumTotalLeverageRatio",
              "MinimumFixedChargeCoverageRatio"
            ],
            "type": "string"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeSearchItemDto": {
        "required": [
          "covenantName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "reportingType": {
            "enum": [
              "None",
              "MaximumSeniorLeverageRatio",
              "MaximumTotalLeverageRatio",
              "MinimumFixedChargeCoverageRatio"
            ],
            "type": "string"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string"
          },
          "termSheetCovenantCount": {
            "type": "integer",
            "description": "Covenant types used on a term sheet cannot be deleted.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.FinancialCovenantTypesReportParamsDto": {
        "required": [
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Every word in the search must be part of the covenant name.",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.FinderFeeContactDto": {
        "required": [
          "emailAddress",
          "fullName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "fullName": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.IndustryFormDto": {
        "required": [
          "industryName",
          "isStandardIndustry",
          "isSupportedForLending",
          "isSupportedForVentureDebt"
        ],
        "type": "object",
        "properties": {
          "industryName": {
            "maxLength": 50,
            "type": "string"
          },
          "hubSpotName": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "isStandardIndustry": {
            "type": "boolean"
          },
          "isSupportedForLending": {
            "type": "boolean"
          },
          "isSupportedForVentureDebt": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.IndustryReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "term": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.IndustrySearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "hubSpotName": {
            "type": "string",
            "nullable": true
          },
          "isStandardIndustry": {
            "type": "boolean"
          },
          "isSupportedForLending": {
            "type": "boolean"
          },
          "isSupportedForVentureDebt": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.InvoiceSearchParamsDto": {
        "required": [
          "invoiceStatus",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "invoiceStatus": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobDto": {
        "required": [
          "daysRunning",
          "jobName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "jobName": {
            "type": "string"
          },
          "frequency": {
            "enum": [
              "None",
              "Daily",
              "Hourly",
              "Weekly"
            ],
            "type": "string"
          },
          "hourOfDay": {
            "type": "integer",
            "description": "Hour of day in Eastern time (24 hour), not used for hourly jobs.",
            "format": "int32",
            "nullable": true
          },
          "minuteOfHour": {
            "type": "integer",
            "format": "int32"
          },
          "runOnMondays": {
            "type": "boolean"
          },
          "runOnTuesdays": {
            "type": "boolean"
          },
          "runOnWednesdays": {
            "type": "boolean"
          },
          "runOnThursdays": {
            "type": "boolean"
          },
          "runOnFridays": {
            "type": "boolean"
          },
          "runOnSaturdays": {
            "type": "boolean"
          },
          "runOnSundays": {
            "type": "boolean"
          },
          "daysRunning": {
            "type": "string"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedByName": {
            "type": "string",
            "nullable": true
          },
          "lastExecutionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastScheduledRunOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ranAsScheduled": {
            "type": "boolean",
            "description": "Whether the job has run since it was last scheduled, or null when it has no schedule.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobEnabledFormDto": {
        "required": [
          "isEnabled"
        ],
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobExecutionDetailDto": {
        "required": [
          "action",
          "detail"
        ],
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "hasError": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobExecutionDto": {
        "required": [
          "details"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "jobName": {
            "type": "string",
            "nullable": true
          },
          "executionStatus": {
            "enum": [
              "Completed",
              "Failed",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "executionSummary": {
            "type": "string",
            "nullable": true
          },
          "exceptionText": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "finishedTime": {
            "type": "string",
            "format": "date-time"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double"
          },
          "actionCount": {
            "type": "integer",
            "format": "int32"
          },
          "errorCount": {
            "type": "integer",
            "format": "int32"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionDetailDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobExecutionSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "jobId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "jobName": {
            "type": "string",
            "nullable": true
          },
          "executionStatus": {
            "enum": [
              "Completed",
              "Failed",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "executionSummary": {
            "type": "string",
            "nullable": true
          },
          "exceptionText": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "finishedTime": {
            "type": "string",
            "format": "date-time"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double"
          },
          "actionCount": {
            "type": "integer",
            "format": "int32"
          },
          "errorCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobExecutionsReportParamsDto": {
        "required": [
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "jobId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "enum": [
              "Completed",
              "Failed",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.JobFormDto": {
        "required": [
          "days",
          "frequency",
          "jobName",
          "minuteOfHour"
        ],
        "type": "object",
        "properties": {
          "jobName": {
            "type": "string"
          },
          "frequency": {
            "enum": [
              "None",
              "Daily",
              "Hourly",
              "Weekly"
            ],
            "type": "string"
          },
          "hourOfDay": {
            "maximum": 23,
            "minimum": 0,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minuteOfHour": {
            "maximum": 59,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "weeklyDay": {
            "enum": [
              "Sunday",
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday"
            ],
            "type": "string",
            "description": "The single day a weekly job runs on, ignored for other frequencies.",
            "nullable": true
          },
          "days": {
            "type": "array",
            "items": {
              "enum": [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
              ],
              "type": "string"
            },
            "description": "The days daily and hourly jobs run on."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderCoverageReportItemDto": {
        "required": [
          "tier3ContactTypeName"
        ],
        "type": "object",
        "properties": {
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string"
          },
          "tier3ContactTypeName": {
            "type": "string"
          },
          "numberLenders": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDataRoomReportItemDto": {
        "required": [
          "avgResponseTime",
          "companyName",
          "dealName",
          "dealStatusName",
          "roomStatusName"
        ],
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "teaserCount": {
            "type": "integer",
            "format": "int32"
          },
          "teaserAcceptedCount": {
            "type": "integer",
            "format": "int32"
          },
          "teaserDeclinedCount": {
            "type": "integer",
            "format": "int32"
          },
          "avgResponseTimeMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "avgResponseTime": {
            "type": "string",
            "description": "The average teaser response time in minutes, hours or days, - when no lender responded."
          },
          "activeLenders": {
            "type": "integer",
            "format": "int32"
          },
          "optOutLenders": {
            "type": "integer",
            "format": "int32"
          },
          "roomStatusName": {
            "type": "string"
          },
          "dealStatusName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDataRoomReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "roomStatus": {
            "type": "integer",
            "description": "1 for open data rooms, 0 for closed data rooms, -1 for all data rooms.",
            "format": "int32"
          },
          "days": {
            "type": "integer",
            "description": "Shows the teaser and opt-out counts as of this many days ago, 0 or empty for today.",
            "format": "int32",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDataroomNdaTemplateDto": {
        "required": [
          "defaultText"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "defaultText": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isCurrentVersion": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDealsSummaryDrillInItemDto": {
        "required": [
          "companyName",
          "dealName",
          "dealStatusName"
        ],
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "dealStatusName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionManagerName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportItemDto": {
        "required": [
          "bankName"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "dealLaunched": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetIssued": {
            "type": "integer",
            "format": "int32"
          },
          "underwriting": {
            "type": "integer",
            "format": "int32"
          },
          "totalDeals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDeclineReasonFormDto": {
        "required": [
          "associatedDealCriterion",
          "declineReasonType",
          "includeOffMarketDeals",
          "isActive",
          "isBorrowerVisible",
          "isLenderVisible",
          "isUnresponsive",
          "reasonName"
        ],
        "type": "object",
        "properties": {
          "reasonName": {
            "maxLength": 150,
            "type": "string"
          },
          "declineReasonType": {
            "enum": [
              "Both",
              "DataRoomOnly",
              "AnalysisOnly"
            ],
            "type": "string"
          },
          "associatedDealCriterion": {
            "enum": [
              "NotApplicable",
              "None",
              "EBITDA",
              "MaxLeverageRatio",
              "Industries",
              "MinYearsOperating",
              "PositiveTangibleNetWorth",
              "MinimumCoverage",
              "InstitutionalSponsor",
              "PersonalGuarantee",
              "DealSize",
              "Geography",
              "Financing"
            ],
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLenderVisible": {
            "type": "boolean"
          },
          "isBorrowerVisible": {
            "type": "boolean"
          },
          "isUnresponsive": {
            "type": "boolean"
          },
          "includeOffMarketDeals": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderDeclineReasonItemDto": {
        "required": [
          "reasonName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reasonName": {
            "type": "string"
          },
          "declineReasonType": {
            "enum": [
              "Both",
              "DataRoomOnly",
              "AnalysisOnly"
            ],
            "type": "string"
          },
          "associatedDealCriterion": {
            "enum": [
              "NotApplicable",
              "None",
              "EBITDA",
              "MaxLeverageRatio",
              "Industries",
              "MinYearsOperating",
              "PositiveTangibleNetWorth",
              "MinimumCoverage",
              "InstitutionalSponsor",
              "PersonalGuarantee",
              "DealSize",
              "Geography",
              "Financing"
            ],
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLenderVisible": {
            "type": "boolean"
          },
          "isBorrowerVisible": {
            "type": "boolean"
          },
          "isUnresponsive": {
            "type": "boolean"
          },
          "includeOffMarketDeals": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementReportItemDto": {
        "required": [
          "agreementStatusName",
          "bankName",
          "tier3FocusAreas"
        ],
        "type": "object",
        "properties": {
          "finderFeeAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "tier3FocusAreas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "oneTimePayment": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "portionOfInterestPaid": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "capOnReferralPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "appliesToAllContacts": {
            "type": "boolean"
          },
          "agreementStatusName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementsReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier3FocusArea": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "0 for all agreements, 1 for active agreements, 2 for expired agreements.",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderNetworkTrancheCapacityDto": {
        "required": [
          "trancheName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "trancheName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "isDefaultValues": {
            "type": "boolean"
          },
          "profileCount": {
            "type": "integer",
            "format": "int32"
          },
          "average": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "standardDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "typicalCreditSpreadType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "pricingRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderPerformanceReportItemDto": {
        "required": [
          "bankName",
          "teaserTimeToAccept",
          "termSheetTimeToSubmit"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "teasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "teasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "teaserAcceptAverageMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "teaserTimeToAccept": {
            "type": "string"
          },
          "teasersNoResponse": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetsSubmitted": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetSubmittedAverageMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetTimeToSubmit": {
            "type": "string"
          },
          "termSheetsAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "closedDeals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderPerformanceReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "description": "Only deals created on or after this date, a year ago by default.",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "description": "Only deals created on or before this date, today by default.",
            "format": "date-time",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderProfileReportItemDto": {
        "required": [
          "bankName",
          "contactName",
          "officeLocation"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "officeLocation": {
            "type": "string"
          },
          "generalTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "assetBasedTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorCashFlowTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "ventureDebtTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "equityInvestmentTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "seniorRealEstateTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "juniorRealEstateTabStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "underwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "hasSbaLending": {
            "type": "boolean"
          },
          "isPreferredSbaLender": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderProfileReportParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankContactName": {
            "type": "string",
            "nullable": true
          },
          "generalStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "assetBasedStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "seniorCashStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "juniorCashStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "ventureDebtStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "equityStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "seniorRealEstateStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "juniorRealEstateStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "profileStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true
          },
          "sbaLending": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPreferred": {
            "type": "boolean",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The lender profile report filters, an empty status or SBA filter matches any value."
      },
      "Cerebro.Api.Features.Employees.Models.LenderReferralDto": {
        "required": [
          "companyName",
          "createdOnDisplay",
          "emailAddress",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "natureOfReferral": {
            "enum": [
              "AdditionalCapitalNeeded",
              "SeekingToExitRelationship",
              "NotFitForCurrentNeeds",
              "NotFit",
              "Unknown"
            ],
            "type": "string"
          },
          "referralStatus": {
            "enum": [
              "Sent",
              "LinkClicked",
              "LoanAssessmentStarted",
              "LoanAssessmentCompleted",
              "LoanAssessmentDeclined",
              "LoanAssessmentAccepted",
              "ContractSigned",
              "DealLaunched",
              "DealClosedWon",
              "DealCanceled"
            ],
            "type": "string"
          },
          "createdOnDisplay": {
            "type": "string"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderReferralReportItemDto": {
        "required": [
          "bankName",
          "companyName",
          "emailAddress",
          "lenderName",
          "name",
          "natureOfReferralName",
          "referralStatusName"
        ],
        "type": "object",
        "properties": {
          "lenderReferralGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lenderName": {
            "type": "string"
          },
          "lenderScore": {
            "type": "integer",
            "format": "int32"
          },
          "companyName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "natureOfReferralName": {
            "type": "string"
          },
          "referralStatusName": {
            "type": "string"
          },
          "lastSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentCount": {
            "type": "integer",
            "format": "int32"
          },
          "complimentaryAnalysisCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderReferralsReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "referralStatus": {
            "enum": [
              "Sent",
              "LinkClicked",
              "LoanAssessmentStarted",
              "LoanAssessmentCompleted",
              "LoanAssessmentDeclined",
              "LoanAssessmentAccepted",
              "ContractSigned",
              "DealLaunched",
              "DealClosedWon",
              "DealCanceled"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfReferral": {
            "enum": [
              "AdditionalCapitalNeeded",
              "SeekingToExitRelationship",
              "NotFitForCurrentNeeds",
              "NotFit",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderScoreDetailDto": {
        "required": [
          "detail"
        ],
        "type": "object",
        "properties": {
          "lenderScoreDetailId": {
            "type": "integer",
            "format": "int64"
          },
          "detail": {
            "type": "string"
          },
          "detailValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderScoreDto": {
        "required": [
          "lenderScoreDetails"
        ],
        "type": "object",
        "properties": {
          "lenderScoreId": {
            "type": "integer",
            "format": "int64"
          },
          "scoreType": {
            "enum": [
              "DataRoomUse",
              "TeaserResponseRate",
              "AccessedDataRooms",
              "TermSheetPercentage",
              "ClosedDeals",
              "LoanWatchSubscription"
            ],
            "type": "string"
          },
          "points": {
            "type": "integer",
            "format": "int32"
          },
          "maxPoints": {
            "type": "integer",
            "format": "int32"
          },
          "sortIndex": {
            "type": "integer",
            "format": "int32"
          },
          "lenderScoreDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderScoreDetailDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderSummaryFinancingTypeDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "hasFinderFeeAgreement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderSummaryMatchedLenderDto": {
        "required": [
          "bankName",
          "bankTypeName",
          "currency",
          "statusName"
        ],
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "statusName": {
            "type": "string"
          },
          "bankTypeName": {
            "type": "string"
          },
          "bankAssets": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "currency": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "An active lender matching the lender name or bank type filters that has no contacts, so no deal profiles."
      },
      "Cerebro.Api.Features.Employees.Models.LenderSummaryReportFiltersDto": {
        "required": [
          "sbaPariPassuLending"
        ],
        "type": "object",
        "properties": {
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankContactName": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuLending": {
            "type": "integer",
            "description": "0 = any, 1 = SBA 7a pari passu lenders, 2 = not pari passu lenders.",
            "format": "int32"
          },
          "active": {
            "type": "integer",
            "description": "-1 = any status, 1 = active contacts, 0 = inactive contacts.",
            "format": "int32"
          },
          "industryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "specialtyIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "locationIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "dealTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Unknown",
                "RealEstate",
                "WorkingCapital",
                "Buyout",
                "Dividend",
                "Refinancing",
                "EquipmentLeasing",
                "InvestmentRealEstate",
                "Acquisitions",
                "SoftwareLeasing",
                "RetailInventory",
                "GrowthCapital",
                "Recapitalizations",
                "SupplyChain",
                "RescueFinancing",
                "ProjectFinance",
                "AcquisitionAddon",
                "AcquisitionPartnerBuyout",
                "AcquisitionManagementBuyout",
                "Other"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "excludedBankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "National",
                "Regional",
                "Credit_Union",
                "Community_Bank",
                "Non_Bank_Lender",
                "Mezzanine_Lender",
                "International",
                "AssetBased",
                "FamilyOffice",
                "Sbic",
                "Other"
              ],
              "type": "string"
            },
            "description": "Bank types to leave out of the report.",
            "nullable": true
          },
          "tier1BankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Commercial",
                "NonBank",
                "Other"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "tier2BankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "International",
                "National",
                "Regional",
                "CreditUnion",
                "CommunityBank",
                "Sblc",
                "Sbic",
                "Bdc",
                "DirectLender",
                "VentureLender",
                "AssetBased",
                "FamilyOffice",
                "PrivateEquity"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "tier3ContactTypes": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "Sba7a",
                "Sba504",
                "SeniorCash",
                "AssetWorkingCapital",
                "AssetEquipment",
                "RealEstateSenior",
                "MiddleMarket",
                "LeveragedFinance",
                "SyndicatedCapitalMarkets",
                "JuniorCash",
                "Mezzanine",
                "StructuredPrivateEquity",
                "RealEstateJunior",
                "EquityMinority",
                "EquityControl",
                "UnitrancheStretchSenior",
                "VentureCapital",
                "MiddleMarketSpecialist",
                "AssetIntangible",
                "Usda",
                "VentureDebt",
                "RecurringRevenue",
                "BridgeMcaLending"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "finderFees": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = has a finder fee agreement, 2 = no finder fee agreement.",
            "nullable": true
          },
          "customers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = B2B, 2 = B2C, 3 = B2G.",
            "nullable": true
          },
          "collaterals": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = 100% collateralized, 2 = A/R, 3 = inventory.",
            "nullable": true
          },
          "lenderScores": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = green star through 6 = red, 7 = white (negative score), 8 = gray (no score).",
            "nullable": true
          },
          "sponsorsRequired": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = yes, 2 = no, 3 = unknown.",
            "nullable": true
          },
          "specialtyFinance": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The lender summary report filters. Finder fee, customer, collateral, lender score, sponsor and specialty finance\nvalues are the option values spBankDealProfileSearch filters on."
      },
      "Cerebro.Api.Features.Employees.Models.LenderSummaryReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sbaPariPassuLending",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankContactName": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuLending": {
            "type": "integer",
            "description": "0 = any, 1 = SBA 7a pari passu lenders, 2 = not pari passu lenders.",
            "format": "int32"
          },
          "active": {
            "type": "integer",
            "description": "-1 = any status, 1 = active contacts, 0 = inactive contacts.",
            "format": "int32"
          },
          "industryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "specialtyIndustryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "locationIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "dealTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Unknown",
                "RealEstate",
                "WorkingCapital",
                "Buyout",
                "Dividend",
                "Refinancing",
                "EquipmentLeasing",
                "InvestmentRealEstate",
                "Acquisitions",
                "SoftwareLeasing",
                "RetailInventory",
                "GrowthCapital",
                "Recapitalizations",
                "SupplyChain",
                "RescueFinancing",
                "ProjectFinance",
                "AcquisitionAddon",
                "AcquisitionPartnerBuyout",
                "AcquisitionManagementBuyout",
                "Other"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "excludedBankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "National",
                "Regional",
                "Credit_Union",
                "Community_Bank",
                "Non_Bank_Lender",
                "Mezzanine_Lender",
                "International",
                "AssetBased",
                "FamilyOffice",
                "Sbic",
                "Other"
              ],
              "type": "string"
            },
            "description": "Bank types to leave out of the report.",
            "nullable": true
          },
          "tier1BankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Commercial",
                "NonBank",
                "Other"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "tier2BankTypes": {
            "type": "array",
            "items": {
              "enum": [
                "International",
                "National",
                "Regional",
                "CreditUnion",
                "CommunityBank",
                "Sblc",
                "Sbic",
                "Bdc",
                "DirectLender",
                "VentureLender",
                "AssetBased",
                "FamilyOffice",
                "PrivateEquity"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "tier3ContactTypes": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "Sba7a",
                "Sba504",
                "SeniorCash",
                "AssetWorkingCapital",
                "AssetEquipment",
                "RealEstateSenior",
                "MiddleMarket",
                "LeveragedFinance",
                "SyndicatedCapitalMarkets",
                "JuniorCash",
                "Mezzanine",
                "StructuredPrivateEquity",
                "RealEstateJunior",
                "EquityMinority",
                "EquityControl",
                "UnitrancheStretchSenior",
                "VentureCapital",
                "MiddleMarketSpecialist",
                "AssetIntangible",
                "Usda",
                "VentureDebt",
                "RecurringRevenue",
                "BridgeMcaLending"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "finderFees": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = has a finder fee agreement, 2 = no finder fee agreement.",
            "nullable": true
          },
          "customers": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = B2B, 2 = B2C, 3 = B2G.",
            "nullable": true
          },
          "collaterals": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = 100% collateralized, 2 = A/R, 3 = inventory.",
            "nullable": true
          },
          "lenderScores": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = green star through 6 = red, 7 = white (negative score), 8 = gray (no score).",
            "nullable": true
          },
          "sponsorsRequired": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "1 = yes, 2 = no, 3 = unknown.",
            "nullable": true
          },
          "specialtyFinance": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderSummarySearchItemDto": {
        "required": [
          "bankName",
          "bankTypeName",
          "contactFullName",
          "excludedIndustries",
          "expectedCurrency",
          "facilityTypes",
          "financingTypes",
          "leverageRatios",
          "location",
          "specialtyIndustries",
          "targetDealTypes"
        ],
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactFullName": {
            "type": "string"
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankName": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "allStates": {
            "type": "boolean"
          },
          "financingTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummaryFinancingTypeDto"
            }
          },
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "expectedCurrency": {
            "type": "string"
          },
          "leverageRatios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bankTypeName": {
            "type": "string"
          },
          "excludedIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "specialtyIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "targetDealTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "facilityTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderTeaserReportItemDto": {
        "required": [
          "bankName",
          "companyName",
          "lenderName",
          "trancheTypeName"
        ],
        "type": "object",
        "properties": {
          "dataRoomTeaserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lenderName": {
            "type": "string"
          },
          "lenderScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companyCurrency": {
            "type": "string",
            "nullable": true
          },
          "trancheTypeName": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "decisionOn": {
            "type": "string",
            "description": "When the lender accepted the teaser, only set by the accepted teasers report.",
            "format": "date-time",
            "nullable": true
          },
          "daysPending": {
            "type": "integer",
            "description": "Days since the teaser was sent (outstanding teasers) or accepted (accepted teasers).",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A teaser sent to a lender, used by the outstanding and accepted teaser reports."
      },
      "Cerebro.Api.Features.Employees.Models.LenderTeaserReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LenderTrancheCapacityDetailDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "profileCount": {
            "type": "integer",
            "format": "int32"
          },
          "average": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The number of lender profiles in the network that lend on a tranche and their average leverage ratio or advance rate."
      },
      "Cerebro.Api.Features.Employees.Models.LeverageRatioStatDto": {
        "type": "object",
        "properties": {
          "totalLenders": {
            "type": "integer",
            "format": "int32"
          },
          "avgLeverageRatio": {
            "type": "number",
            "format": "double"
          },
          "minLeverageRatio": {
            "type": "number",
            "format": "double"
          },
          "maxLeverageRatio": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanApplicationStartFormDto": {
        "required": [
          "emailAddress",
          "firstName",
          "hasExistingCompany",
          "isNonCompanyUser",
          "isParentCompanyContact",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "newCompanyName": {
            "type": "string",
            "nullable": true
          },
          "hasExistingCompany": {
            "type": "boolean"
          },
          "isParentCompanyContact": {
            "type": "boolean"
          },
          "isNonCompanyUser": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplateSearchItemDto": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "displayOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "folderTemplateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string",
            "nullable": true
          },
          "isLoanApplicationDefault": {
            "type": "boolean"
          },
          "isCustomFolder": {
            "type": "boolean"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "templateFileName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplatesReportParamsDto": {
        "required": [
          "loanApplicationDefault",
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "nullable": true
          },
          "folderTemplateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanApplicationDefault": {
            "type": "integer",
            "description": "-1 = any, 1 = loan application defaults, 0 = not loan application defaults",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanOptionConfigDto": {
        "required": [
          "amortization",
          "collateral",
          "loanDescription",
          "loanOptionTypeName",
          "loanStructure",
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptionType": {
            "enum": [
              "CashFlowBank",
              "SeniorCashNonBank",
              "JuniorCashNonBank",
              "AssetBasedInvArBank",
              "AssetBasedInvArNonBank",
              "AssetBasedFixedBank",
              "AssetBasedFixedNonBank",
              "SmallGovernment",
              "LargeGovernment",
              "VentureBank",
              "VentureNonBank",
              "PoFinancing",
              "Factoring",
              "InventoryOnly",
              "LenderFinanceBank",
              "LenderFinanceNonBank",
              "FloorplanFinanceBank",
              "FloorplanFinanceNonBank",
              "BridgeLoanNonBank"
            ],
            "type": "string"
          },
          "loanOptionTypeName": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "type": "string",
            "nullable": true
          },
          "typicalCreditSpreadType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "collateral": {
            "type": "string"
          },
          "amortization": {
            "type": "string"
          },
          "loanStructure": {
            "type": "string"
          },
          "loanDescription": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanOptionConfigFormDto": {
        "required": [
          "amortization",
          "collateral",
          "highestRate",
          "loanDescription",
          "loanStructure",
          "lowestRate",
          "title",
          "typicalCreditSpreadType"
        ],
        "type": "object",
        "properties": {
          "title": {
            "maxLength": 256,
            "type": "string"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "maxLength": 256,
            "type": "string",
            "nullable": true
          },
          "typicalCreditSpreadType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "collateral": {
            "maxLength": 256,
            "type": "string"
          },
          "amortization": {
            "maxLength": 256,
            "type": "string"
          },
          "loanStructure": {
            "maxLength": 256,
            "type": "string"
          },
          "loanDescription": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityDto": {
        "required": [
          "dealTypeName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string"
          },
          "dealTypeName": {
            "type": "string"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "seniorAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assetAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "seniorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean"
          },
          "sba7APrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba7AAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanPurposeFacilityFormDto": {
        "required": [
          "facilityType",
          "sbaEligible"
        ],
        "type": "object",
        "properties": {
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "seniorAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assetAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "seniorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean"
          },
          "sba7APrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba7AAmortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanRequestSearchParamsDto": {
        "required": [
          "dealState",
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "dealState": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointExcludedLenderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "isIncumbentLender": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointExcludedLendersPageDto": {
        "required": [
          "excludedLenders",
          "facility"
        ],
        "type": "object",
        "properties": {
          "facility": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityHighLevelDto"
          },
          "excludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointExcludedLenderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialAuditDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialHistoryFormDto": {
        "required": [
          "financialsAsOfDate",
          "ttmEbitda",
          "ttmRevenue"
        ],
        "type": "object",
        "properties": {
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double"
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double"
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialsPageDto": {
        "required": [
          "facility",
          "financials"
        ],
        "type": "object",
        "properties": {
          "facility": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityHighLevelDto"
          },
          "financials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatch.PainPointFinancialAuditDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatchProspectSearchItemDto": {
        "required": [
          "emailAddress",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "contactName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "mostRecentOn": {
            "type": "string",
            "format": "date-time"
          },
          "numberOfSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberRefinanceSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberRefinanceDetails": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralPageDto": {
        "required": [
          "employeeUsers",
          "referralStatus"
        ],
        "type": "object",
        "properties": {
          "employeeUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.SearchResultDto"
            }
          },
          "pending": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "conducted": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "inProgress": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "signed": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "launched": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "termSheet": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "underwriting": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "current": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto"
          },
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "isClosed": {
            "type": "boolean",
            "readOnly": true
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "employeeUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.LoanWatchTreasuryReferralStatusStatDto": {
        "required": [
          "referralStatus"
        ],
        "type": "object",
        "properties": {
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageEmployeeReportFormDto": {
        "required": [
          "categoryId",
          "isAdminReport",
          "reportName",
          "reportUrl"
        ],
        "type": "object",
        "properties": {
          "reportName": {
            "maxLength": 512,
            "type": "string"
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "reportUrl": {
            "maxLength": 512,
            "type": "string"
          },
          "reactUrl": {
            "maxLength": 512,
            "type": "string",
            "description": "The employee app route of a converted report, starting with a slash, empty for legacy reports.",
            "nullable": true
          },
          "reportDescription": {
            "type": "string",
            "nullable": true
          },
          "controlledObjectId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isAdminReport": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageEmployeeReportItemDto": {
        "required": [
          "categoryName",
          "reportName",
          "reportUrl"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "reportName": {
            "type": "string"
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "categoryName": {
            "type": "string"
          },
          "reportUrl": {
            "type": "string"
          },
          "reactUrl": {
            "type": "string",
            "nullable": true
          },
          "reportDescription": {
            "type": "string",
            "nullable": true
          },
          "controlledObjectId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "controlledObjectName": {
            "type": "string",
            "nullable": true
          },
          "isAdminReport": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageEmployeeReportsParamsDto": {
        "required": [
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "controlledObjectType": {
            "type": "integer",
            "description": "-1 = any, 0 = reports without a controlled object, otherwise the controlled object type.",
            "format": "int32"
          },
          "adminReport": {
            "type": "integer",
            "description": "-1 = any, 1 = admin reports, 0 = standard reports",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageProductDto": {
        "required": [
          "productName",
          "successFeeTiers"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "productName": {
            "type": "string"
          },
          "productCategory": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string"
          },
          "productStatus": {
            "enum": [
              "Inactive",
              "Active"
            ],
            "type": "string"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "subscriptionPrice": {
            "type": "number",
            "format": "double"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "accessFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double"
          },
          "cancellationFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "isContractRequired": {
            "type": "boolean"
          },
          "isCompanySubscriptionDealProduct": {
            "type": "boolean"
          },
          "isDirectIntroProduct": {
            "type": "boolean"
          },
          "isDirectConnectProduct": {
            "type": "boolean"
          },
          "monthlyTreasuryReferrals": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthlyDealOpportunities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "platformAccessFeeLineItemName": {
            "type": "string",
            "nullable": true
          },
          "cancellationFeeLineItemName": {
            "type": "string",
            "nullable": true
          },
          "successFeeLineItemName": {
            "type": "string",
            "nullable": true
          },
          "subscriptionFeeLineItemName": {
            "type": "string",
            "nullable": true
          },
          "implementationFeeLineItemName": {
            "type": "string",
            "nullable": true
          },
          "unitPriceLineItemName": {
            "type": "string",
            "nullable": true
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageProductFormDto": {
        "required": [
          "cancellationFee",
          "implementationPrice",
          "isCompanySubscriptionDealProduct",
          "isContractRequired",
          "isDirectConnectProduct",
          "isDirectIntroProduct",
          "productCategory",
          "productName",
          "productStatus",
          "setupFee",
          "subscriptionFrequency",
          "subscriptionPrice",
          "successFeeType",
          "unitPrice"
        ],
        "type": "object",
        "properties": {
          "productName": {
            "maxLength": 150,
            "type": "string"
          },
          "productCategory": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string"
          },
          "productStatus": {
            "enum": [
              "Inactive",
              "Active"
            ],
            "type": "string"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "subscriptionPrice": {
            "type": "number",
            "format": "double"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "accessFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double"
          },
          "cancellationFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "successFeeScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "integer",
            "description": "Months, only for one-time products. Credit explorer products are always nine months.",
            "format": "int32"
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "isContractRequired": {
            "type": "boolean"
          },
          "isCompanySubscriptionDealProduct": {
            "type": "boolean"
          },
          "isDirectIntroProduct": {
            "type": "boolean"
          },
          "isDirectConnectProduct": {
            "type": "boolean"
          },
          "monthlyTreasuryReferrals": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthlyDealOpportunities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "platformAccessFeeLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "cancellationFeeLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "successFeeLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "subscriptionFeeLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "implementationFeeLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "unitPriceLineItemName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageProductsParamsDto": {
        "type": "object",
        "properties": {
          "productCategory": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string",
            "nullable": true
          },
          "productStatus": {
            "enum": [
              "Inactive",
              "Active"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageUsersReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "0 = all users, 1 = active users, 2 = locked users",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ManageUsersSearchItemDto": {
        "required": [
          "emailAddress",
          "firstName",
          "fullname",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullname": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "role": {
            "enum": [
              "None",
              "CompanyUser",
              "BankUser",
              "TeamMember",
              "Employee",
              "Consultant",
              "DealPartner"
            ],
            "type": "string"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isAuthorizedContractSigner": {
            "type": "boolean"
          },
          "isTransactionManager": {
            "type": "boolean"
          },
          "isLenderRelationsManager": {
            "type": "boolean"
          },
          "isSalesRep": {
            "type": "boolean"
          },
          "isComplianceEmployee": {
            "type": "boolean"
          },
          "canAccessRestrictedCompanies": {
            "type": "boolean"
          },
          "lastLogin": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isCurrentUser": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MarketTrackerActivityReportParams": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MarketTrackerActivitySearchItemDto": {
        "required": [
          "collateralItems",
          "contactName",
          "firstName",
          "interestStatus",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "collateralList": {
            "type": "string",
            "nullable": true
          },
          "collateralItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "interestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "interestStatus": {
            "type": "string"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "isEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MaturingLoanDto": {
        "required": [
          "companyName",
          "facilityName",
          "quarterLabel"
        ],
        "type": "object",
        "properties": {
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "facilityName": {
            "type": "string"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "quarterLabel": {
            "type": "string"
          },
          "loanAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MaturingLoanQuarterDto": {
        "required": [
          "label"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "loanCount": {
            "type": "integer",
            "format": "int32"
          },
          "loanAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MaturingLoansReportDto": {
        "required": [
          "currency",
          "loans",
          "quarters"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "The currency the amounts were converted to, the employee's currency."
          },
          "totalLoans": {
            "type": "integer",
            "format": "int32"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "quarters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MaturingLoanQuarterDto"
            },
            "description": "The next twelve quarters, starting with the current one."
          },
          "loans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MaturingLoanDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MergeBankFormDto": {
        "required": [
          "targetBankGuid"
        ],
        "type": "object",
        "properties": {
          "targetBankGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MergeCompanyFormDto": {
        "required": [
          "targetCompanyGuid"
        ],
        "type": "object",
        "properties": {
          "targetCompanyGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.MissingUnderwritingProfileItemDto": {
        "required": [
          "bankName",
          "contactName"
        ],
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactRole": {
            "enum": [
              "CreditOfficer",
              "TreasuryManagementOfficer",
              "BankAssociate",
              "BankManagement",
              "RelationshipManager",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "lastLoginOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.NaicsCodeFormDto": {
        "required": [
          "industryName",
          "sbaEligible"
        ],
        "type": "object",
        "properties": {
          "code": {
            "maxLength": 6,
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "maxLength": 255,
            "type": "string"
          },
          "sbaEligible": {
            "type": "boolean"
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.NaicsCodeReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "term": {
            "type": "string",
            "description": "Matches against either the code or the industry name.",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.NaicsCodeSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean"
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.OffMarketDealActivityReportParams": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.OffMarketDealActivitySearchItemDto": {
        "required": [
          "firstName",
          "interestStatus",
          "lastName",
          "lenderName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "interestStatus": {
            "type": "string"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "isEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.OpenDiligenceReportItemDto": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "transactionManager": {
            "type": "string",
            "nullable": true
          },
          "diligenceType": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.OpenDiligenceReportParams": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "transactionManagerUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ParentCompanyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.PendingFinancialLoadItemDto": {
        "required": [
          "companyName",
          "documentTitle",
          "fileName",
          "typeName"
        ],
        "type": "object",
        "properties": {
          "companyDocumentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "typeName": {
            "type": "string",
            "description": "Like 2026 Q2 Financials for financial statements, otherwise the document type."
          },
          "documentTitle": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "uploadedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "uploadedBy": {
            "type": "string",
            "description": "The company user that uploaded the document, null when it was not uploaded by a company user.",
            "nullable": true
          },
          "daysOld": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.PendingInvoiceItemDto": {
        "required": [
          "customerName",
          "productName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "paymentScheduleCount": {
            "type": "integer",
            "format": "int32"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "canEditSchedule": {
            "type": "boolean"
          },
          "canApplyPayment": {
            "type": "boolean"
          },
          "customerName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "productName": {
            "type": "string"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "isRevenue": {
            "type": "boolean",
            "description": "False while the invoice is for a pending contract."
          },
          "isCreditMemo": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "An invoice in the pending invoices report, the same shape as the other invoice lists so the invoice actions can be reused."
      },
      "Cerebro.Api.Features.Employees.Models.PendingInvoicesReportParamsDto": {
        "type": "object",
        "properties": {
          "invoiceNumber": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "customerName": {
            "type": "string",
            "nullable": true
          },
          "productCategory": {
            "type": "integer",
            "description": "The product category of the invoice: 2 Credit Explorer, 3 Compliance Navigator, 4 Loan Watch Subscription, 5 Enterprise Loan Watch.",
            "format": "int32",
            "nullable": true
          },
          "invoiceStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string",
            "nullable": true
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string",
            "nullable": true
          },
          "sent": {
            "type": "boolean",
            "description": "True for invoices that have been sent, false for invoices that have not, empty for either.",
            "nullable": true
          },
          "invoiceDateStart": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "invoiceDateEnd": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "dueDateStart": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "dueDateEnd": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "sortBy": {
            "type": "string",
            "nullable": true
          },
          "sortDir": {
            "type": "string",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.PreMarketDealSearchItemDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "acceptedOn": {
            "type": "string",
            "format": "date-time"
          },
          "lendersEmailed": {
            "type": "integer",
            "format": "int32"
          },
          "bankLendersInterested": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankLendersInterested": {
            "type": "integer",
            "format": "int32"
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean",
            "nullable": true
          },
          "financeExpensesOrGrowth": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExistingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingNeeds": {
            "type": "boolean",
            "nullable": true
          },
          "dealPurposeList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.PreMarketDealTrackingEmailDto": {
        "required": [
          "contactName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "contactName": {
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "responseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ProductSuccessFeeTierFormDto": {
        "required": [
          "basisPoints",
          "lowerFundingAmount"
        ],
        "type": "object",
        "properties": {
          "lowerFundingAmount": {
            "maximum": 1.7976931348623157E+308,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "description": "Empty for the last tier, which has no upper limit.",
            "format": "double",
            "nullable": true
          },
          "basisPoints": {
            "maximum": 10000,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ProspectPromptDto": {
        "required": [
          "promptContent"
        ],
        "type": "object",
        "properties": {
          "promptContent": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.QuestionCategoryFormDto": {
        "required": [
          "categoryName",
          "indexOrder"
        ],
        "type": "object",
        "properties": {
          "categoryName": {
            "maxLength": 128,
            "type": "string"
          },
          "indexOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.QuestionCategoryItemDto": {
        "required": [
          "categoryName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "categoryName": {
            "type": "string"
          },
          "indexOrder": {
            "type": "integer",
            "format": "int32"
          },
          "questionCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadActivityReportItemDto": {
        "type": "object",
        "properties": {
          "reportDate": {
            "type": "string",
            "format": "date-time"
          },
          "numberRawLeads": {
            "type": "integer",
            "format": "int32"
          },
          "numberBrokerSubmittedDeals": {
            "type": "integer",
            "format": "int32"
          },
          "dealsWithLenderInterest": {
            "type": "integer",
            "format": "int32"
          },
          "numberInterested": {
            "type": "integer",
            "format": "int32"
          },
          "numberNotInterested": {
            "type": "integer",
            "format": "int32"
          },
          "numberBorrowerAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "numberBorrowerDeclines": {
            "type": "integer",
            "format": "int32"
          },
          "averageResponseTime": {
            "type": "number",
            "description": "The average days between a lender invite and the borrower's response, null when no borrower responded.",
            "format": "double",
            "nullable": true
          },
          "activeLenderContactCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeBorrowerCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A month of DirectConnect Marketplace activity."
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardItemDto": {
        "required": [
          "companyName",
          "emailAddress",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "borrowerLogin": {
            "type": "boolean"
          },
          "dealCreatedOn": {
            "type": "string",
            "format": "date-time"
          },
          "firstLenderInterest": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastLenderInterest": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numLenderInvites": {
            "type": "integer",
            "format": "int32"
          },
          "numPending": {
            "type": "integer",
            "format": "int32"
          },
          "numAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "numDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "numLogins": {
            "type": "integer",
            "format": "int32"
          },
          "lastLogin": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "stateIndustrySet": {
            "type": "boolean"
          },
          "revenueEbitdaSet": {
            "type": "boolean"
          },
          "balanceSheetSet": {
            "type": "boolean"
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isAcquisition": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardParamsDto": {
        "required": [
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadDealAuditDto": {
        "required": [
          "property"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "changedBy": {
            "type": "string",
            "description": "The employee who made the change, null when it was not made by a user.",
            "nullable": true
          },
          "property": {
            "type": "string",
            "description": "What changed, like Visibility."
          },
          "oldValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto": {
        "required": [
          "bankContactName",
          "bankName",
          "borrowerStatusName",
          "companyName",
          "contactName",
          "interestedName",
          "lenderStatusName"
        ],
        "type": "object",
        "properties": {
          "rawLeadInterestGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankTypeName": {
            "type": "string",
            "nullable": true
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactName": {
            "type": "string"
          },
          "interestedName": {
            "type": "string",
            "description": "Pending, Yes or No."
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          },
          "borrowerStatusName": {
            "type": "string"
          },
          "borrowerInterestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderStatusName": {
            "type": "string",
            "description": "The lender status, Pending when the lender has not set a status."
          },
          "declineReason": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "nullable": true
          },
          "declineReasonName": {
            "type": "string",
            "nullable": true
          },
          "statusOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasBorrowerAction": {
            "type": "boolean"
          },
          "hasLenderAction": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "A lender's interest in a DirectConnect Marketplace deal, used by the interest report and its drill ins."
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadInterestReportParamsDto": {
        "required": [
          "borrowerStatus",
          "interested",
          "lenderStatus",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "bankContactName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "interested": {
            "type": "integer",
            "description": "0 for any, 1 for interested, 2 for not interested.",
            "format": "int32"
          },
          "borrowerStatus": {
            "type": "integer",
            "description": "0 for any, 1 for pending, 2 for connected, 3 for declined.",
            "format": "int32"
          },
          "lenderStatus": {
            "type": "integer",
            "description": "0 for any, otherwise the lender's raw lead status.",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardItemDto": {
        "required": [
          "bankName",
          "bankTypeName",
          "lenderName",
          "subscriptionTypeName"
        ],
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankTypeName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "subscriptionTypeName": {
            "type": "string"
          },
          "numInvitesSent": {
            "type": "integer",
            "format": "int32"
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numBorrowerAccepts": {
            "type": "integer",
            "format": "int32"
          },
          "acceptRatePercent": {
            "type": "number",
            "description": "Already a percent (5 is 5%).",
            "format": "double"
          },
          "monthlyLimit": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardParamsDto": {
        "required": [
          "sortBy",
          "sortDir",
          "subscriptionType"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "subscriptionType": {
            "type": "integer",
            "description": "0 for any subscription, 1 for enterprise, 2 for individual, 3 for no subscription.",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.RawLeadLenderUsageItemDto": {
        "type": "object",
        "properties": {
          "reportDate": {
            "type": "string",
            "format": "date-time"
          },
          "numberInterested": {
            "type": "integer",
            "format": "int32"
          },
          "numberNotInterested": {
            "type": "integer",
            "format": "int32"
          },
          "numberBorrowerAccepted": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchBankContactSubscriptionsParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchBankDocumentItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "documentTitle": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "enum": [
              "Bank_Profile",
              "Loan_Document",
              "Finders_Fee_Agreement",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "canDelete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchBankOfficeItemDto": {
        "required": [
          "addressString",
          "cityState",
          "fullAddress"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "countryName": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "isBillingAddress": {
            "type": "boolean",
            "nullable": true
          },
          "isPrimaryAddress": {
            "type": "boolean",
            "nullable": true
          },
          "canDelete": {
            "type": "boolean"
          },
          "addressString": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "cityState": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchCompanyOfficeItemDto": {
        "required": [
          "addressString",
          "cityState",
          "fullAddress"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "officeName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "countryName": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "isBillingAddress": {
            "type": "boolean",
            "nullable": true
          },
          "isHeadquarters": {
            "type": "boolean",
            "nullable": true
          },
          "canDelete": {
            "type": "boolean"
          },
          "addressString": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "cityState": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchInvoiceItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "paymentScheduleCount": {
            "type": "integer",
            "format": "int32"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "canEditSchedule": {
            "type": "boolean"
          },
          "canApplyPayment": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchLoanRequestItemDto": {
        "required": [
          "companyName",
          "contractType",
          "dealName",
          "launchDateString",
          "marketplace"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "companyCurrency": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string"
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "dealLaunchDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "launchDateString": {
            "type": "string"
          },
          "transactionManagerName": {
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "totalLoanApplicationTasks": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksOpen": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksClosed": {
            "type": "integer",
            "format": "int32"
          },
          "teasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "teasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "totalDiligenceRequests": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsOpen": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsClosed": {
            "type": "integer",
            "format": "int32"
          },
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealPartnerContactName": {
            "type": "string",
            "nullable": true
          },
          "dealPartnerName": {
            "type": "string",
            "nullable": true
          },
          "contractType": {
            "type": "string"
          },
          "marketplace": {
            "type": "string"
          },
          "salesRepName": {
            "type": "string",
            "nullable": true
          },
          "numberDataRoomDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "contactEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasReachedContractSigned": {
            "type": "boolean"
          },
          "showBorrower": {
            "type": "boolean"
          },
          "showAcquisition": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SearchProspectsParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SendBillingPeriodTermsFormDto": {
        "required": [
          "emailBody",
          "subject",
          "to"
        ],
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "toList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "cc": {
            "type": "string",
            "nullable": true
          },
          "ccList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SetupDealPartnerReferralCodeFormDto": {
        "required": [
          "referralCode"
        ],
        "type": "object",
        "properties": {
          "referralCode": {
            "maxLength": 75,
            "minLength": 0,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SingleEngagementReportParamsDto": {
        "required": [
          "dealStatusId",
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "transactionManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SingleEngagementReportSearchItemDto": {
        "required": [
          "companyName",
          "dealName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "companyCurrency": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "transactionManagerName": {
            "type": "string",
            "nullable": true
          },
          "monthlyFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "oneTimeFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "templateType": {
            "enum": [
              "Unset",
              "Company",
              "Bank"
            ],
            "type": "string",
            "nullable": true
          },
          "subdomain": {
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "type": "string",
            "nullable": true
          },
          "identityProviderIdentifier": {
            "type": "string",
            "nullable": true
          },
          "logoutUrl": {
            "type": "string",
            "nullable": true
          },
          "relayUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateFormDto": {
        "required": [
          "subdomain",
          "templateType"
        ],
        "type": "object",
        "properties": {
          "templateType": {
            "enum": [
              "Unset",
              "Company",
              "Bank"
            ],
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "description": "Only used for company templates.",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "description": "Only used for bank templates.",
            "format": "uuid",
            "nullable": true
          },
          "subdomain": {
            "maxLength": 50,
            "type": "string"
          },
          "identityProviderIdentifier": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "logoutUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "relayUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SingleSignOnTemplateReportItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "templateType": {
            "enum": [
              "Unset",
              "Company",
              "Bank"
            ],
            "type": "string"
          },
          "subdomain": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          },
          "identityProviderIdentifier": {
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "type": "string",
            "nullable": true
          },
          "logoutUrl": {
            "type": "string",
            "nullable": true
          },
          "relayUrl": {
            "type": "string",
            "nullable": true
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.SuccessFeeTierFormDto": {
        "required": [
          "basisPoints",
          "lowerFundingAmount"
        ],
        "type": "object",
        "properties": {
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetAnnuallyQuarterlyItemDto": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "revisionYear": {
            "type": "integer",
            "format": "int32"
          },
          "revisionQuarter": {
            "type": "integer",
            "format": "int32"
          },
          "termSheets": {
            "type": "integer",
            "format": "int32"
          },
          "borrowers": {
            "type": "integer",
            "format": "int32"
          },
          "totalCommitments": {
            "type": "number",
            "format": "double"
          },
          "averageCommitmentAmount": {
            "type": "number",
            "format": "double"
          },
          "maxCommitmentAmount": {
            "type": "number",
            "format": "double"
          },
          "averageCommitmentVsRequest": {
            "type": "number",
            "description": "A fraction (0.05 is 5%).",
            "format": "double"
          },
          "factorPurchaseOrderTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "factorPurchaseOrderBorrowers": {
            "type": "integer",
            "format": "int32"
          },
          "factorPurchaseOrderTotalCommitments": {
            "type": "number",
            "format": "double"
          },
          "totalCommitmentTotal": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetAnnuallyQuarterlyReportDto": {
        "required": [
          "periods",
          "totals"
        ],
        "type": "object",
        "properties": {
          "startYear": {
            "type": "integer",
            "format": "int32"
          },
          "endYear": {
            "type": "integer",
            "format": "int32"
          },
          "reportType": {
            "type": "integer",
            "format": "int32"
          },
          "currentRevision": {
            "type": "integer",
            "format": "int32"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetAnnuallyQuarterlyItemDto"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetAnnuallyQuarterlyItemDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetDashboardReportDto": {
        "required": [
          "summary",
          "years"
        ],
        "type": "object",
        "properties": {
          "startYear": {
            "type": "integer",
            "format": "int32"
          },
          "endYear": {
            "type": "integer",
            "format": "int32"
          },
          "years": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetDashboardYearDto"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetDashboardSummaryDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetDashboardSummaryDto": {
        "type": "object",
        "properties": {
          "totalCompanies": {
            "type": "integer",
            "format": "int32"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "totalReportingTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "minimumInterestRate": {
            "type": "number",
            "format": "double"
          },
          "averageInterestRate": {
            "type": "number",
            "format": "double"
          },
          "maximumInterestRate": {
            "type": "number",
            "format": "double"
          },
          "interestRateReduction": {
            "type": "number",
            "format": "double"
          },
          "interestRateReductionPercent": {
            "type": "number",
            "format": "double"
          },
          "minimumTerm": {
            "type": "number",
            "format": "double"
          },
          "averageTerm": {
            "type": "number",
            "format": "double"
          },
          "maximumTerm": {
            "type": "number",
            "format": "double"
          },
          "averageTermIncrease": {
            "type": "number",
            "format": "double"
          },
          "averageTermIncreasePercent": {
            "type": "number",
            "format": "double"
          },
          "averageRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "averageMaxCommitment": {
            "type": "number",
            "format": "double"
          },
          "averageCommitmentVsRequestedAggregate": {
            "type": "number",
            "format": "double"
          },
          "averageCommitmentVsRequested": {
            "type": "number",
            "format": "double"
          },
          "averageCommitmentMaxVsMin": {
            "type": "number",
            "format": "double"
          },
          "minimumFees": {
            "type": "number",
            "format": "double"
          },
          "averageFees": {
            "type": "number",
            "format": "double"
          },
          "maximumFees": {
            "type": "number",
            "format": "double"
          },
          "averageFeeReduction": {
            "type": "number",
            "format": "double"
          },
          "averageFeeReductionPercent": {
            "type": "number",
            "format": "double"
          },
          "minimumCostOfCapital": {
            "type": "number",
            "format": "double"
          },
          "averageCostOfCapital": {
            "type": "number",
            "format": "double"
          },
          "maximumCostOfCapital": {
            "type": "number",
            "format": "double"
          },
          "averageCostOfCapitalReduction": {
            "type": "number",
            "format": "double"
          },
          "averageCostOfCapitalReductionPercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "The term sheet dashboard's statistics, rates and percents are fractions (0.05 is 5%)."
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetDashboardYearDto": {
        "type": "object",
        "properties": {
          "revisionYear": {
            "type": "integer",
            "format": "int32"
          },
          "revisionCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportingCount": {
            "type": "integer",
            "format": "int32"
          },
          "borrowerCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetFeeFormDto": {
        "required": [
          "excludedFromCostOfCapital",
          "feeFrequency",
          "feeName",
          "isActive",
          "isLease",
          "isPrePaymentFee",
          "isRevolver",
          "isTermLoan",
          "termSheetFeeType"
        ],
        "type": "object",
        "properties": {
          "feeName": {
            "maxLength": 128,
            "type": "string"
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string"
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string"
          },
          "isTermLoan": {
            "type": "boolean"
          },
          "isRevolver": {
            "type": "boolean"
          },
          "isLease": {
            "type": "boolean"
          },
          "excludedFromCostOfCapital": {
            "type": "boolean"
          },
          "isPrePaymentFee": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetFeeSearchItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "feeName": {
            "type": "string",
            "nullable": true
          },
          "termSheetFeeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string",
            "nullable": true
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "isTermLoan": {
            "type": "boolean"
          },
          "isRevolver": {
            "type": "boolean"
          },
          "isLease": {
            "type": "boolean"
          },
          "excludedFromCostOfCapital": {
            "type": "boolean"
          },
          "isPrePaymentFee": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "facilityFeeCount": {
            "type": "integer",
            "description": "Fees used on a term sheet facility cannot be deleted, only deactivated.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetFeesReportParamsDto": {
        "required": [
          "active",
          "page",
          "perPage"
        ],
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Every word in the search must be part of the fee name.",
            "nullable": true
          },
          "frequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "integer",
            "description": "-1 = any, 1 = active, 0 = inactive",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportItemDto": {
        "required": [
          "bankName",
          "companyName",
          "dealName",
          "lenderName",
          "transactionManagerName"
        ],
        "type": "object",
        "properties": {
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "isCurrentVersion": {
            "type": "boolean"
          },
          "dateReceived": {
            "type": "string",
            "description": "When the term sheet revision was received, or when the term sheet was submitted if the received date is not set.",
            "format": "date-time",
            "nullable": true
          },
          "transactionManagerName": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "A term sheet revision a lender sent without any facilities."
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportParamsDto": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetPeriodDrillInItemDto": {
        "required": [
          "bankName",
          "companyName"
        ],
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isFactorPurchaseOrder": {
            "type": "boolean"
          },
          "companyName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "averageInterestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "costOfCapitalPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A term sheet revision in a year or quarter drill in."
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetReportFacilityFeeDto": {
        "type": "object",
        "properties": {
          "feeName": {
            "type": "string",
            "nullable": true
          },
          "feeType": {
            "enum": [
              "Currency",
              "Percentage"
            ],
            "type": "string",
            "nullable": true
          },
          "feeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "feeFrequency": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetReportFiltersDto": {
        "required": [
          "acquisitionDeal",
          "borrowerRevenue",
          "receivedDays"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "receivedDays": {
            "type": "integer",
            "description": "Only term sheets received within this many days, 0 for all time.",
            "format": "int32"
          },
          "lenderType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "loanMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Unknown",
                "Term_Loan",
                "Revolver",
                "Letter_of_Credit",
                "Line_of_Credit",
                "Bridge_Facility",
                "Syndicated_Facility",
                "EquipmentLease",
                "CapitalLease",
                "OperatingLease",
                "Bond",
                "Warehouse",
                "Factor",
                "PurchaseOrderFinancing"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "industryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "loanTypes": {
            "type": "array",
            "items": {
              "enum": [
                "SeniorCashFlow",
                "JuniorCashFlow",
                "VentureDebt",
                "Equity",
                "SeniorRealEstate",
                "JuniorRealEstate",
                "Sba7aRealEstate",
                "Sba7aNonRealEstate",
                "Sba504Senior",
                "Sba504Debenture",
                "UsdaBiRealEstate",
                "UsdaBiEquipment",
                "UsdaBiWorkingCapital",
                "AssetBasedWorkingCapitalAccountsReceivable",
                "AssetBasedWorkingCapitalInventory",
                "AssetBasedEquipmentMachinery",
                "AssetBasedEquipmentVehicles",
                "AssetBasedEquipmentMarine",
                "AssetBasedEquipmentHelicopters",
                "AssetBasedEquipmentAircraft",
                "AssetBasedIntangibleIntellectualProperty",
                "AssetBasedIntangibleRoyalty",
                "PoFinancing",
                "Factoring",
                "RecurringRevenue",
                "InventoryOnly",
                "LenderFinance",
                "FloorplanFinance",
                "AssetBasedWorkingCapitalArPlusInventory",
                "BridgeLoan",
                "Unknown"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "collateralTypes": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "SecuredAr",
                "SecuredInventory",
                "SecuredRealEstate",
                "SecuredGeneral",
                "SecuredCash",
                "SecuredSecurities",
                "SecuredEquipment",
                "SecuredOther",
                "Unsecured",
                "SecuredArPlusInventory",
                "SecuredVehicles",
                "SecuredMarine",
                "SecuredHelicopters",
                "SecuredFixedWingAircraft",
                "SecondLienRealEstate",
                "SecuredIp",
                "SecuredRoyalty",
                "SecuredFirstLien",
                "SecondLien",
                "Mezzanine",
                "SecuredSecondLien"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "borrowerRevenue": {
            "type": "integer",
            "description": "0 = any, 1 = less than $10M, 2 = $10M to $50M, 3 = more than $50M.",
            "format": "int32"
          },
          "acquisitionDeal": {
            "type": "integer",
            "description": "0 = any, 1 = acquisition, 2 = non-acquisition.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetReportItemDto": {
        "required": [
          "baseRate",
          "cashInterest",
          "collateral",
          "facilityTypeName",
          "guarantee",
          "itemIdentifier",
          "lenderTypeName",
          "loanTypeName",
          "warrantCoverage"
        ],
        "type": "object",
        "properties": {
          "reportItemGuid": {
            "type": "string",
            "description": "The custom report item, only set on custom report items.",
            "format": "uuid",
            "nullable": true
          },
          "isExcluded": {
            "type": "boolean",
            "description": "Custom report items removed from the report when it was edited."
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "itemIdentifier": {
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderTypeName": {
            "type": "string"
          },
          "facilityTypeName": {
            "type": "string"
          },
          "loanTypeName": {
            "type": "string"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalFees": {
            "type": "integer",
            "format": "int32"
          },
          "feeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "receivedOn": {
            "type": "string",
            "format": "date-time"
          },
          "collateral": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "baseRate": {
            "type": "string"
          },
          "cashInterest": {
            "type": "string"
          },
          "term": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortizationStructure": {
            "type": "string",
            "nullable": true
          },
          "amortizationPeriod": {
            "type": "string",
            "nullable": true
          },
          "guarantee": {
            "type": "string"
          },
          "warrantCoverage": {
            "type": "string"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isExistingDebtTerms": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "A term sheet facility row, used by the term sheet report and the items of a custom report."
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetReportParamsDto": {
        "required": [
          "acquisitionDeal",
          "borrowerRevenue",
          "page",
          "perPage",
          "receivedDays",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "receivedDays": {
            "type": "integer",
            "description": "Only term sheets received within this many days, 0 for all time.",
            "format": "int32"
          },
          "lenderType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "loanMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityTypes": {
            "type": "array",
            "items": {
              "enum": [
                "Unknown",
                "Term_Loan",
                "Revolver",
                "Letter_of_Credit",
                "Line_of_Credit",
                "Bridge_Facility",
                "Syndicated_Facility",
                "EquipmentLease",
                "CapitalLease",
                "OperatingLease",
                "Bond",
                "Warehouse",
                "Factor",
                "PurchaseOrderFinancing"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "industryIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "loanTypes": {
            "type": "array",
            "items": {
              "enum": [
                "SeniorCashFlow",
                "JuniorCashFlow",
                "VentureDebt",
                "Equity",
                "SeniorRealEstate",
                "JuniorRealEstate",
                "Sba7aRealEstate",
                "Sba7aNonRealEstate",
                "Sba504Senior",
                "Sba504Debenture",
                "UsdaBiRealEstate",
                "UsdaBiEquipment",
                "UsdaBiWorkingCapital",
                "AssetBasedWorkingCapitalAccountsReceivable",
                "AssetBasedWorkingCapitalInventory",
                "AssetBasedEquipmentMachinery",
                "AssetBasedEquipmentVehicles",
                "AssetBasedEquipmentMarine",
                "AssetBasedEquipmentHelicopters",
                "AssetBasedEquipmentAircraft",
                "AssetBasedIntangibleIntellectualProperty",
                "AssetBasedIntangibleRoyalty",
                "PoFinancing",
                "Factoring",
                "RecurringRevenue",
                "InventoryOnly",
                "LenderFinance",
                "FloorplanFinance",
                "AssetBasedWorkingCapitalArPlusInventory",
                "BridgeLoan",
                "Unknown"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "collateralTypes": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "SecuredAr",
                "SecuredInventory",
                "SecuredRealEstate",
                "SecuredGeneral",
                "SecuredCash",
                "SecuredSecurities",
                "SecuredEquipment",
                "SecuredOther",
                "Unsecured",
                "SecuredArPlusInventory",
                "SecuredVehicles",
                "SecuredMarine",
                "SecuredHelicopters",
                "SecuredFixedWingAircraft",
                "SecondLienRealEstate",
                "SecuredIp",
                "SecuredRoyalty",
                "SecuredFirstLien",
                "SecondLien",
                "Mezzanine",
                "SecuredSecondLien"
              ],
              "type": "string"
            },
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "borrowerRevenue": {
            "type": "integer",
            "description": "0 = any, 1 = less than $10M, 2 = $10M to $50M, 3 = more than $50M.",
            "format": "int32"
          },
          "acquisitionDeal": {
            "type": "integer",
            "description": "0 = any, 1 = acquisition, 2 = non-acquisition.",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetTrancheDrillInItemDto": {
        "required": [
          "bankName",
          "companyName",
          "facilityTypeName"
        ],
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "revisionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "facilityTypeName": {
            "type": "string"
          },
          "facilityInterestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "costOfCapitalPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A term sheet facility in a structure tranche drill in."
      },
      "Cerebro.Api.Features.Employees.Models.TermSheetTrancheSummaryItemDto": {
        "required": [
          "structureTrancheName"
        ],
        "type": "object",
        "properties": {
          "structureTranche": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "structureTrancheName": {
            "type": "string"
          },
          "facilityCount": {
            "type": "integer",
            "format": "int32"
          },
          "averageCommitment": {
            "type": "number",
            "format": "double"
          },
          "averageInterestRate": {
            "type": "number",
            "format": "double"
          },
          "averageTerm": {
            "type": "number",
            "format": "double"
          },
          "averageCostOfCapital": {
            "type": "number",
            "format": "double"
          },
          "commitmentMaxMin": {
            "type": "number",
            "description": "Percent increase in commitment amount, already a percent (5 is 5%).",
            "format": "double"
          },
          "interestRateReduction": {
            "type": "number",
            "description": "Already a percent (5 is 5%).",
            "format": "double"
          },
          "interestRateReductionPercent": {
            "type": "number",
            "description": "Already a percent (5 is 5%).",
            "format": "double"
          },
          "costOfCapitalReduction": {
            "type": "number",
            "description": "Already a percent (5 is 5%).",
            "format": "double"
          },
          "costOfCapitalReductionPercent": {
            "type": "number",
            "description": "A fraction (0.05 is 5%).",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "facilityType1": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "facilityType2": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "baseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "defaultBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankProfiles": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankAmortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankMinimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankMinimumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankMaximumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankBaseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "defaultNonBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankProfiles": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonBankRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankAmortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankMinimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankMinimumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankMaximumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TrancheDebtCapacityConfigFormDto": {
        "required": [
          "baseRateType",
          "collateralSecurityType",
          "defaultBankMinimumDscr",
          "defaultNonBankMinimumDscr",
          "facilityType1",
          "facilityType2",
          "nonBankBaseRateType"
        ],
        "type": "object",
        "properties": {
          "facilityType1": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "facilityType2": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "baseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "defaultBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankProfiles": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankAmortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultBankMinimumDscr": {
            "type": "number",
            "format": "double"
          },
          "bankMinimumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankMaximumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankBaseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "defaultNonBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankProfiles": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonBankRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankAmortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultNonBankMinimumDscr": {
            "type": "number",
            "format": "double"
          },
          "nonBankMinimumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankMaximumPricingValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TreasuryReferralReportParams": {
        "required": [
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "employeeUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.TreasuryReferralSearchItemDto": {
        "required": [
          "companyName",
          "emailAddress",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "contactName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "includeLenderOnCall": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "employeeName": {
            "type": "string",
            "nullable": true
          },
          "isEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.UpdateRawLeadBorrowerStatusDto": {
        "required": [
          "borrowerStatus"
        ],
        "type": "object",
        "properties": {
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string",
            "description": "Interested connects the borrower with the lender, NotInterested declines the lender."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.UpdateRawLeadLenderStatusDto": {
        "required": [
          "lenderStatus"
        ],
        "type": "object",
        "properties": {
          "lenderStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string"
          },
          "declineReason": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "description": "Required when the lender status is closed out.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.UpdateTreasuryReferralFormDto": {
        "required": [
          "referralStatus"
        ],
        "type": "object",
        "properties": {
          "employeeUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.UserLoginChartDayDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "lenderLogins": {
            "type": "integer",
            "format": "int32"
          },
          "borrowerLogins": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ViewDealStatusDashboardAmountDetailDto": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "scope": {
            "enum": [
              "Any",
              "Current",
              "Month",
              "Quarter",
              "YearToDate",
              "LastYear"
            ],
            "type": "string"
          },
          "borrowerRevenue": {
            "enum": [
              "Any",
              "UpToTenMillion",
              "TenToTwentyMillion",
              "TwentyToFiftyMillion",
              "OverFiftyMillion"
            ],
            "type": "string"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "geographyName": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealStatusAverageReportAmountDrillInDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.ViewDealStatusDashboardCountDetailDto": {
        "required": [
          "results"
        ],
        "type": "object",
        "properties": {
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "scope": {
            "enum": [
              "Any",
              "Current",
              "Month",
              "Quarter",
              "YearToDate",
              "LastYear"
            ],
            "type": "string"
          },
          "borrowerRevenue": {
            "enum": [
              "Any",
              "UpToTenMillion",
              "TenToTwentyMillion",
              "TwentyToFiftyMillion",
              "OverFiftyMillion"
            ],
            "type": "string"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "geographyName": {
            "type": "string",
            "nullable": true
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealStatusAverageReportCountDrillInDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Employees.Models.VwBankContactSubscriptionDto": {
        "required": [
          "contactName",
          "firstName",
          "invoices",
          "lastName",
          "productName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "productName": {
            "type": "string"
          },
          "productCategory": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          },
          "hasCancellationDate": {
            "type": "boolean",
            "readOnly": true
          },
          "hasCancellationReason": {
            "type": "boolean",
            "readOnly": true
          },
          "facilityViewCount": {
            "type": "integer",
            "format": "int32"
          },
          "dealOpportunityCount": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionStatus": {
            "enum": [
              "Active",
              "Canceled",
              "FailedPayment",
              "PendingCancellation",
              "PendingPayment"
            ],
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastLoginDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numberLogins": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyDealOpportunities": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyTreasuryReferrals": {
            "type": "integer",
            "format": "int32"
          },
          "preventDataRoomAccess": {
            "type": "boolean",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean",
            "readOnly": true
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchInvoiceItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Jobs.Models.CovenantSummaryReportParam": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "frequencyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "smeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantCategoryId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Jobs.Models.EmailReportingSummaryReportParams": {
        "required": [
          "recordGuid"
        ],
        "type": "object",
        "properties": {
          "recordGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Jobs.Models.ReportingSummaryReportParams": {
        "required": [
          "reportingCovenantsOnly",
          "status"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "frequencyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "smeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingCovenantsOnly": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "internalCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lambda.Models.NonFinancialCovenantUploadParams": {
        "required": [
          "uploadGuid"
        ],
        "type": "object",
        "properties": {
          "uploadGuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.ActivateLoanWatchPageDto": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "productAmount": {
            "type": "number",
            "format": "double"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "type": "string",
            "nullable": true
          },
          "rawLeadMonthlyConnections": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.AssociateFinderFeeContactsFormDto": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankContactDto": {
        "required": [
          "currency",
          "emailAddress",
          "firstName",
          "fullname",
          "lastName",
          "tier3ContactTypeList",
          "timeZoneId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "profileId": {
            "type": "integer",
            "format": "int64"
          },
          "profileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "missingBankProfile": {
            "type": "boolean",
            "readOnly": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullname": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "office": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankOfficeDto"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "hasConfiguredTotp": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "bankContactRole": {
            "enum": [
              "CreditOfficer",
              "TreasuryManagementOfficer",
              "BankAssociate",
              "BankManagement",
              "RelationshipManager",
              "Other"
            ],
            "type": "string"
          },
          "referralRewardsInd": {
            "type": "boolean"
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentAddedReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentDailyReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentWeeklyReminder": {
            "type": "boolean"
          },
          "dataRoomSevenDayCallReminder": {
            "type": "boolean"
          },
          "dataRoomDayOfCallReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionAnsweredReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "hasEnterpriseLoanWatchSubscription": {
            "type": "boolean"
          },
          "rawLeadInterestLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tier3ContactTypeList": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "Sba7a",
                "Sba504",
                "SeniorCash",
                "AssetWorkingCapital",
                "AssetEquipment",
                "RealEstateSenior",
                "MiddleMarket",
                "LeveragedFinance",
                "SyndicatedCapitalMarkets",
                "JuniorCash",
                "Mezzanine",
                "StructuredPrivateEquity",
                "RealEstateJunior",
                "EquityMinority",
                "EquityControl",
                "UnitrancheStretchSenior",
                "VentureCapital",
                "MiddleMarketSpecialist",
                "AssetIntangible",
                "Usda",
                "VentureDebt",
                "RecurringRevenue",
                "BridgeMcaLending"
              ],
              "type": "string"
            }
          },
          "invitesSent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankContactFormDto": {
        "required": [
          "editUnderwritingCriteria",
          "isActive",
          "isBillingContact",
          "isLockedOut",
          "isUserAdministrator"
        ],
        "type": "object",
        "properties": {
          "copyFromId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "officeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactRole": {
            "enum": [
              "CreditOfficer",
              "TreasuryManagementOfficer",
              "BankAssociate",
              "BankManagement",
              "RelationshipManager",
              "Other"
            ],
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankContactSubscriptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "productName": {
            "type": "string"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "isCommercialLender": {
            "type": "boolean"
          },
          "isNonBankLender": {
            "type": "boolean"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "renewalDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string"
          },
          "isCanceled": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "enum": [
              "Active",
              "Canceled",
              "FailedPayment",
              "PendingCancellation",
              "PendingPayment"
            ],
            "type": "string"
          },
          "isEnterpriseSubscription": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankContactTeamMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "fullName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "bankContactName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankDashboardDto": {
        "required": [
          "deals",
          "hasActiveContactSubscription",
          "lessThanTwoMillionLending",
          "preventDataRoomAccess",
          "rawLeads",
          "teasers"
        ],
        "type": "object",
        "properties": {
          "hasActiveContactSubscription": {
            "type": "boolean"
          },
          "preventDataRoomAccess": {
            "type": "boolean"
          },
          "lessThanTwoMillionLending": {
            "type": "boolean"
          },
          "teasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.DashboardTeaserDto"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.DashboardDealDto"
            }
          },
          "rawLeads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LenderRawLeadInterestDashboardDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankDocumentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "documentTitle": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "documentDate": {
            "type": "string",
            "format": "date-time"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "documentType": {
            "enum": [
              "Bank_Profile",
              "Loan_Document",
              "Finders_Fee_Agreement",
              "Other"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scope": {
            "type": "string"
          },
          "oneTimePayment": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "portionOfInterestPaid": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "capOnReferralPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "appliesToAllContacts": {
            "type": "boolean"
          },
          "tier3ContactTypeValue": {
            "type": "integer",
            "format": "int32"
          },
          "tier3Types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.Tier3ContactTypeDto"
            }
          },
          "document": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankDocumentDto"
          },
          "includesOneTimePayment": {
            "type": "boolean"
          },
          "includesPortionOfInterestPaid": {
            "type": "boolean"
          },
          "status": {
            "enum": [
              "Active",
              "Expired"
            ],
            "type": "string"
          },
          "associatedContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeContactDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankFinderFeeContactDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "fullname": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "associated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankFinderFeeDto": {
        "type": "object",
        "properties": {
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "agreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankFinderFeeAgreementDto"
            }
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactDto"
            }
          },
          "tier3Types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.Tier3ContactTypeDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BankOfficeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "isPrimaryAddress": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          },
          "officeName": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "address3": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
          },
          "zipCode": {
            "type": "string"
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CountryDto"
          },
          "timeZoneId": {
            "type": "string"
          },
          "faxNumber": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "addressString": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "cityState": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BorrowerReferralDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "natureOfReferral": {
            "enum": [
              "AdditionalCapitalNeeded",
              "SeekingToExitRelationship",
              "NotFitForCurrentNeeds",
              "NotFit",
              "Unknown"
            ],
            "type": "string"
          },
          "referralStatus": {
            "enum": [
              "Sent",
              "LinkClicked",
              "LoanAssessmentStarted",
              "LoanAssessmentCompleted",
              "LoanAssessmentDeclined",
              "LoanAssessmentAccepted",
              "ContractSigned",
              "DealLaunched",
              "DealClosedWon",
              "DealCanceled"
            ],
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.BorrowerReferralFormDto": {
        "required": [
          "natureOfReferral"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "natureOfReferral": {
            "enum": [
              "AdditionalCapitalNeeded",
              "SeekingToExitRelationship",
              "NotFitForCurrentNeeds",
              "NotFit",
              "Unknown"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.CancelBankContactSubscriptionDto": {
        "required": [
          "cancellationDate"
        ],
        "type": "object",
        "properties": {
          "cancellationDate": {
            "type": "string",
            "format": "date-time"
          },
          "cancellationReason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.CountryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "countryName": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.DashboardDealDto": {
        "type": "object",
        "properties": {
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "accessedDeal": {
            "type": "boolean"
          },
          "hasDeclinedDeal": {
            "type": "boolean"
          },
          "declineReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allowAccess": {
            "type": "boolean"
          },
          "isOpen": {
            "type": "boolean"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAssociatedContactDeal": {
            "type": "boolean"
          },
          "invitedByName": {
            "type": "string"
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.DashboardTeaserDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "bankContactName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "dealName": {
            "type": "string"
          },
          "isAsapTargetDate": {
            "type": "boolean"
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "decisionStatus": {
            "enum": [
              "Pending",
              "Accepted",
              "Declined",
              "Launched"
            ],
            "type": "string"
          },
          "isDealActive": {
            "type": "boolean"
          },
          "isDealClosed": {
            "type": "boolean"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "includeReferralLanguage": {
            "type": "boolean"
          },
          "directConnectOrIntroDeal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.FinderFeeAgreementFormDto": {
        "required": [
          "appliesToAllContacts",
          "startDate"
        ],
        "type": "object",
        "properties": {
          "tier3Types": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "scope": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "appliesToAllContacts": {
            "type": "boolean"
          },
          "oneTimePayment": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "portionOfInterestPaid": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "capOnReferralPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.GetActiveLoanWatchSubscriptionDto": {
        "type": "object",
        "properties": {
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "isTeamMember": {
            "type": "boolean"
          },
          "subscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactSubscriptionDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LenderCurrentUserDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "prefix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "defaultTimezone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "isBankUser": {
            "type": "boolean"
          },
          "isTeamMemberUser": {
            "type": "boolean"
          },
          "hasPreMarketDeals": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "hasLoanWatchSubscription": {
            "type": "boolean"
          },
          "hasEnterpriseSubscription": {
            "type": "boolean"
          },
          "hasSubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "hasFinderFeeAgreements": {
            "type": "boolean"
          },
          "isPayingLender": {
            "type": "boolean",
            "readOnly": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserBankContactDto"
          },
          "teamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserTeamMemberContactDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LenderRawLeadDealPageDto": {
        "required": [
          "deals",
          "hasFinderFeeAgreements"
        ],
        "type": "object",
        "properties": {
          "hasFinderFeeAgreements": {
            "type": "boolean"
          },
          "deals": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.RawLeadDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LenderRawLeadInterestDashboardDto": {
        "required": [
          "companyName",
          "contactName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "requestAmount": {
            "type": "number",
            "format": "double"
          },
          "connectionStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string",
            "nullable": true
          },
          "borrowerStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          },
          "statusOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isRawLead": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LenderStatusBarDto": {
        "required": [
          "dealCount",
          "monthlyRawLeadInterests",
          "numberOfAllowedInterests",
          "pendingCount",
          "showLoanWatchLink"
        ],
        "type": "object",
        "properties": {
          "dealCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingCount": {
            "type": "integer",
            "format": "int32"
          },
          "underwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string"
          },
          "showLoanWatchLink": {
            "type": "boolean"
          },
          "monthlyRawLeadInterests": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfAllowedInterests": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LoanWatchProspectDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "emailAddress": {
            "type": "string"
          },
          "numberOfSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberRefinanceDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberRefinanceSearches": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.LoanWatchSubscriptionDto": {
        "type": "object",
        "properties": {
          "showMarketTracker": {
            "type": "boolean",
            "readOnly": true
          },
          "showMarketTrackerAd": {
            "type": "boolean",
            "readOnly": true
          },
          "pendingPayment": {
            "type": "boolean"
          },
          "paymentProcessing": {
            "type": "boolean"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "hasAnySubscriptions": {
            "type": "boolean",
            "readOnly": true
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "subscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactSubscriptionDto"
            }
          },
          "activeSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactSubscriptionDto"
          },
          "hasBankContactSubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "hasEnterpriseLoanWatchSubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "hasPreMarketDeals": {
            "type": "boolean"
          },
          "prospect": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LoanWatchProspectDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.RawLeadDealDetailDto": {
        "required": [
          "documents"
        ],
        "type": "object",
        "properties": {
          "interested": {
            "type": "boolean"
          },
          "notInterested": {
            "type": "boolean"
          },
          "hasMadeSelection": {
            "type": "boolean",
            "readOnly": true
          },
          "dealHasInterest": {
            "type": "boolean"
          },
          "monthlyInterests": {
            "type": "integer",
            "format": "int32"
          },
          "allowedMonthlyInterests": {
            "type": "integer",
            "format": "int32"
          },
          "thresholdForInterestWarning": {
            "type": "integer",
            "format": "int32"
          },
          "allowInterest": {
            "type": "boolean",
            "readOnly": true
          },
          "nextInterestWillMeetThreshold": {
            "type": "boolean",
            "readOnly": true
          },
          "nextInterestWillMeetAllowed": {
            "type": "boolean",
            "readOnly": true
          },
          "sendUsageEmail": {
            "type": "boolean",
            "readOnly": true
          },
          "showButtons": {
            "type": "boolean",
            "readOnly": true
          },
          "hasSubscription": {
            "type": "boolean"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.RawLeadDocumentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.RawLeadInterestPageDto": {
        "required": [
          "interests"
        ],
        "type": "object",
        "properties": {
          "interests": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Lenders.Models.LenderRawLeadInterestDashboardDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.RawLeadInterestsSearchParamsDto": {
        "required": [
          "active",
          "borrowerStatus",
          "connectionStatus",
          "page",
          "perPage",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "active": {
            "type": "integer",
            "format": "int32"
          },
          "connectionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "borrowerStatus": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.SendTeamMemberAccountDetailsDto": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string"
          },
          "passwordResetUrl": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.StartSubscriptionFormDto": {
        "required": [
          "bankContactGuid"
        ],
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "stripeConfirmationToken": {
            "type": "string"
          },
          "stripePaymentMethodType": {
            "type": "string"
          },
          "last4": {
            "type": "string",
            "nullable": true
          },
          "cardExpYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cardExpMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bankRoutingNumber": {
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.TeamMemberCriteriaDto": {
        "type": "object",
        "properties": {
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactName": {
            "type": "string"
          },
          "bankName": {
            "type": "string"
          },
          "underwritingStatus": {
            "enum": [
              "Missing",
              "Approved",
              "Pending"
            ],
            "type": "string"
          },
          "isMissingBankDealProfile": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.TeamMemberDashboardDto": {
        "required": [
          "criteria",
          "deals",
          "teasers"
        ],
        "type": "object",
        "properties": {
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.TeamMemberCriteriaDto"
            }
          },
          "teasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.DashboardTeaserDto"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.DashboardDealDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.TeamMemberFormDto": {
        "required": [
          "bankContactGuid",
          "canInteractWithTeasers",
          "currency",
          "editUnderwritingCriteria",
          "emailAddress",
          "firstName",
          "guid",
          "id",
          "isActive",
          "isLockedOut",
          "lastName",
          "timeZoneId",
          "viewUnderwritingCriteria"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string"
          },
          "fullName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.TeamMemberPageDto": {
        "type": "object",
        "properties": {
          "isEnterpriseLoanWatch": {
            "type": "boolean"
          },
          "userAdministration": {
            "type": "boolean"
          },
          "showBankContactColumn": {
            "type": "boolean",
            "readOnly": true
          },
          "teamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.BankContactTeamMemberDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lenders.Models.UpdateRawLeadInterestDto": {
        "required": [
          "connectionStatus"
        ],
        "type": "object",
        "properties": {
          "connectionStatus": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string"
          },
          "declineReason": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionDealOpportunityDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean"
          },
          "isEnterprise": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionFacilityInterestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean"
          },
          "isEnterprise": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionFacilityPainPointInterestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFacilityPainPointGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean"
          },
          "isEnterprise": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.DealOpportunitiesSearchParamsDto": {
        "required": [
          "isEnterpriseLoanWatch",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "acquisitionType": {
            "type": "integer",
            "format": "int32"
          },
          "loanSize": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "mrr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheet": {
            "type": "integer",
            "format": "int32"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isEnterpriseLoanWatch": {
            "type": "boolean"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchItemDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "acquisitionType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean"
          },
          "purchaseRealEstate": {
            "type": "boolean"
          },
          "purchaseWorkingCapital": {
            "type": "boolean"
          },
          "financeExpensesOrGrowth": {
            "type": "boolean"
          },
          "refinanceExistingDebt": {
            "type": "boolean"
          },
          "otherFinancingNeeds": {
            "type": "boolean"
          },
          "dealPurposeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "primaryObstacleList": {
            "type": "string"
          },
          "primaryObstacles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchResultDto": {
        "required": [
          "interests",
          "pagedResult"
        ],
        "type": "object",
        "properties": {
          "interests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionDealOpportunityDto"
            }
          },
          "pagedResult": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto": {
        "required": [
          "acquisition",
          "amountRange",
          "balanceSheetAr",
          "balanceSheetEquipment",
          "balanceSheetRealEstate",
          "bankContactId",
          "brokerSubmitted",
          "connectionStatus",
          "dateRange",
          "ebitdaRange",
          "geography",
          "id",
          "industry",
          "interestLevel",
          "receiveDailyEmail",
          "receiveWeeklyEmail",
          "revenueRange",
          "useProfile"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "useProfile": {
            "type": "integer",
            "format": "int32"
          },
          "acquisition": {
            "type": "integer",
            "format": "int32"
          },
          "amountRange": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetAr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetEquipment": {
            "type": "integer",
            "format": "int32"
          },
          "dateRange": {
            "type": "integer",
            "format": "int32"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "industry": {
            "type": "integer",
            "format": "int64"
          },
          "geography": {
            "type": "integer",
            "format": "int64"
          },
          "connectionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "brokerSubmitted": {
            "type": "integer",
            "format": "int32"
          },
          "receiveDailyEmail": {
            "type": "boolean"
          },
          "receiveWeeklyEmail": {
            "type": "boolean"
          },
          "balanceSheetRealEstate": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.LoanWatchFormHelperDto": {
        "required": [
          "directConnectFilters",
          "geographies",
          "industries"
        ],
        "type": "object",
        "properties": {
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.IndustryDto"
            }
          },
          "geographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "directConnectFilters": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DirectConnectFilterDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDataDto": {
        "type": "object",
        "properties": {
          "tier1Type": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "periodQuarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "periodYear": {
            "type": "integer",
            "format": "int32"
          },
          "sofrRate": {
            "type": "number",
            "format": "double"
          },
          "facilityCount": {
            "type": "integer",
            "format": "int32"
          },
          "facilityInterestRate": {
            "type": "number",
            "format": "double"
          },
          "feePercent": {
            "type": "number",
            "format": "double"
          },
          "costofCapitalPercent": {
            "type": "number",
            "format": "double"
          },
          "maximumSeniorLeverageRatio": {
            "type": "number",
            "format": "double"
          },
          "maximumTotalLeverageRatio": {
            "type": "number",
            "format": "double"
          },
          "minimumFixedChargeCoverageRatio": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDetailItemDto": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string"
          },
          "commercialBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sofrValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerCovenantChartDetailItemDto": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string"
          },
          "maximumSeniorLeverageRatioCommercialBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumSeniorLeverageRatioCommercialBankValueTooltip": {
            "type": "string",
            "readOnly": true
          },
          "maximumSeniorLeverageRatioNonBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumSeniorLeverageRatioNonBankValueTooltip": {
            "type": "string",
            "readOnly": true
          },
          "maximumTotalLeverageRatioCommercialBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumTotalLeverageRatioCommercialBankValueTooltip": {
            "type": "string",
            "readOnly": true
          },
          "maximumTotalLeverageRatioNonBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumTotalLeverageRatioNonBankValueTooltip": {
            "type": "string",
            "readOnly": true
          },
          "minimumFixedChargeCoverageRatioCommercialBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumFixedChargeCoverageRatioCommercialBankValueTooltip": {
            "type": "string",
            "readOnly": true
          },
          "minimumFixedChargeCoverageRatioNonBankValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumFixedChargeCoverageRatioNonBankValueTooltip": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerRefinancingOpportunitiesSearchResultDto": {
        "required": [
          "pagedResult"
        ],
        "type": "object",
        "properties": {
          "interests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionFacilityPainPointInterestDto"
            },
            "nullable": true
          },
          "pagedResult": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto": {
        "type": "object",
        "properties": {
          "itemIdentifier": {
            "type": "string"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string"
          },
          "bankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "loanAmount": {
            "type": "number",
            "format": "double"
          },
          "accordionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "receivedOn": {
            "type": "string",
            "format": "date-time"
          },
          "collateralList": {
            "type": "string"
          },
          "collateralItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string"
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "feeAmount": {
            "type": "number",
            "format": "double"
          },
          "totalFees": {
            "type": "integer",
            "format": "int32"
          },
          "term": {
            "type": "number",
            "format": "double"
          },
          "amortizationStructure": {
            "type": "string"
          },
          "facilityAmortizationPeriod": {
            "type": "string"
          },
          "hasPersonalGuaranty": {
            "type": "boolean"
          },
          "personalGuaranteeType": {
            "enum": [
              "Personal",
              "Corporate",
              "Both",
              "ValiditySupport",
              "ValiditySupportAndCorporate"
            ],
            "type": "string",
            "nullable": true
          },
          "warrantRequired": {
            "type": "boolean"
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "transactionManager": {
            "type": "string"
          },
          "showBorrower": {
            "type": "boolean"
          },
          "showAcquisition": {
            "type": "boolean"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryName": {
            "type": "string"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "borrowerRevenue": {
            "type": "number",
            "format": "double"
          },
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFacilityPainPointGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "painPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityPainPointDto"
          },
          "hasBorrowerPainPoints": {
            "type": "boolean"
          },
          "matchingScore": {
            "enum": [
              "Unknown",
              "Weak",
              "Moderate",
              "Strong",
              "VeryStrong"
            ],
            "type": "string"
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "painPointCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalViewCount": {
            "type": "integer",
            "format": "int32"
          },
          "interestedLenderCount": {
            "type": "integer",
            "format": "int32"
          },
          "isExistingDebtTerms": {
            "type": "boolean"
          },
          "isSbaDeal": {
            "type": "boolean"
          },
          "purchaseWorkingCapital": {
            "type": "boolean"
          },
          "financeExpensesOrGrowth": {
            "type": "boolean"
          },
          "purchaseEquipment": {
            "type": "boolean"
          },
          "purchaseRealEstate": {
            "type": "boolean"
          },
          "refinanceExistingDebt": {
            "type": "boolean"
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "otherFinancingNeeds": {
            "type": "boolean"
          },
          "purposeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bankTypeName": {
            "type": "string"
          },
          "facilityTypeName": {
            "type": "string"
          },
          "interestRateTypeName": {
            "type": "string"
          },
          "structureTrancheName": {
            "type": "string"
          },
          "baseRateName": {
            "type": "string"
          },
          "painPointIsActive": {
            "type": "boolean"
          },
          "painPointActiveToggleText": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchParamsDto": {
        "required": [
          "isEnterpriseLoanWatch",
          "sortBy",
          "sortDir"
        ],
        "type": "object",
        "properties": {
          "itemIdentifier": {
            "type": "string"
          },
          "lenderType": {
            "type": "integer",
            "format": "int32"
          },
          "loanSize": {
            "type": "integer",
            "format": "int32"
          },
          "loanType": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "sba": {
            "type": "integer",
            "format": "int32"
          },
          "acquisition": {
            "type": "integer",
            "format": "int32"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isEnterpriseLoanWatch": {
            "type": "boolean"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "matching": {
            "type": "integer",
            "format": "int32"
          },
          "chartFilter": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchResultDto": {
        "required": [
          "annuallyChartData",
          "interests",
          "pagedResult",
          "quarterlyChartData"
        ],
        "type": "object",
        "properties": {
          "interests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionFacilityInterestDto"
            }
          },
          "quarterlyChartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDataDto"
            }
          },
          "annuallyChartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDataDto"
            }
          },
          "pagedResult": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
          },
          "chartFilter": {
            "type": "integer",
            "format": "int32"
          },
          "chartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDataDto"
            },
            "readOnly": true
          },
          "facilityInterestChartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDetailItemDto"
            },
            "readOnly": true
          },
          "bankInterestRateData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankInterestRateData": {
            "type": "boolean",
            "readOnly": true
          },
          "feeChartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDetailItemDto"
            },
            "readOnly": true
          },
          "bankFeeData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankFeeData": {
            "type": "boolean",
            "readOnly": true
          },
          "costCapitalData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerChartDetailItemDto"
            },
            "readOnly": true
          },
          "bankCostOfCapitalData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankCostOfCapitalData": {
            "type": "boolean",
            "readOnly": true
          },
          "covenantChartData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerCovenantChartDetailItemDto"
            },
            "readOnly": true
          },
          "bankSeniorLeverageData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankSeniorLeverageData": {
            "type": "boolean",
            "readOnly": true
          },
          "bankTotalLeverageData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankTotalLeverageData": {
            "type": "boolean",
            "readOnly": true
          },
          "bankFccrData": {
            "type": "boolean",
            "readOnly": true
          },
          "nonBankFccrData": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.MatchingEntityParamDto": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "integer",
            "format": "int64"
          },
          "itemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "currencyType": {
            "type": "string"
          },
          "algorithmType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allocationId": {
            "type": "integer",
            "format": "int64"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "postalCode": {
            "type": "string"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryCode": {
            "type": "string"
          },
          "usEmployees": {
            "type": "integer",
            "format": "int32"
          },
          "nonUsEmployees": {
            "type": "integer",
            "format": "int32"
          },
          "usEmployeePercentage": {
            "type": "number",
            "format": "double"
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean"
          },
          "runwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "b2B": {
            "type": "boolean"
          },
          "b2C": {
            "type": "boolean"
          },
          "b2G": {
            "type": "boolean"
          },
          "investorOwned": {
            "type": "boolean"
          },
          "isPartnerBuyout": {
            "type": "boolean"
          },
          "companyLocatedInRuralArea": {
            "type": "boolean"
          },
          "sbaEligible": {
            "type": "boolean"
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isLenderFinanceDeal": {
            "type": "boolean"
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean"
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double"
          },
          "equityRoll": {
            "type": "number",
            "format": "double"
          },
          "acquisitionType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentagePurchasing": {
            "type": "integer",
            "format": "int32"
          },
          "acquisitionAmount": {
            "type": "number",
            "format": "double"
          },
          "debtCapitalForBusiness": {
            "type": "boolean"
          },
          "refinanceAmount": {
            "type": "number",
            "format": "double"
          },
          "inventoryAmount": {
            "type": "number",
            "format": "double"
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalEquipmentPurchaseAmount": {
            "type": "number",
            "format": "double"
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "operatingGrowthAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateOfficeAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateMedicalOfficeAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateChildcareAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateRetailAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateSelfStorageAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateIndustrialAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateIndustrialManufacturingAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateIndustrialFlexHybridAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateIndustrialDistributionAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateIndustrialWarehouseAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateHospitalityAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateResidentialHealthcareAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateMultifamilyAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateInvestorOwedResidentialAmount": {
            "type": "number",
            "format": "double"
          },
          "totalRealEstateAmount": {
            "type": "number",
            "format": "double"
          },
          "realEstateCashEquity": {
            "type": "number",
            "format": "double"
          },
          "equipmentAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "totalCollateral": {
            "type": "number",
            "format": "double"
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "proformaDebt": {
            "type": "number",
            "format": "double"
          },
          "cashEquity": {
            "type": "number",
            "format": "double"
          },
          "cashEquityPercent": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetMarketables": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetWorkingCapital": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double"
          },
          "realEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double"
          },
          "totalBalanceSheetEquipment": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double"
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double"
          },
          "countryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string"
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availableBalanceSheetAr": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.PreMarketDealDto": {
        "type": "object",
        "properties": {
          "preMarketDealTrackingEmailId": {
            "type": "integer",
            "format": "int64"
          },
          "preMarketDealTrackingEmailGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "lastSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "responseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string"
          },
          "industryName": {
            "type": "string"
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "acquisitionType": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean"
          },
          "purchaseRealEstate": {
            "type": "boolean"
          },
          "purchaseWorkingCapital": {
            "type": "boolean"
          },
          "financeExpensesOrGrowth": {
            "type": "boolean"
          },
          "refinanceExistingDebt": {
            "type": "boolean"
          },
          "otherFinancingNeeds": {
            "type": "boolean"
          },
          "dealPurposeList": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preMarketDealStatus": {
            "type": "string"
          },
          "requestDescription": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.PreMarketDealPageDto": {
        "required": [
          "current",
          "interests",
          "notInterested"
        ],
        "type": "object",
        "properties": {
          "current": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealDto"
            }
          },
          "interests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealDto"
            }
          },
          "notInterested": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.PreMarketDealsSearchParamsDto": {
        "required": [
          "acquisitionType",
          "balanceSheet",
          "loanSize",
          "mrr",
          "revenueRange"
        ],
        "type": "object",
        "properties": {
          "acquisitionType": {
            "type": "integer",
            "format": "int32"
          },
          "loanSize": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "mrr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheet": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.RawLeadDealDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "companyName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "isAcquisition": {
            "type": "boolean"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "interestCount": {
            "type": "integer",
            "format": "int32"
          },
          "notInterestedCount": {
            "type": "integer",
            "format": "int32"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "monthYearDisplay": {
            "type": "string",
            "readOnly": true
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquiringBusiness": {
            "type": "boolean"
          },
          "acquisitionEvaluationStage": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string"
          },
          "balanceSheetTotal": {
            "type": "number",
            "format": "double"
          },
          "interestLevel": {
            "type": "string"
          },
          "interestCreatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "borrowerResponseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "useOfProceeds": {
            "enum": [
              "Unknown",
              "WorkingCapital",
              "WorkingCapitalAccountsReceivableFinancing",
              "WorkingCapitalInventoryFinancing",
              "WorkingCapitalCapitalForOperatingExpenses",
              "EquipmentFinancing",
              "EquipmentFinancingMachineryAndEquipment",
              "EquipmentFinancingVehicles",
              "EquipmentFinancingMarineVessels",
              "EquipmentFinancingHelicopters",
              "EquipmentFinancingAircraft",
              "RealEstate",
              "RealEstateOffice",
              "RealEstateMedicalOffice",
              "RealEstateChildcare",
              "RealEstateRetail",
              "RealEstateSelfStorage",
              "RealEstateIndustrial",
              "RealEstateIndustrialManufacturing",
              "RealEstateIndustrialFlexHybrid",
              "RealEstateIndustrialDistribution",
              "RealEstateIndustrialWarehouse",
              "RealEstateHospitality",
              "RealEstateResidentialHealthcare",
              "RealEstateMultifamily",
              "RealEstateInvestorOwnedResidential",
              "GrowthCapital",
              "RefinanceExistingDebt",
              "AcquiringBusiness",
              "AcquiringBusinessStandalone",
              "AcquiringBusinessAddOn",
              "AcquiringBusinessPartnerBuyOut",
              "AcquiringBusinessManagementBuyOut",
              "OtherFinancingNeeds"
            ],
            "type": "string"
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasAdditionalInformation": {
            "type": "boolean"
          },
          "isBrokerSubmittedDeal": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "companyOverview": {
            "type": "string",
            "nullable": true
          },
          "contactJobTitle": {
            "type": "string",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.RawLeadDealSearchItemDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          },
          "isAcquisition": {
            "type": "boolean"
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "monthYearDisplay": {
            "type": "string",
            "readOnly": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasAdditionalInformation": {
            "type": "boolean"
          },
          "isBrokerSubmittedDeal": {
            "type": "boolean"
          },
          "interestLevel": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.RawLeadDealsSearchParamsDto": {
        "required": [
          "acquisition",
          "amountRange",
          "balanceSheetAr",
          "balanceSheetEquipment",
          "balanceSheetRealEstate",
          "brokerSubmitted",
          "connectionStatus",
          "dateRange",
          "ebitdaRange",
          "geography",
          "industry",
          "interestLevel",
          "page",
          "perPage",
          "revenueRange",
          "sortBy",
          "sortDir",
          "useProfile"
        ],
        "type": "object",
        "properties": {
          "useProfile": {
            "type": "integer",
            "format": "int32"
          },
          "dateRange": {
            "type": "integer",
            "format": "int32"
          },
          "acquisition": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetAr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetEquipment": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetRealEstate": {
            "type": "integer",
            "format": "int32"
          },
          "amountRange": {
            "type": "integer",
            "format": "int32"
          },
          "industry": {
            "type": "integer",
            "format": "int64"
          },
          "geography": {
            "type": "integer",
            "format": "int64"
          },
          "connectionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "brokerSubmitted": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.RefinancingOpportunitiesSearchParamsDto": {
        "required": [
          "financialAsOfDate",
          "interestLevel",
          "isEnterpriseLoanWatch",
          "matching",
          "maturityDate",
          "page",
          "perPage",
          "sortBy",
          "sortDir",
          "status"
        ],
        "type": "object",
        "properties": {
          "itemIdentifier": {
            "type": "string"
          },
          "maturityDate": {
            "type": "integer",
            "format": "int32"
          },
          "financialAsOfDate": {
            "type": "integer",
            "format": "int32"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isEnterpriseLoanWatch": {
            "type": "boolean"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "matching": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "sortBy": {
            "type": "string"
          },
          "sortDir": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "perPage": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.SubmitTreasuryFormDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "includeLenderOnCall": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.TreasuryReferralDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "includeLenderOnCall": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "referralNotes": {
            "type": "string"
          },
          "statusStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.TreasuryReferralStatusStatDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.TreasuryReferralStatusStatDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "referralStatus": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.ViewDealOpportunityDto": {
        "required": [
          "dealInfo",
          "interest"
        ],
        "type": "object",
        "properties": {
          "dealInfo": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MatchingEntityParamDto"
          },
          "interest": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionDealOpportunityDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.ViewPreMarketDealDto": {
        "required": [
          "dealInfo",
          "preMarketDeal"
        ],
        "type": "object",
        "properties": {
          "preMarketDeal": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.PreMarketDealDto"
          },
          "dealInfo": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MatchingEntityParamDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.LoanWatch.Models.ViewTermSheetFacilityDto": {
        "required": [
          "dealInfo",
          "facility",
          "revision"
        ],
        "type": "object",
        "properties": {
          "facility": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetFacilityDto"
          },
          "revision": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.DataRooms.Models.TermSheetRevisionDto"
          },
          "dealInfo": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MatchingEntityParamDto"
          },
          "interest": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.BankContactSubscriptionFacilityInterestDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.BankContactAssociationDto": {
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "fullName": {
            "type": "string",
            "readOnly": true
          },
          "bankName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.CurrencyDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "cultureInfo": {
            "type": "string"
          },
          "isDollar": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.FinancialCovenantTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "covenantName": {
            "type": "string"
          },
          "covenantValueType": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.IndustryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "isSpecialty": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.LookupSearchResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.NaicsCodeDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.PersonFormHelperDto": {
        "required": [
          "countries",
          "currencies",
          "defaultCountryId",
          "lenders",
          "prefixes",
          "states",
          "suffixes",
          "timezones"
        ],
        "type": "object",
        "properties": {
          "timezones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.TimezoneDto"
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.CurrencyDto"
            }
          },
          "lenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.BankContactAssociationDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.StateDto"
            }
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suffixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "defaultCountryId": {
            "type": "integer",
            "format": "int64"
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.CountryDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.QuestionCategoryDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.QuestionDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "questionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "questionFormat": {
            "enum": [
              "YesNo",
              "YesNoWithComment",
              "MultipleChoice",
              "OpenEnded"
            ],
            "type": "string"
          },
          "questionText": {
            "type": "string"
          },
          "listItem1": {
            "type": "string"
          },
          "listItem2": {
            "type": "string"
          },
          "listItem3": {
            "type": "string"
          },
          "listItem4": {
            "type": "string"
          },
          "listItem5": {
            "type": "string"
          },
          "listItem6": {
            "type": "string"
          },
          "listItem7": {
            "type": "string"
          },
          "listItem8": {
            "type": "string"
          },
          "listItem9": {
            "type": "string"
          },
          "listItem10": {
            "type": "string"
          },
          "includeOther": {
            "type": "boolean"
          },
          "isCompanyQuestion": {
            "type": "boolean"
          },
          "isLoanAssessmentQuestion": {
            "type": "boolean"
          },
          "isLoanApplicationQuestion": {
            "type": "boolean"
          },
          "category": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Lookups.Models.QuestionCategoryDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.SearchResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.StateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Lookups.Models.TimezoneDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isUsBased": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "debtCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isProfitLossSectionVisible": {
            "type": "boolean"
          },
          "isCashFlowSectionVisible": {
            "type": "boolean"
          },
          "isBalanceSheetSectionVisible": {
            "type": "boolean"
          },
          "isBusinessSectionVisible": {
            "type": "boolean"
          },
          "isDoneEditing": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "groupType": {
            "enum": [
              "None",
              "Summary",
              "ProfitLoss",
              "CashFlows",
              "BalanceSheet",
              "Business",
              "LoanRequest"
            ],
            "type": "string"
          },
          "outputType": {
            "enum": [
              "TtmRevenue",
              "HistoricalRevenueTrend",
              "ProjectedRevenueTrend",
              "CurrentNetIncomeMargin",
              "HistoricalNetIncomeMarginTrends",
              "ProjectedNetIncomeMarginTrends",
              "EbitdaAddbackPercentage",
              "CurrentEbitdaMargin",
              "CurrentEbitdaMarginTrends",
              "CurrentEbitda",
              "CurrentCashFlowLeverage",
              "HistoricalEbitdaTrend",
              "ProjectedEbitdaTrend",
              "CurrentLiquidityProfile",
              "CurrentVariableCollateralProfile",
              "CurrentFixedCollateralProfile",
              "Headcount",
              "HeadcountMix",
              "CashRunway",
              "FinancialStatements",
              "Industry",
              "ProformaTotalDebtToAdjustmentEbitda",
              "ProformaTotalDebtToRevenue",
              "CashInfusion",
              "ProformaLiquidityProfile",
              "ProformaVariableCollateralProfile",
              "ProformaFixedCollateralProfile",
              "Predictability",
              "FinanceConfidence",
              "LendersInterested",
              "RefinancingExistingDebt",
              "IncrementalNewDebt"
            ],
            "type": "string"
          },
          "outputStatus": {
            "enum": [
              "Weak",
              "Neutral",
              "Strong",
              "VeryStrong",
              "MissingData"
            ],
            "type": "string"
          },
          "summaryStatus": {
            "enum": [
              "None",
              "VeryLow",
              "Low",
              "Moderate",
              "High",
              "VeryHigh"
            ],
            "type": "string"
          },
          "displayIndex": {
            "type": "integer",
            "format": "int32"
          },
          "comments": {
            "type": "string"
          },
          "isVisibleToBorrower": {
            "type": "boolean"
          },
          "isDoneEditing": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.DealMatchingDataUpdateResponseDto": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lastMatchingUpdateOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.DealMatchingStatDto": {
        "required": [
          "finderFeeStats",
          "stats"
        ],
        "type": "object",
        "properties": {
          "industryName": {
            "type": "string"
          },
          "acquisitionIndustryName": {
            "type": "string"
          },
          "geographyName": {
            "type": "string"
          },
          "acquisitionGeographyName": {
            "type": "string"
          },
          "totalRevenue": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "dealSize": {
            "type": "number",
            "format": "double"
          },
          "stats": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingStats"
          },
          "finderFeeStats": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingStats"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.DealTypePreferenceDto": {
        "type": "object",
        "properties": {
          "loanOptionType": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "matchedLenders": {
            "type": "integer",
            "format": "int32"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "highLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "type": "string"
          },
          "amortization": {
            "type": "string"
          },
          "collateral": {
            "type": "string"
          },
          "loanStructure": {
            "type": "string"
          },
          "loanDescription": {
            "type": "string"
          },
          "selected": {
            "type": "boolean"
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.DebtCapacityConfigDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "workingCapitalBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalNonBankMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "primeBaseRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "liborBaseRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalCollateralSecurityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sba7aRealEstateMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba7aNonRealEstateMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba504SeniorMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sba504DebentureMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaRealEstateMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaEquipmentMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaWorkingCapitalMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sofrRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseOrderFinancingMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "factoringMultiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.LenderMatchDrillInDto": {
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "affiliateLender": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string"
          },
          "hasBankNda": {
            "type": "boolean"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "isPicked": {
            "type": "boolean"
          },
          "isExcluded": {
            "type": "boolean"
          },
          "coverageAreas": {
            "type": "string"
          },
          "distanceInMiles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isInRange": {
            "type": "boolean"
          },
          "sbaPariPassuLending": {
            "type": "boolean"
          },
          "dealSizeMatchType": {
            "enum": [
              "FullAmount",
              "PartialAmount"
            ],
            "type": "string"
          },
          "dealSizeAmount": {
            "type": "number",
            "format": "double"
          },
          "lastPreMarketDealTrackingEmailSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderScoreFlag": {
            "type": "boolean"
          },
          "matchingSummary": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.LoanOptionOverrideDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "capacityOverride": {
            "type": "number",
            "format": "double"
          },
          "lenderMatchCountOverride": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.LoanOptionOverrideFormDto": {
        "type": "object",
        "properties": {
          "capacityOverride": {
            "type": "number",
            "format": "double"
          },
          "lenderMatchCountOverride": {
            "type": "integer",
            "format": "int32"
          },
          "removeOverride": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.MatchingDto": {
        "required": [
          "evaluations",
          "loanOptions",
          "params",
          "stats"
        ],
        "type": "object",
        "properties": {
          "params": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingParamsDto"
          },
          "stats": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingLenderStatDto"
          },
          "evaluations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingEvaluationDto"
            }
          },
          "loanOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.MatchingLoanOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.MatchingEvaluationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptionType": {
            "enum": [
              "CashFlowBank",
              "SeniorCashNonBank",
              "JuniorCashNonBank",
              "AssetBasedInvArBank",
              "AssetBasedInvArNonBank",
              "AssetBasedFixedBank",
              "AssetBasedFixedNonBank",
              "SmallGovernment",
              "LargeGovernment",
              "VentureBank",
              "VentureNonBank",
              "PoFinancing",
              "Factoring",
              "InventoryOnly",
              "LenderFinanceBank",
              "LenderFinanceNonBank",
              "FloorplanFinanceBank",
              "FloorplanFinanceNonBank",
              "BridgeLoanNonBank"
            ],
            "type": "string",
            "nullable": true
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string"
          },
          "profileRealEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "profileTangibleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityType1": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "facilityType2": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "numberMatches": {
            "type": "integer",
            "format": "int32"
          },
          "numberMatchesFinderFee": {
            "type": "integer",
            "format": "int32"
          },
          "metric": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEligible": {
            "type": "boolean",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "collateral": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string"
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "multiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "metricCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "overrideCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          },
          "negativeEbitdaCapacity": {
            "type": "boolean"
          },
          "requiredEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "matchEbitdaRequirement": {
            "type": "boolean"
          },
          "hasValue": {
            "type": "boolean"
          },
          "termSheetMatches": {
            "type": "number",
            "format": "double"
          },
          "showEvaluation": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.MatchingLenderStatDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryName": {
            "type": "string"
          },
          "acquisitionIndustryName": {
            "type": "string"
          },
          "industryDisplayName": {
            "type": "string",
            "readOnly": true
          },
          "industryBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionGeographyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "geographyName": {
            "type": "string"
          },
          "acquisitionGeographyName": {
            "type": "string"
          },
          "geographyDisplayName": {
            "type": "string",
            "readOnly": true
          },
          "geographyBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "ebitdaRevenueBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSize": {
            "type": "number",
            "format": "double"
          },
          "dealSizeBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "countryType": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.MatchingLoanOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptionType": {
            "enum": [
              "CashFlowBank",
              "SeniorCashNonBank",
              "JuniorCashNonBank",
              "AssetBasedInvArBank",
              "AssetBasedInvArNonBank",
              "AssetBasedFixedBank",
              "AssetBasedFixedNonBank",
              "SmallGovernment",
              "LargeGovernment",
              "VentureBank",
              "VentureNonBank",
              "PoFinancing",
              "Factoring",
              "InventoryOnly",
              "LenderFinanceBank",
              "LenderFinanceNonBank",
              "FloorplanFinanceBank",
              "FloorplanFinanceNonBank",
              "BridgeLoanNonBank"
            ],
            "type": "string"
          },
          "matchedLenders": {
            "type": "integer",
            "format": "int32"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "highLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "string",
            "nullable": true
          },
          "collateral": {
            "type": "string",
            "nullable": true
          },
          "loanStructure": {
            "type": "string",
            "nullable": true
          },
          "loanDescription": {
            "type": "string",
            "nullable": true
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          },
          "isPreferred": {
            "type": "boolean"
          },
          "isSelected": {
            "type": "boolean"
          },
          "isMatched": {
            "type": "boolean"
          },
          "typicalCreditSpreadType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string",
            "nullable": true
          },
          "isOverridden": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.MatchingParamsDto": {
        "type": "object",
        "properties": {
          "existingDebt": {
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double"
          },
          "totalEquipmentPurchaseAmount": {
            "type": "number",
            "format": "double"
          },
          "totalRealEstateAmount": {
            "type": "number",
            "format": "double"
          },
          "totalCollateral": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double"
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double"
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.OutputAnalysisFormula": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "conditions": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.OutputAnalysisItem": {
        "required": [
          "formulas",
          "ratings",
          "variables"
        ],
        "type": "object",
        "properties": {
          "displayIndex": {
            "type": "integer",
            "format": "int32"
          },
          "groupType": {
            "enum": [
              "None",
              "Summary",
              "ProfitLoss",
              "CashFlows",
              "BalanceSheet",
              "Business",
              "LoanRequest"
            ],
            "type": "string"
          },
          "outputType": {
            "enum": [
              "TtmRevenue",
              "HistoricalRevenueTrend",
              "ProjectedRevenueTrend",
              "CurrentNetIncomeMargin",
              "HistoricalNetIncomeMarginTrends",
              "ProjectedNetIncomeMarginTrends",
              "EbitdaAddbackPercentage",
              "CurrentEbitdaMargin",
              "CurrentEbitdaMarginTrends",
              "CurrentEbitda",
              "CurrentCashFlowLeverage",
              "HistoricalEbitdaTrend",
              "ProjectedEbitdaTrend",
              "CurrentLiquidityProfile",
              "CurrentVariableCollateralProfile",
              "CurrentFixedCollateralProfile",
              "Headcount",
              "HeadcountMix",
              "CashRunway",
              "FinancialStatements",
              "Industry",
              "ProformaTotalDebtToAdjustmentEbitda",
              "ProformaTotalDebtToRevenue",
              "CashInfusion",
              "ProformaLiquidityProfile",
              "ProformaVariableCollateralProfile",
              "ProformaFixedCollateralProfile",
              "Predictability",
              "FinanceConfidence",
              "LendersInterested",
              "RefinancingExistingDebt",
              "IncrementalNewDebt"
            ],
            "type": "string"
          },
          "outputStatus": {
            "enum": [
              "Weak",
              "Neutral",
              "Strong",
              "VeryStrong",
              "MissingData"
            ],
            "type": "string"
          },
          "summaryStatus": {
            "enum": [
              "None",
              "VeryLow",
              "Low",
              "Moderate",
              "High",
              "VeryHigh"
            ],
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.OutputAnalysisItemVariable"
            }
          },
          "ratings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.OutputAnalysisRating"
            }
          },
          "formulas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.OutputAnalysisFormula"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.OutputAnalysisItemVariable": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.OutputAnalysisRating": {
        "type": "object",
        "properties": {
          "outputStatus": {
            "enum": [
              "Weak",
              "Neutral",
              "Strong",
              "VeryStrong",
              "MissingData"
            ],
            "type": "string"
          },
          "conditions": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.OutputAnalysisStructure": {
        "required": [
          "header",
          "items",
          "outputItems"
        ],
        "type": "object",
        "properties": {
          "debtCapacity": {
            "type": "number",
            "format": "double"
          },
          "proformaDebt": {
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "incrementalDebt": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "remainingDebt": {
            "type": "number",
            "format": "double"
          },
          "refinancedDebt": {
            "type": "number",
            "format": "double"
          },
          "header": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputAnalysisDto"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.CreditOutputLineItemDto"
            }
          },
          "outputItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.OutputAnalysisItem"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.SearchOtherDealsDto": {
        "required": [
          "teaserFilter"
        ],
        "type": "object",
        "properties": {
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "teaserFilter": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.TermSheetFacilityMatchDrillInDto": {
        "type": "object",
        "properties": {
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "dateReceived": {
            "type": "string",
            "format": "date-time"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "facilityAmount": {
            "type": "number",
            "format": "double"
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "industryMatch": {
            "type": "boolean"
          },
          "geographyName": {
            "type": "string",
            "nullable": true
          },
          "geographyMatch": {
            "type": "boolean"
          },
          "dealSize": {
            "type": "number",
            "format": "double"
          },
          "dealSizeMatch": {
            "type": "boolean"
          },
          "borrowerLabel": {
            "type": "string",
            "nullable": true
          },
          "borrowerAmount": {
            "type": "number",
            "format": "double"
          },
          "borrowerMatch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.TrancheCapacity": {
        "type": "object",
        "properties": {
          "tranche": {
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "standardDeviation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageCapacity": {
            "type": "number",
            "format": "double"
          },
          "highCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefaultValue": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Matching.Models.TrancheEvaluation": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "number",
            "format": "double"
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "profileRealEstateType": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "profileTangibleAssetType": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "collateralSecurityType": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityType1": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityType2": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "numberMatches": {
            "type": "integer",
            "format": "int32"
          },
          "numberMatchesFinderFee": {
            "type": "integer",
            "format": "int32"
          },
          "capacities": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Matching.Models.TrancheCapacity"
          },
          "overrideCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "dscr": {
            "type": "number",
            "format": "double"
          },
          "baseRateType": {
            "enum": [
              "NotSelected",
              "Libor",
              "Prime",
              "Fixed",
              "Sofr"
            ],
            "type": "string",
            "nullable": true
          },
          "minimumDscr": {
            "type": "number",
            "format": "double"
          },
          "multiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "negativeEbitdaCapacity": {
            "type": "boolean",
            "readOnly": true
          },
          "requiredEbitda": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "matchEbitdaRequirement": {
            "type": "boolean",
            "readOnly": true
          },
          "hasValue": {
            "type": "boolean",
            "readOnly": true
          },
          "metricCapacity": {
            "type": "number",
            "format": "double"
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Nda.Models.ActiveNdaDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "agreementText": {
            "type": "string",
            "nullable": true
          },
          "ndaType": {
            "enum": [
              "DealSpecific",
              "Template",
              "BankSpecific",
              "Custom",
              "Standard"
            ],
            "type": "string"
          },
          "lenderTemplateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Nda.Models.AvailableNdasDto": {
        "type": "object",
        "properties": {
          "hasDealSpecificNda": {
            "type": "boolean"
          },
          "hasTemplateNda": {
            "type": "boolean"
          },
          "hasBankSpecificNda": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Nda.Models.SignedNdaDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "agreementText": {
            "type": "string",
            "nullable": true
          },
          "acceptedLender": {
            "type": "string",
            "nullable": true
          },
          "acceptedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ndaType": {
            "enum": [
              "DealSpecific",
              "Template",
              "BankSpecific",
              "Custom",
              "Standard"
            ],
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.ProductSubscriptions.Models.InvoiceCreateResponseDto": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "bucketName": {
            "type": "string"
          },
          "invoiceFileName": {
            "type": "string"
          },
          "paymentResponse": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.PaymentResponseDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.ApplicationSettingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "parameterName": {
            "type": "string"
          },
          "parameterValue": {
            "type": "string"
          },
          "valueType": {
            "enum": [
              "String",
              "Boolean",
              "DateTime",
              "Integer"
            ],
            "type": "string"
          },
          "asBool": {
            "type": "boolean"
          },
          "asInt": {
            "type": "integer",
            "format": "int32"
          },
          "asDateTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.CreditExplorer.Models.CompanyContactUserAuditSearchResultDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanyContactUserAuditSearchResultDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.CreditExplorer.Models.CompanySubscriptionDashboardSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceAmendmentDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceAmendmentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyDocumentDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCompanyDocumentDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCompanyDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventOccurrenceDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCompanyEventOccurrenceDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCovenantTargetDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCovenantTargetDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityExtensionOptionDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceCreditFacilityExtensionOptionDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceFinancialCovenantDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceFinancialCovenantDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLineItemTypeDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLineItemTypeDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementAdditionalBorrowerDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementAdditionalBorrowerDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementGuarantorDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementGuarantorDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementHolderDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementHolderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementInvestorGuarantorDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementInvestorGuarantorDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementProviderDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceLoanAgreementProviderDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantResultDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Customer.Models.ComplianceNonfinancialCovenantResultDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ApplicationErrorSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ApplicationErrorSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactDealSummaryItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactDealSummaryItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactSubscriptionSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankContactTeamMemberSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankDealSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.BankSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.BankSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ChatHistoryReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ChatHistoryReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ClosedDealFacilityRenewalItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanyContactSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyContactSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanyPortfolioItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanyPortfolioItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CompanySubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CompanySubscriptionSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplianceCompanySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplianceCompanySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplianceCustomerSummaryItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplianceCustomerSummaryItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ComplimentaryAnalysisReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ConditionTypeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ConditionTypeSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.CustomTermSheetReportListItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.CustomTermSheetReportListItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DataSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DataSubscriptionSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanApplicationSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerLoanAssessmentSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealPartnerSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealPartnerSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSearchReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSearchReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSonarActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSonarActivitySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DealSummarySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DealSummarySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.DebtCapacityCalculatorItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.DebtCapacityCalculatorItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EmployeeRawLeadDealItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.EnterpriseLoanWatchSubscriptionSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ExistingDebtMaturityItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.FinancialCovenantTypeSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.IndustrySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.IndustrySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.JobExecutionSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.JobExecutionSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderDataRoomReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDataRoomReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderDealsSummaryReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderFinderFeeAgreementReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderPerformanceReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderPerformanceReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderProfileReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderProfileReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderReferralReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderReferralReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderSummarySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderSummarySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LenderTeaserReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LenderTeaserReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplateSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanApplicationTaskTemplateSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.LoanWatchProspectSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.LoanWatchProspectSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ManageEmployeeReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageEmployeeReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.ManageUsersSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.ManageUsersSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.MarketTrackerActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.MarketTrackerActivitySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.NaicsCodeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.NaicsCodeSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.OffMarketDealActivitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OffMarketDealActivitySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.OpenDiligenceReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.OpenDiligenceReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PendingFinancialLoadItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PendingFinancialLoadItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PendingInvoiceItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PendingInvoiceItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.PreMarketDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.PreMarketDealSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadBorrowerDashboardItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadInterestItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.RawLeadLenderDashboardItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.SearchLoanRequestItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SearchLoanRequestItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.SingleEngagementReportSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.SingleEngagementReportSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetFeeSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetFeeSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetMissingFacilityReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TermSheetReportItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TermSheetReportItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Employees.Models.TreasuryReferralSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Employees.Models.TreasuryReferralSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.Lenders.Models.LenderRawLeadInterestDashboardDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Lenders.Models.LenderRawLeadInterestDashboardDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.DealOpportunitySearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.MarketTrackerSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.Page`1[[Cerebro.Api.Features.LoanWatch.Models.RawLeadDealSearchItemDto, Cerebro.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.LoanWatch.Models.RawLeadDealSearchItemDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.PagingFormDto": {
        "required": [
          "page",
          "pageSize"
        ],
        "type": "object",
        "properties": {
          "page": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.SendSmsDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.SendSmsResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.StatDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "userHostAddress": {
            "type": "string",
            "nullable": true
          },
          "urlReferrer": {
            "type": "string",
            "nullable": true
          },
          "performedByUserId": {
            "type": "integer",
            "format": "int64"
          },
          "performedByName": {
            "type": "string",
            "nullable": true
          },
          "referenceId": {
            "type": "integer",
            "format": "int64"
          },
          "extras": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.TokenModel": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "A Json Web Token (JWT) that can be passed a bearer token in the Authorization header with subsequent requests."
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Shared.Models.VerifyPhoneDto": {
        "type": "object",
        "properties": {
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "phoneNumber": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.SubmitDebtCapacityCalculator.SubmitDebtCapacityCalculatorRequest": {
        "required": [
          "accountsReceivable",
          "annualRevenue",
          "confirmInputs",
          "ebitda",
          "equipment",
          "existingDebt",
          "inventory",
          "realEstate"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 50,
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "annualRevenue": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "ebitda": {
            "maximum": 300000000,
            "minimum": -300000000,
            "type": "number",
            "format": "double"
          },
          "accountsReceivable": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "inventory": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "equipment": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "realEstate": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "existingDebt": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "institutionalInvestor": {
            "type": "boolean"
          },
          "mrr": {
            "maximum": 300000000,
            "minimum": 0,
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string"
          },
          "confirmInputs": {
            "type": "boolean"
          },
          "supplementalTermsAccepted": {
            "type": "boolean"
          },
          "hutk": {
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9]*$",
            "type": "string",
            "description": "The visitor's HubSpot tracking cookie (hubspotutk), for attribution. Letters and digits only.",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Honeypot: a hidden field real visitors never fill. A non-empty value is answered like a success but nothing is stored or sent.",
            "nullable": true
          },
          "utm_campaign": {
            "type": "string",
            "nullable": true
          },
          "utm_id": {
            "type": "string",
            "nullable": true
          },
          "utm_source": {
            "type": "string",
            "nullable": true
          },
          "utm_medium": {
            "type": "string",
            "nullable": true
          },
          "utm_term": {
            "type": "string",
            "nullable": true
          },
          "utm_matchtype": {
            "type": "string",
            "nullable": true
          },
          "utm_network": {
            "type": "string",
            "nullable": true
          },
          "utm_creative": {
            "type": "string",
            "nullable": true
          },
          "utm_content": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.AccountSettingsDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentAddedReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentDailyReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentWeeklyReminder": {
            "type": "boolean"
          },
          "dataRoomSevenDayCallReminder": {
            "type": "boolean"
          },
          "dataRoomDayOfCallReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionAnsweredReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.ChangePasswordFormDto": {
        "type": "object",
        "properties": {
          "oldPassword": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          },
          "confirmPassword": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.ConfigureMfaDto": {
        "type": "object",
        "properties": {
          "supportEmailAddress": {
            "type": "string"
          },
          "passcodeFromApp": {
            "type": "string"
          },
          "passcodeFromSMS": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "deviceIsTrusted": {
            "type": "boolean"
          },
          "daysOfTrustRemaining": {
            "type": "integer",
            "format": "int32"
          },
          "mfaTrustTimeRemainingText": {
            "type": "string",
            "readOnly": true
          },
          "alreadyConfigured": {
            "type": "boolean"
          },
          "setupMfaUsingPhone": {
            "type": "boolean"
          },
          "existingUserPriorToEnablingMfa": {
            "type": "boolean"
          },
          "daysUntilExpiration": {
            "type": "integer",
            "format": "int32"
          },
          "secretKey": {
            "type": "string"
          },
          "qrCodeUrl": {
            "type": "string"
          },
          "gracePeriodHasExpired": {
            "type": "boolean"
          },
          "daysOfGracePeriodRemaining": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.CurrentPersonDto": {
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "middleInitial": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "imageFileName": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "altPhone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "enum": [
              "CompanyUser",
              "BankUser",
              "Employee",
              "TeamMember",
              "Investment",
              "DealPartner"
            ],
            "type": "string"
          },
          "formalName": {
            "type": "string",
            "readOnly": true
          },
          "fullname": {
            "type": "string",
            "readOnly": true
          },
          "lastNameFirst": {
            "type": "string",
            "readOnly": true
          },
          "hubSpotId": {
            "type": "string"
          },
          "smsVerificationCode": {
            "type": "string"
          },
          "receiveTeasersSms": {
            "type": "boolean"
          },
          "smsPhone": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.CurrentUserDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "prefix": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string"
          },
          "isEmployeeUser": {
            "type": "boolean"
          },
          "isCompanyUser": {
            "type": "boolean"
          },
          "isBankUser": {
            "type": "boolean"
          },
          "isTeamMemberUser": {
            "type": "boolean"
          },
          "isTransactionManagerUser": {
            "type": "boolean"
          },
          "isLenderRelationsManagerUser": {
            "type": "boolean"
          },
          "defaultTimezone": {
            "type": "string"
          },
          "timeZoneId": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "controlledObjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserControlledObjectDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.HelpFormDto": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.MfaConfigurationForm": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string"
          },
          "verificationCode": {
            "type": "string"
          },
          "appVerificationCode": {
            "type": "string"
          },
          "secretKey": {
            "type": "string",
            "nullable": true
          },
          "method": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.SmsSettingsDto": {
        "type": "object",
        "properties": {
          "contactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "receiveTeasersSms": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string"
          },
          "verifiedPhoneNumber": {
            "type": "string"
          },
          "smsVerificationCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.UserBankContactDto": {
        "type": "object",
        "properties": {
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "doesDeals": {
            "type": "boolean"
          },
          "incompleteProfile": {
            "type": "boolean"
          },
          "hasPremiumOptions": {
            "type": "boolean"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "isUserAdministrator": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "bankTier": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "isCommercialBank": {
            "type": "boolean",
            "readOnly": true
          },
          "isNonBank": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.UserContactDto": {
        "type": "object",
        "properties": {
          "isSingleSignonUser": {
            "type": "boolean"
          },
          "mfaEnabled": {
            "type": "boolean"
          },
          "isAuthenticated": {
            "type": "boolean"
          },
          "hasLoanWatchSubscription": {
            "type": "boolean"
          },
          "hasEnterpriseSubscription": {
            "type": "boolean"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserBankContactDto"
          },
          "teamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Features.Users.Models.UserTeamMemberContactDto"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.UserControlledObjectDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "enum": [
              "ManageUserAccount",
              "SingleSignOnTemplates",
              "ResetCovenants",
              "MilestoneDefaults",
              "ResetCompanyFinancials",
              "LoanPurposeFacilities",
              "EditInvoices",
              "NaicsCodes",
              "LoanApplicationForm",
              "TaskChecklistInformation",
              "ApplicationSettings",
              "ManageIndustries",
              "AccessDealPartners",
              "AccessLoanAssessments",
              "AccessDataRooms",
              "ManageLenderProfiles",
              "AccessBorrowerProfiles",
              "AccessSubscriptions",
              "MatchingConfiguration",
              "UpdateHubSpotId",
              "ApplicationErrors",
              "ManageExecutiveSummary",
              "TermSheetFee",
              "ManageViewJobs",
              "FinancialCovenantType",
              "BankAccountManagement",
              "DataSubscriptions",
              "EmployeeReports",
              "ManageProducts",
              "ChatRules",
              "EditClosedFundedDeals",
              "SendPreMarketDealEmails",
              "ManageAISourceDocuments",
              "ManageProspectPrompt",
              "ManageDealAgent"
            ],
            "type": "string"
          },
          "hasAccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Features.Users.Models.UserTeamMemberContactDto": {
        "type": "object",
        "properties": {
          "bankContactTeamMemberGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string"
          },
          "lenderName": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "isCommercialBank": {
            "type": "boolean"
          },
          "isNonBank": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.AdobeSign.Models.CancelContractDto": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string",
            "nullable": true
          },
          "notifyOthers": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.AdobeSign.Models.CreateReminderDto": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reminderFrequency": {
            "enum": [
              "DailyUntilSigned",
              "WeekDailyUntilSigned",
              "EveryOtherDayUntilSigned",
              "EveryThirdDayUntilSigned",
              "EveryFifthDayUntilSigned",
              "WeeklyUntilSigned",
              "Once",
              "None",
              "Cancelled"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentActivityLogDto": {
        "type": "object",
        "properties": {
          "eSignDocumentActivityLogId": {
            "type": "integer",
            "format": "int64"
          },
          "eSignDocumentActivityLogGuid": {
            "type": "string",
            "format": "uuid"
          },
          "eSignDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "eventType": {
            "enum": [
              "Unknown",
              "AgreementSignerNameChangedBySigner",
              "AgreementDocumentsViewed",
              "AgreementReminderCreated",
              "AgreementReminderUpdated",
              "AgreementStatusRequested",
              "AgreementActionCompleted",
              "AgreementActionDelegated",
              "AgreementActionReplacedSigner",
              "AgreementActionRequested",
              "AgreementAutoCancelledConversionProblem",
              "AgreementCreated",
              "AgreementDocumentsDeleted",
              "AgreementEmailBounced",
              "AgreementEmailViewed",
              "AgreementExpired",
              "AgreementKbaAuthenticated",
              "AgreementModified",
              "AgreementOfflineSync",
              "AgreementRecalled",
              "AgreementRejected",
              "AgreementShared",
              "AgreementUploadedBySender",
              "AgreementUserAckAgreementModified",
              "AgreementVaulted",
              "AgreementWebIdentityAuthenticated",
              "AgreementWorkflowCompleted",
              "LibraryDocumentAutoCancelledConversionProblem",
              "LibraryDocumentCreated",
              "LibraryDocumentModified",
              "MegasignCreated",
              "MegasignRecalled",
              "MegasignShared",
              "WidgetEnabled",
              "WidgetDisabled",
              "WidgetCreated",
              "WidgetModified",
              "WidgetShared",
              "WidgetAutoCancelledConversionProblem"
            ],
            "type": "string",
            "nullable": true
          },
          "agreementStatus": {
            "enum": [
              "OutForSignature",
              "OutForDelivery",
              "OutForAcceptance",
              "OutForFormFilling",
              "OutForApproval",
              "OutForWitnessing",
              "Authoring",
              "Cancelled",
              "Signed",
              "Approved",
              "Delivered",
              "Accepted",
              "FormFilled",
              "Expired",
              "Archived",
              "Prefill",
              "Draft",
              "DocumentsNotYetProcessed",
              "WaitingForFaxin",
              "WaitingForVerification",
              "WaitingForNotarization"
            ],
            "type": "string",
            "nullable": true
          },
          "customerStatus": {
            "type": "string",
            "nullable": true
          },
          "customerEmail": {
            "type": "string",
            "nullable": true
          },
          "cerebroStatus": {
            "type": "string",
            "nullable": true
          },
          "contractSigner": {
            "type": "string",
            "nullable": true
          },
          "sender": {
            "type": "string",
            "nullable": true
          },
          "createdOnLocalTime": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentDto": {
        "type": "object",
        "properties": {
          "eSignDocumentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "agreementId": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "enum": [
              "Authoring",
              "Draft",
              "InProcess",
              "Restart",
              "Completed",
              "Cancelled"
            ],
            "type": "string"
          },
          "lastSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOnLocalTime": {
            "type": "string",
            "nullable": true
          },
          "lastSentLocalTime": {
            "type": "string",
            "nullable": true
          },
          "senderEmail": {
            "type": "string",
            "nullable": true
          },
          "senderName": {
            "type": "string",
            "nullable": true
          },
          "eSignDocumentActivityLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.AdobeSign.Models.ESignDocumentActivityLogDto"
            },
            "nullable": true
          },
          "reminderFrequency": {
            "enum": [
              "DailyUntilSigned",
              "WeekDailyUntilSigned",
              "EveryOtherDayUntilSigned",
              "EveryThirdDayUntilSigned",
              "EveryFifthDayUntilSigned",
              "WeeklyUntilSigned",
              "Once",
              "None",
              "Cancelled"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.AdobeSign.Models.SendContractDto": {
        "required": [
          "toEmail"
        ],
        "type": "object",
        "properties": {
          "toEmail": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "notifyOthers": {
            "type": "boolean"
          },
          "reminderFrequency": {
            "enum": [
              "DailyUntilSigned",
              "WeekDailyUntilSigned",
              "EveryOtherDayUntilSigned",
              "EveryThirdDayUntilSigned",
              "EveryFifthDayUntilSigned",
              "WeeklyUntilSigned",
              "Once",
              "None",
              "Cancelled"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Common.ViewModels.PasswordValidationDto": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Common.ViewModels.PasswordValidationError"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Common.ViewModels.PasswordValidationError": {
        "type": "object",
        "properties": {
          "errorType": {
            "enum": [
              "BlackListed",
              "PasswordNotMatched",
              "Mismatch",
              "PasswordNotProvided",
              "ConfirmPasswordNotProvided",
              "TooShort",
              "MissingDigit",
              "MissingUpperCase",
              "MissingSpecialCharacter"
            ],
            "type": "string"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.AcceptedDataRoomNdaTemplate": {
        "type": "object",
        "properties": {
          "acceptedDataRoomNdaTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "acceptedDataRoomNdaTemplateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lenderDataroomNdaTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "dataroomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactTeamMemberId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankContactTeamMember": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMember"
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          },
          "dataroom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "lenderDataroomNdaTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDataroomNdaTemplate"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ActionTaken": {
        "type": "object",
        "properties": {
          "actionTakenId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "actionTakenByPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "actionTakenType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "actionTakenDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionTakenNotes": {
            "type": "string",
            "nullable": true
          },
          "actionTakenByPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "actionTakenTypeEnum": {
            "enum": [
              "CalledXLeftVoicemail",
              "CalledXSpokeToContact",
              "EmailedContact",
              "NoneXNewInfo",
              "DeclinedDataRoomTeaser",
              "Other"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "actionTakenBy": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Amendment": {
        "type": "object",
        "properties": {
          "amendmentId": {
            "type": "integer",
            "format": "int64"
          },
          "amendmentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "amendmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amendmentDescription": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ApiConsumer": {
        "type": "object",
        "properties": {
          "apiConsumerId": {
            "type": "integer",
            "format": "int64"
          },
          "apiConsumerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "secretKey": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "apiConsumerScopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApiConsumerScope"
            }
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ApiConsumerScope": {
        "type": "object",
        "properties": {
          "apiConsumerScopeId": {
            "type": "integer",
            "format": "int64"
          },
          "apiConsumerId": {
            "type": "integer",
            "format": "int64"
          },
          "scope": {
            "type": "string"
          },
          "apiConsumer": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApiConsumer"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ApplicationError": {
        "type": "object",
        "properties": {
          "applicationErrorId": {
            "type": "integer",
            "format": "int64"
          },
          "applicationErrorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "affectedUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "route": {
            "type": "string"
          },
          "referrer": {
            "type": "string"
          },
          "parameters": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "stackTrace": {
            "type": "string",
            "nullable": true
          },
          "innerExceptionJson": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "statusNotes": {
            "type": "string",
            "nullable": true
          },
          "ownerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "lastOccurredOn": {
            "type": "string",
            "format": "date-time"
          },
          "affectedUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "modifiedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "ownerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "statusEnum": {
            "enum": [
              "Open",
              "AnalysisInProgress",
              "Duplicate",
              "NoIssue",
              "BugEntered"
            ],
            "type": "string",
            "readOnly": true
          },
          "innerException": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApplicationErrorInnerException"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ApplicationErrorInnerException": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "stackTrace": {
            "type": "string"
          },
          "innerException": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApplicationErrorInnerException"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Bank": {
        "type": "object",
        "properties": {
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bankName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "type": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "taxIdNumber": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "imageFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankAssets": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "currency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string"
          },
          "tier1Type": {
            "type": "integer",
            "format": "int32"
          },
          "tier2Type": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripeCustomerId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripePaymentMethodId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "affiliateLender": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "billingEmailAddress": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailDomain": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "overview": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanSizeRange": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "interestRateRange": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "commonProducts": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "overviewUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "overviewManuallyUpdated": {
            "type": "boolean",
            "nullable": true
          },
          "actionTakens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ActionTaken"
            }
          },
          "apiConsumers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApiConsumer"
            }
          },
          "bankContactSubscriptionDealOpportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity"
            }
          },
          "bankContactSubscriptionDealOpportunityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView"
            }
          },
          "bankContactSubscriptionFacilityInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest"
            }
          },
          "bankContactSubscriptionFacilityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView"
            }
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
            }
          },
          "bankDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDocument"
            }
          },
          "bankNda": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankNda"
            }
          },
          "bankOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankOffice"
            }
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "companyBanks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyBank"
            }
          },
          "dataRoomTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
            }
          },
          "dataRoomTermSheets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheet"
            }
          },
          "dealExcludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealExcludedLender"
            }
          },
          "dealLenderListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealLenderListItem"
            }
          },
          "dealReducedFeeLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealReducedFeeLender"
            }
          },
          "enterpriseLoanWatchSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
            }
          },
          "finderFeeAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "lenderDataroomNdaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDataroomNdaTemplate"
            }
          },
          "lenderDealExclusivities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDealExclusivity"
            }
          },
          "loanAgreementProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementProvider"
            }
          },
          "loanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "singleSignOnTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.SingleSignOnTemplate"
            }
          },
          "termSheetFacilityPainPointExcludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPointExcludedLender"
            }
          },
          "bucketName": {
            "type": "string",
            "readOnly": true
          },
          "typeEnum": {
            "enum": [
              "National",
              "Regional",
              "Credit_Union",
              "Community_Bank",
              "Non_Bank_Lender",
              "Mezzanine_Lender",
              "International",
              "AssetBased",
              "FamilyOffice",
              "Sbic",
              "Other"
            ],
            "type": "string"
          },
          "statusEnum": {
            "enum": [
              "Active",
              "Expired",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          },
          "bankSizeEnum": {
            "enum": [
              "Top5LargestUSBank",
              "Top10LargestUSBank",
              "Top25LargestUSBank",
              "SuperRegionalBank",
              "RegionalBank",
              "CommunityBank",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "tier1TypeEnum": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "tier2TypeEnum": {
            "enum": [
              "International",
              "National",
              "Regional",
              "CreditUnion",
              "CommunityBank",
              "Sblc",
              "Sbic",
              "Bdc",
              "DirectLender",
              "VentureLender",
              "AssetBased",
              "FamilyOffice",
              "PrivateEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "isCommercialLender": {
            "type": "boolean",
            "readOnly": true
          },
          "isNonBankLender": {
            "type": "boolean",
            "readOnly": true
          },
          "isMediumHighConfidence": {
            "type": "boolean",
            "readOnly": true
          },
          "noteParagraphs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "ssoDomain": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankAccount": {
        "type": "object",
        "properties": {
          "bankAccountId": {
            "type": "integer",
            "format": "int64"
          },
          "bankAccountGuid": {
            "type": "string",
            "format": "uuid"
          },
          "receivingBank": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankAba": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "beneficiary": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "beneficiaryAccountNumber": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "swiftBic": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "noteText": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContact": {
        "type": "object",
        "properties": {
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "bankOfficeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactRole": {
            "type": "integer",
            "format": "int32"
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankContactNotes": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentAddedReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentDailyReminder": {
            "type": "boolean"
          },
          "dataRoomDocumentWeeklyReminder": {
            "type": "boolean"
          },
          "dataRoomSevenDayCallReminder": {
            "type": "boolean"
          },
          "dataRoomDayOfCallReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionAnsweredReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "deactivatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "primaryCapitalType": {
            "type": "integer",
            "format": "int32"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "tier3ContactType": {
            "type": "integer",
            "format": "int32"
          },
          "referralRewardsInd": {
            "type": "boolean"
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "scoreLastUpdatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "userAdministrator": {
            "type": "boolean"
          },
          "rawLeadInterestLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderScoreFlag": {
            "type": "boolean",
            "nullable": true
          },
          "lenderScoreFlagText": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "matchingSummary": {
            "type": "string",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "bankContactSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
            }
          },
          "bankContactTeamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMember"
            }
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "bankDealProfiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
            }
          },
          "bankOffice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankOffice"
          },
          "dealFundingLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFundingLender"
            }
          },
          "dealLenderListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealLenderListItem"
            }
          },
          "directConnectFilters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DirectConnectFilter"
            }
          },
          "finderFeeAgreementContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementContact"
            }
          },
          "finderFeeAgreementTranches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementTranch"
            }
          },
          "lenderScores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderScore"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "preMarketDealTrackingEmails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PreMarketDealTrackingEmail"
            }
          },
          "rawLeadInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.RawLeadInterest"
            }
          },
          "tier3ContactTypeEnum": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string"
          },
          "bankContactRoleEnum": {
            "enum": [
              "CreditOfficer",
              "TreasuryManagementOfficer",
              "BankAssociate",
              "BankManagement",
              "RelationshipManager",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "tier3ContactTypeEnumList": {
            "type": "array",
            "items": {
              "enum": [
                "None",
                "Sba7a",
                "Sba504",
                "SeniorCash",
                "AssetWorkingCapital",
                "AssetEquipment",
                "RealEstateSenior",
                "MiddleMarket",
                "LeveragedFinance",
                "SyndicatedCapitalMarkets",
                "JuniorCash",
                "Mezzanine",
                "StructuredPrivateEquity",
                "RealEstateJunior",
                "EquityMinority",
                "EquityControl",
                "UnitrancheStretchSenior",
                "VentureCapital",
                "MiddleMarketSpecialist",
                "AssetIntangible",
                "Usda",
                "VentureDebt",
                "RecurringRevenue",
                "BridgeMcaLending"
              ],
              "type": "string"
            },
            "readOnly": true
          },
          "isOnlyBridgeMcaLending": {
            "type": "boolean",
            "readOnly": true
          },
          "primaryCapitalTypeEnum": {
            "enum": [
              "Debt",
              "Equity",
              "None"
            ],
            "type": "string",
            "readOnly": true
          },
          "activeSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "failedPaymentSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "lenderProfileStatus": {
            "type": "string",
            "readOnly": true
          },
          "hasPremiumOptions": {
            "type": "boolean",
            "readOnly": true
          },
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "profileGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "isLockedOut": {
            "type": "boolean",
            "readOnly": true
          },
          "hasConfiguredTotp": {
            "type": "boolean",
            "readOnly": true
          },
          "excludeFromDeals": {
            "type": "boolean",
            "readOnly": true
          },
          "doesDeals": {
            "type": "boolean",
            "readOnly": true
          },
          "incompleteProfile": {
            "type": "boolean",
            "readOnly": true
          },
          "isCommercialBank": {
            "type": "boolean",
            "readOnly": true
          },
          "isNonBank": {
            "type": "boolean",
            "readOnly": true
          },
          "bankTier": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "readOnly": true
          },
          "timeZoneId": {
            "type": "string",
            "readOnly": true
          },
          "isAssociatedContact": {
            "type": "boolean",
            "readOnly": true
          },
          "isLenderFlagged": {
            "type": "boolean",
            "readOnly": true
          },
          "underwritingStatus": {
            "enum": [
              "Missing",
              "Approved",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscription": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "billingFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "monthlyTreasuryReferrals": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyDealOpportunities": {
            "type": "integer",
            "format": "int32"
          },
          "preventDataRoomAccess": {
            "type": "boolean",
            "nullable": true
          },
          "stripeCustomerId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripePaymentMethodId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "bankContactSubscriptionDealOpportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity"
            }
          },
          "bankContactSubscriptionDealOpportunityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView"
            }
          },
          "bankContactSubscriptionFacilityInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest"
            }
          },
          "bankContactSubscriptionFacilityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView"
            }
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "loanWatchProspects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchProspect"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Product"
          },
          "status": {
            "enum": [
              "Active",
              "Canceled",
              "FailedPayment",
              "PendingCancellation",
              "PendingPayment"
            ],
            "type": "string",
            "readOnly": true
          },
          "isEnterpriseSubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "isCanceled": {
            "type": "boolean",
            "readOnly": true
          },
          "isInactive": {
            "type": "boolean",
            "readOnly": true
          },
          "productName": {
            "type": "string",
            "readOnly": true
          },
          "renewalDate": {
            "type": "string",
            "format": "date",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionDealOpportunityId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionDealOpportunityViewId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastViewedOn": {
            "type": "string",
            "format": "date-time"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionFacilityInterestId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionFacilityViewId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastViewedOn": {
            "type": "string",
            "format": "date-time"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionPainPointInterestId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "termSheetFacilityPainPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView": {
        "type": "object",
        "properties": {
          "bankContactSubscriptionPainPointViewId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastViewedOn": {
            "type": "string",
            "format": "date-time"
          },
          "viewCount": {
            "type": "integer",
            "format": "int32"
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "termSheetFacilityPainPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactTeamMember": {
        "type": "object",
        "properties": {
          "bankContactTeamMemberId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactTeamMemberGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "viewUnderwritingCriteria": {
            "type": "boolean"
          },
          "editUnderwritingCriteria": {
            "type": "boolean"
          },
          "canInteractWithTeasers": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acceptedDataRoomNdaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.AcceptedDataRoomNdaTemplate"
            }
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "bankContactTeamMemberDataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMemberDataRoom"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "isCommercialBank": {
            "type": "boolean",
            "readOnly": true
          },
          "isNonBank": {
            "type": "boolean",
            "readOnly": true
          },
          "bankContactName": {
            "type": "string",
            "readOnly": true
          },
          "isAssociatedContact": {
            "type": "boolean",
            "readOnly": true
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "hasConfiguredTotp": {
            "type": "boolean",
            "readOnly": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "prefix": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "firstName": {
            "type": "string",
            "readOnly": true
          },
          "lastName": {
            "type": "string",
            "readOnly": true
          },
          "suffix": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "emailAddress": {
            "type": "string",
            "readOnly": true
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "altPhone": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "readOnly": true
          },
          "timeZoneId": {
            "type": "string",
            "readOnly": true
          },
          "isLockedOut": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankContactTeamMemberDataRoom": {
        "type": "object",
        "properties": {
          "bankContactTeamMemberDataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactTeamMemberDataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactTeamMemberId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankContactTeamMember": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMember"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dealStatus": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDealProfile": {
        "type": "object",
        "properties": {
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "targetRevenueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetRevenueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetEbitdaMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetDealSizeMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastApprovedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasSbaLending": {
            "type": "boolean",
            "nullable": true
          },
          "allStates": {
            "type": "boolean",
            "nullable": true
          },
          "advanceRateInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advanceRateNewHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advanceRateUsedHeavyEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumYearsOperating": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDealProfileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "doesSeniorCashFlowDeals": {
            "type": "boolean",
            "nullable": true
          },
          "doesAssetBasedDeals": {
            "type": "boolean",
            "nullable": true
          },
          "doesJuniorCashFlowDeals": {
            "type": "boolean",
            "nullable": true
          },
          "seniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorSecuredCollateralShortfall": {
            "type": "boolean",
            "nullable": true
          },
          "seniorLowEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorHighEndCreditSpread": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorTargetLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSecuredCollateralShortfall": {
            "type": "boolean",
            "nullable": true
          },
          "assetReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "assetEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "assetMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "assetInventory": {
            "type": "boolean",
            "nullable": true
          },
          "assetFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "assetFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "assetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "assetIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "assetFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "doesVentureDebtDeals": {
            "type": "boolean",
            "nullable": true
          },
          "ventureSaasCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "ventureMedicalTechDevices": {
            "type": "boolean",
            "nullable": true
          },
          "ventureHealthCareIt": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherLifeSciences": {
            "type": "boolean",
            "nullable": true
          },
          "ventureTechEnabledBusinesses": {
            "type": "boolean",
            "nullable": true
          },
          "ventureOtherTechnology": {
            "type": "boolean",
            "nullable": true
          },
          "ventureServicesBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "ventureIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendMonthlyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendAnnuallyRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEbitda": {
            "type": "boolean",
            "nullable": true
          },
          "ventureLendEnterpriseValue": {
            "type": "boolean",
            "nullable": true
          },
          "internationalLending": {
            "type": "boolean",
            "nullable": true
          },
          "generalTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assetBasedTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ventureDebtTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "seniorCashFlowTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorCashFlowTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "underwritingCriteriaStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facilityPurposeOrderFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "completedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "excludeFromDeals": {
            "type": "boolean",
            "nullable": true
          },
          "doesEquityInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityEnterpriseValueMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityEnterpriseValueMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityStructuredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityPreferredInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityConvertibleInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityCommonInvestments": {
            "type": "boolean",
            "nullable": true
          },
          "equityControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equityNonControlling": {
            "type": "boolean",
            "nullable": true
          },
          "equitySecRegistered": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateHighNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFamilyOffice": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeFundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeUnfundedSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypeVenture": {
            "type": "boolean",
            "nullable": true
          },
          "investorTypePrivateFund": {
            "type": "boolean",
            "nullable": true
          },
          "equityInvestmentTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isPreferredSbaLender": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Business": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Consumer": {
            "type": "boolean",
            "nullable": true
          },
          "isBusiness2Government": {
            "type": "boolean",
            "nullable": true
          },
          "sbaTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sba7aProgram": {
            "type": "boolean",
            "nullable": true
          },
          "sba504Program": {
            "type": "boolean",
            "nullable": true
          },
          "usdaBusinessProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaRuralEnergyProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCommunityProgram": {
            "type": "boolean",
            "nullable": true
          },
          "usda9003Program": {
            "type": "boolean",
            "nullable": true
          },
          "payReferralFees": {
            "type": "boolean",
            "nullable": true
          },
          "canCommercialRealEstateSenior": {
            "type": "boolean",
            "nullable": true
          },
          "canCommercialRealEstateJunior": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorRealEstateTabStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasSeniorRealEstateTermLoans": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateBridgeFacility": {
            "type": "boolean",
            "nullable": true
          },
          "hasSeniorRealEstateRevolvers": {
            "type": "boolean",
            "nullable": true
          },
          "seniorRealEstateFacilitySaleLeaseback": {
            "type": "boolean",
            "nullable": true
          },
          "legalLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "criteriaLendingStyle": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "specialtyFinanceLending": {
            "type": "boolean",
            "nullable": true
          },
          "lenderInsuranceFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mortgageWholesaleFinance": {
            "type": "boolean",
            "nullable": true
          },
          "consumerReceivablesFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mcaLenderFinance": {
            "type": "boolean",
            "nullable": true
          },
          "nonPerformingLoanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "sponsorFinance": {
            "type": "boolean",
            "nullable": true
          },
          "fundFinance": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyFinance": {
            "type": "boolean",
            "nullable": true
          },
          "ipFinance": {
            "type": "boolean",
            "nullable": true
          },
          "affordableHousingFinance": {
            "type": "boolean",
            "nullable": true
          },
          "energyIncentiveFinance": {
            "type": "boolean",
            "nullable": true
          },
          "mustHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "seniorMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeMostlyRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeLtvLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeEbitdaLessThan": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seniorPersonalGuaranteeNegotiation": {
            "type": "boolean",
            "nullable": true
          },
          "seniorPersonalGuaranteeNeverRequired": {
            "type": "boolean",
            "nullable": true
          },
          "seniorInterestType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSecondLienTangibleOnly": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSecondLienAllAssets": {
            "type": "boolean",
            "nullable": true
          },
          "juniorMezzanine": {
            "type": "boolean",
            "nullable": true
          },
          "juniorStructuredEquity": {
            "type": "boolean",
            "nullable": true
          },
          "juniorInterestType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "juniorCashTargetMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorCashTargetMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorPikMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "juniorSourceReturnExitFees": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnWarrants": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnEquityCoInvest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnAccruedInterest": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnIrr": {
            "type": "boolean",
            "nullable": true
          },
          "juniorSourceReturnMoic": {
            "type": "boolean",
            "nullable": true
          },
          "accountsReceivableAdvanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "accountsReceivableValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "inventoryValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "equipmentValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetUsedEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "usedEquipmentValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "fleetVehicleValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetUsedFleetVehicles": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedFleetVehicleAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedFleetVehicleValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "marineVesselsValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetUsedMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedMarineVesselAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedMarineVesselsValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "helicoptersValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "usedAssetHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedHelicopterAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedHelicoptersValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "fixedWingAircraftValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetUsedFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "assetUsedFixedWingAircraftAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedFixedWingAircraftValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetIntellectualPropertyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "intellectualPropertyValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetRoyalty": {
            "type": "boolean",
            "nullable": true
          },
          "royaltyAdvancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "royaltyValuationMethod": {
            "type": "integer",
            "format": "int32"
          },
          "assetMaximumLeverageRatio": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetMinimumCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assetInterestMin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetInterestMax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "assetBorrowerMustPositiveNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "assetBorrowerMustPositiveTangibleNetWorth": {
            "type": "boolean",
            "nullable": true
          },
          "usdaAllStates": {
            "type": "boolean",
            "nullable": true
          },
          "usdaCollateralizeBusinessAssets": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMaximumUnCollateralizeBusinessAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usdaProvideAssetLiteLoans": {
            "type": "boolean",
            "nullable": true
          },
          "usdaMinimumEbitdaRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "generalSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "seniorCashSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "juniorCashSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "assetBasedSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "equitySectionNotes": {
            "type": "string",
            "nullable": true
          },
          "ventureSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "seniorRealEstateSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "juniorRealEstateSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "sbaSectionNotes": {
            "type": "string",
            "nullable": true
          },
          "doesAssetPoFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "assetPoFinancingDescription": {
            "type": "string",
            "nullable": true
          },
          "doesAssetFactoring": {
            "type": "boolean",
            "nullable": true
          },
          "mustNotHaveInstitutionalSponsor": {
            "type": "boolean",
            "nullable": true
          },
          "doesInventoryOnly": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinance": {
            "type": "boolean",
            "nullable": true
          },
          "countryType": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sbaPariPassuLending": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuLendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuRealEstateRequired": {
            "type": "boolean",
            "nullable": true
          },
          "sbaPariPassuTargetDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaPariPassuEquityInjectionPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "revenueMinFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitdaMinFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealSizeFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
            }
          },
          "bankDealProfileAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileAudit"
            }
          },
          "bankDealProfileRealEstates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileRealEstate"
            }
          },
          "bankDealProfileTranches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileTranch"
            }
          },
          "dataRoomCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomCall"
            }
          },
          "dataRoomTeasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomTermSheets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheet"
            }
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
            }
          },
          "lenderFeedbackSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderFeedbackSummary"
            }
          },
          "lenderTermSheetFacilityMatchings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderTermSheetFacilityMatching"
            }
          },
          "targetDealTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetDealType"
            }
          },
          "targetIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetIndustry"
            }
          },
          "targetPostalCodeMatches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCodeMatch"
            }
          },
          "targetPostalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCode"
            }
          },
          "targetStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetState"
            }
          },
          "tier3ContactType": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "nullable": true
          },
          "seniorInterestTypeEnum": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "juniorInterestTypeEnum": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "assetInterestTypeEnum": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string",
            "nullable": true
          },
          "accountsReceivableValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "inventoryValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "equipmentValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "usedEquipmentValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "fleetVehicleValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "usedFleetVehicleValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "marineVesselsValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "usedMarineVesselsValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "helicoptersValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "usedHelicoptersValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "fixedWingAircraftValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "usedFixedWingAircraftValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "intellectualPropertyValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "royaltyValuationMethodEnum": {
            "enum": [
              "Book",
              "FairMarketValue",
              "NetOrderlyLiquidationValue",
              "OrderlyLiquidationValue"
            ],
            "type": "string"
          },
          "tier3ContactTypeDescription": {
            "type": "string",
            "readOnly": true
          },
          "criteriaLendingStyleEnum": {
            "enum": [
              "Generalist",
              "Specialist"
            ],
            "type": "string",
            "readOnly": true
          },
          "countryTypeEnum": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "countryTypeList": {
            "type": "array",
            "items": {
              "enum": [
                "UnitedStates",
                "Canada",
                "Mexico",
                "Brazil",
                "Europe",
                "Other"
              ],
              "type": "string"
            },
            "readOnly": true
          },
          "countryTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "readOnly": true
          },
          "stateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "readOnly": true
          },
          "specialtyIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetIndustry"
            },
            "readOnly": true
          },
          "specialtyIndustriesDisplay": {
            "type": "string",
            "readOnly": true
          },
          "excludedIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetIndustry"
            },
            "readOnly": true
          },
          "excludedIndustriesDisplay": {
            "type": "string",
            "readOnly": true
          },
          "dealTypeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "readOnly": true
          },
          "targetDealTypeDisplay": {
            "type": "string",
            "readOnly": true
          },
          "targetStateDisplay": {
            "type": "string",
            "readOnly": true
          },
          "showSba": {
            "type": "boolean",
            "readOnly": true
          },
          "showUsda": {
            "type": "boolean",
            "readOnly": true
          },
          "dealCriteriaSections": {
            "type": "array",
            "items": {
              "enum": [
                "General",
                "CriteriaSeniorCashFlow",
                "CriteriaJuniorCashFlow",
                "CriteriaAssetBased",
                "CriteriaVentureDebt",
                "CriteriaSba",
                "CriteriaSeniorRealEstate",
                "CriteriaJuniorRealEstate",
                "CriteriaEquityInvesting"
              ],
              "type": "string"
            },
            "readOnly": true
          },
          "contactSelectedItemTypeList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            },
            "readOnly": true
          },
          "assetBasedList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            },
            "readOnly": true
          },
          "cashFlowLendingList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            },
            "readOnly": true
          },
          "governmentProgramList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            },
            "readOnly": true
          },
          "otherList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.SelectedItemDto"
            },
            "readOnly": true
          },
          "generalBorrowerProfileStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "generalDealPurposeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "generalIndustriesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "generalGeographyStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "generalTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "assetLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "assetWorkingCapitalAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "assetTangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "assetIntangibleAssetTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "assetBasedTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "sbaProgramsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "sbaOtherDetailsStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "sbaCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "sbaTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorRealEstateFacilitiesStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorRealEstateUnderwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorRealEstateTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "juniorRealEstateUnderwritingCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "juniorRealEstateTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorCollateralStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "seniorCashFlowTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "juniorLeverageStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "juniorStructuresStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "juniorCashFlowTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "ventureDealTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "ventureDealSizeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "ventureDebtTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "doesDealTypeStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "underwritingCriteriaStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "equityInvestmentCriteriaStatus": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "equityInvestmentTabStatusEnum": {
            "enum": [
              "NotApplicable",
              "Blank",
              "Partial",
              "Complete"
            ],
            "type": "string",
            "readOnly": true
          },
          "lessThanTwoMillionLending": {
            "type": "boolean",
            "readOnly": true
          },
          "lenderScoreFlag": {
            "type": "boolean",
            "readOnly": true
          },
          "lenderScoreFlagText": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDealProfileAudit": {
        "type": "object",
        "properties": {
          "bankDealProfileAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileAuditGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "isFirstSave": {
            "type": "boolean"
          },
          "statusComments": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string"
          },
          "step1Changes": {
            "type": "string",
            "nullable": true
          },
          "step2Changes": {
            "type": "string",
            "nullable": true
          },
          "step3Changes": {
            "type": "string",
            "nullable": true
          },
          "step4Changes": {
            "type": "string",
            "nullable": true
          },
          "step5Changes": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "lastReminderOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "step6Changes": {
            "type": "string",
            "nullable": true
          },
          "step7Changes": {
            "type": "string",
            "nullable": true
          },
          "step8Changes": {
            "type": "string",
            "nullable": true
          },
          "step0Changes": {
            "type": "string",
            "nullable": true
          },
          "step9Changes": {
            "type": "string",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "bankDealProfileLineAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileLineAudit"
            }
          },
          "submittedByNavigation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "statusEnum": {
            "enum": [
              "Pending",
              "Approved",
              "Declined"
            ],
            "type": "string"
          },
          "createdOnDisplay": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDealProfileLineAudit": {
        "type": "object",
        "properties": {
          "bankDealProfileLineAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileLineAuditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankDealProfileAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "lineChanges": {
            "type": "string",
            "nullable": true
          },
          "step": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isDelete": {
            "type": "boolean",
            "nullable": true
          },
          "bankDealProfileAudit": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileAudit"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDealProfileRealEstate": {
        "type": "object",
        "properties": {
          "bankDealProfileRealEstateId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileRealEstateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "realEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "office": {
            "type": "boolean",
            "nullable": true
          },
          "lendingLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maximumLtv": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tenor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isFixed": {
            "type": "boolean",
            "nullable": true
          },
          "baseRateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spreadLow": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spreadHigh": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateTranche": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "realEstateTrancheEnum": {
            "enum": [
              "Senior",
              "JuniorMezzanine"
            ],
            "type": "string",
            "nullable": true
          },
          "realEstateTypeEnum": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "baseRateTypeEnum": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDealProfileTranch": {
        "type": "object",
        "properties": {
          "bankDealProfileTrancheId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankDocument": {
        "type": "object",
        "properties": {
          "bankDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "documentType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "documentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "finderFeeAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement"
            }
          },
          "documentTypeEnum": {
            "enum": [
              "Bank_Profile",
              "Loan_Document",
              "Finders_Fee_Agreement",
              "Other"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankNda": {
        "type": "object",
        "properties": {
          "bankNdaId": {
            "type": "integer",
            "format": "int64"
          },
          "bankNdaGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BankOffice": {
        "type": "object",
        "properties": {
          "bankOfficeId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "isPrimaryAddress": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          },
          "officeName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address3": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankOfficeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "timeZoneId": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
            }
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "getBaseOffice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BaseOffice"
          },
          "addressString": {
            "type": "string",
            "readOnly": true
          },
          "fullAddress": {
            "type": "string",
            "readOnly": true
          },
          "cityState": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.BaseOffice": {
        "type": "object",
        "properties": {
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CancellationReason": {
        "type": "object",
        "properties": {
          "cancellationReasonId": {
            "type": "integer",
            "format": "int64"
          },
          "cancellationReasonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reasonName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "productSubscriptionTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionTerm"
            }
          },
          "productSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Company": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "companyOverview": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "ownershipStructure": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "taxIdNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "treasuryMgmtFees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "foreignExchangeVolume": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sizeOf401Kplan": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "outstandingSwapValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "source": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reasonForComing": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "referredBy": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "accountManagerPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "imageFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "existingBank": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "existingAccountant": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "existingLawFirm": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isGovtContractor": {
            "type": "boolean",
            "nullable": true
          },
          "percentGovtRevenue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "emailDomain": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalDebt": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "numExistingFacilities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "salesRepPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fiscalEndMonth": {
            "type": "integer",
            "format": "int32"
          },
          "fiscalEndDay": {
            "type": "integer",
            "format": "int32"
          },
          "requiresFinancialApproval": {
            "type": "boolean",
            "nullable": true
          },
          "requiresCovenantApproval": {
            "type": "boolean",
            "nullable": true
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "canAccessRelatedCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "isManagingDebt": {
            "type": "boolean"
          },
          "isManagingFinancials": {
            "type": "boolean"
          },
          "isSoftwareSaasCompany": {
            "type": "boolean",
            "nullable": true
          },
          "customerType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showCreditExplorer": {
            "type": "boolean"
          },
          "billingEmailAddress": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "restrictedAccess": {
            "type": "boolean"
          },
          "covenantReminderTiming": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string"
          },
          "accountingSystemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isTestCompany": {
            "type": "boolean"
          },
          "stripeCustomerId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripePaymentMethodId": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bypassSupplementalTerms": {
            "type": "boolean"
          },
          "internalCode": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "securityId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyInternalCodeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "accountManagerPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "actionTakens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ActionTaken"
            }
          },
          "apiConsumers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApiConsumer"
            }
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "companyBanks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyBank"
            }
          },
          "companyContactUserAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContactUserAudit"
            }
          },
          "companyContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
            }
          },
          "companyCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
            }
          },
          "companyDocumentFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
            }
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocument"
            }
          },
          "companyEvents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEvent"
            }
          },
          "companyInternalCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyInternalCode"
          },
          "companyInternalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyInternalCode"
            }
          },
          "companyNda": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyNda"
            }
          },
          "companyOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyOffice"
            }
          },
          "companySubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
            }
          },
          "complimentaryAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "dealDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDetailSummary"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "employeeCompanyPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeCompanyPermission"
            }
          },
          "financialStatements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialStatement"
            }
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "inverseParentCompany": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "lineItemTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
            }
          },
          "loanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
            }
          },
          "parentCompany": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "productSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          },
          "salesRepPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "singleSignOnTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.SingleSignOnTemplate"
            }
          },
          "bucketName": {
            "type": "string",
            "readOnly": true
          },
          "parentBucketName": {
            "type": "string",
            "readOnly": true
          },
          "currencyNotNull": {
            "type": "string",
            "readOnly": true
          },
          "hubSpotCompanyType": {
            "type": "string",
            "readOnly": true
          },
          "isDavidsonKempner": {
            "type": "boolean",
            "readOnly": true
          },
          "fiscalYearEndDisplay": {
            "type": "string",
            "readOnly": true
          },
          "companyStatusEnum": {
            "enum": [
              "Active",
              "Inactive",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          },
          "accountingSystemTypeEnum": {
            "enum": [
              "AbilaMip",
              "FreshBooks",
              "MicrosoftDynamics",
              "NetSuite",
              "Pegasus",
              "QuickBooksDesktop",
              "QuickBooksOnline",
              "Sage100",
              "Sage200",
              "Sage300",
              "Sage50PeachTree",
              "SageIntacct",
              "Sap",
              "Xero",
              "Zoho",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "companyTypeEnum": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string",
            "readOnly": true
          },
          "ownershipStructureEnum": {
            "enum": [
              "Unknown",
              "Private",
              "Public",
              "Private_Equity_Owned",
              "ESOP_Owned",
              "Foreign_Parent_Owned",
              "NonProfit",
              "Other",
              "IndependentSponsorBacked"
            ],
            "type": "string"
          },
          "customerTypeEnum": {
            "enum": [
              "OperatingCompany",
              "Intermediary",
              "PrivateEquityFirm",
              "IndependentSponsor",
              "Advisor",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "leadSource": {
            "enum": [
              "Advertisement",
              "Cold_Call",
              "Trade_Show_Meeting",
              "Colleague_Referral",
              "Referral",
              "Internet_Search",
              "Newsletter",
              "Email_Invitation",
              "Direct_Mailing",
              "Other",
              "Website"
            ],
            "type": "string",
            "nullable": true
          },
          "complianceCompanyStatus": {
            "type": "string",
            "readOnly": true
          },
          "isComplianceCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "isCreditExplorerCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "isCreditExplorerOnlyCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "isBrokerCustomerType": {
            "type": "boolean",
            "readOnly": true
          },
          "q1EndMonth": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "q2EndMonth": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "q3EndMonth": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "q4EndMonth": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "parentCompanyName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "parentCompanyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "parentCompanyLogo": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "parentCanAccessRelatedCompanies": {
            "type": "boolean",
            "readOnly": true
          },
          "salesPersonName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "accountManagerName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "singleSignOnTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.SingleSignOnTemplate"
          },
          "isCreditExplorerPortfolioCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "s3Bucket": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "currentFiscalYear": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentFiscalQuarter": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyBank": {
        "type": "object",
        "properties": {
          "companyBankId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherBankName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyBankType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyBankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "dealFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFacility"
            }
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "companyBankTypeEnum": {
            "enum": [
              "Other",
              "Treasury",
              "Financing"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyContact": {
        "type": "object",
        "properties": {
          "companyContactId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "companyOfficeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyContactNotes": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "influenceLevel": {
            "type": "integer",
            "format": "int32"
          },
          "isBillingContact": {
            "type": "boolean"
          },
          "companyContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyAdmin": {
            "type": "boolean"
          },
          "covenantEntry": {
            "type": "boolean"
          },
          "covenantReportSignature": {
            "type": "boolean"
          },
          "financialDataEntry": {
            "type": "boolean"
          },
          "financialDataApproval": {
            "type": "boolean"
          },
          "createCreditSearch": {
            "type": "boolean"
          },
          "covenantApprovalLevel1": {
            "type": "boolean"
          },
          "covenantApprovalLevel2": {
            "type": "boolean"
          },
          "covenantApprovalLevel3": {
            "type": "boolean"
          },
          "covenantApprovalLevel4": {
            "type": "boolean"
          },
          "covenantApprovalFinal": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isThirdPartyContact": {
            "type": "boolean"
          },
          "viewForecastData": {
            "type": "boolean"
          },
          "createdByPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean"
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean"
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean"
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean"
          },
          "receiveCovenantReminderEmails": {
            "type": "boolean"
          },
          "lenderAccessRoomReminder": {
            "type": "boolean"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyContactDataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContactDataRoom"
            }
          },
          "companyOffice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyOffice"
          },
          "createdByPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "financialCovenantPrimaryContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
            }
          },
          "financialCovenantReviewerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "nonfinancialCovenantPrimaryContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
            }
          },
          "nonfinancialCovenantReviewerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "auditModel": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.CompanyContactUserAuditModel"
          },
          "influenceLevelEnum": {
            "enum": [
              "Decision_Maker",
              "High_Influence",
              "Medium_Influence",
              "Low_Influence",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "isLockedOut": {
            "type": "boolean",
            "readOnly": true
          },
          "hasConfiguredTotp": {
            "type": "boolean",
            "readOnly": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "lastLoginOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "officeName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "prefix": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "suffix": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "firstName": {
            "type": "string",
            "readOnly": true
          },
          "lastName": {
            "type": "string",
            "readOnly": true
          },
          "emailAddress": {
            "type": "string",
            "readOnly": true
          },
          "officeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "readOnly": true
          },
          "timeZoneId": {
            "type": "string",
            "readOnly": true
          },
          "isParentCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "companyName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "parentCompanyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyContactDataRoom": {
        "type": "object",
        "properties": {
          "companyContactDataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "companyContactDataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyContactId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "isAdmin": {
            "type": "boolean",
            "nullable": true
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dealName": {
            "type": "string",
            "readOnly": true
          },
          "companyName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "dealStatus": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "roomStatus": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "isAsapTargetDate": {
            "type": "boolean",
            "readOnly": true
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "readOnly": true
          },
          "includeLoanApplication": {
            "type": "boolean",
            "readOnly": true
          },
          "isDataRoomAccessible": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyContactUserAudit": {
        "type": "object",
        "properties": {
          "companyContactUserAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "companyContactUserAuditGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "previousValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "changedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "changedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyCustomValue": {
        "type": "object",
        "properties": {
          "companyCustomValueId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "valueName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "operators": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyCustomValueGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customValueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isEbitda": {
            "type": "boolean",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "creditFacilityCompanyCustomValueId2Navigations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
            }
          },
          "creditFacilityCompanyCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
            }
          },
          "customValueTypeEnum": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "hasTtmComponent": {
            "type": "boolean",
            "readOnly": true
          },
          "formulaDetail": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "formulaValueItemChildCompanyCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FormulaValueItem"
            },
            "nullable": true
          },
          "formulaValueItemLimitCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FormulaValueItem"
            },
            "nullable": true
          },
          "formulaValueItemParentCompanyCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FormulaValueItem"
            },
            "nullable": true
          },
          "covenantValueItemCompanyCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantValueItem"
            },
            "nullable": true
          },
          "covenantValueItemLimitCustomValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantValueItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyDocument": {
        "type": "object",
        "properties": {
          "companyDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "documentType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "documentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "category": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "jobStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "completedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedBy": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder": {
        "type": "object",
        "properties": {
          "companyDocumentFolderId": {
            "type": "integer",
            "format": "int64"
          },
          "companyDocumentFolderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "parentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "folderName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isRoot": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "folderType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocument"
            }
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "inverseParentFolder": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
            }
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "parentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyEvent": {
        "type": "object",
        "properties": {
          "companyEventId": {
            "type": "integer",
            "format": "int64"
          },
          "companyEventGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "eventName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "eventDescription": {
            "type": "string",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyEventOccurrences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEventOccurrence"
            }
          },
          "nonfinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyEventOccurrence": {
        "type": "object",
        "properties": {
          "companyEventOccurrenceId": {
            "type": "integer",
            "format": "int64"
          },
          "companyEventOccurrenceGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyEventId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "eventDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "eventAttachmentFilename": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyEvent": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEvent"
          },
          "nonfinancialCovenantResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenantResult"
            }
          },
          "reportedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyInternalCode": {
        "type": "object",
        "properties": {
          "companyInternalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "companyInternalCodeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "internalCode": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyNda": {
        "type": "object",
        "properties": {
          "companyNdaId": {
            "type": "integer",
            "format": "int64"
          },
          "companyNdaGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "isActiveNda": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyOffice": {
        "type": "object",
        "properties": {
          "companyOfficeId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "isHeadquarters": {
            "type": "boolean"
          },
          "isBillingAddress": {
            "type": "boolean"
          },
          "officeName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address3": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyOfficeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "timeZoneId": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
            }
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "getBaseOffice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BaseOffice"
          },
          "addressString": {
            "type": "string",
            "readOnly": true
          },
          "fullAddress": {
            "type": "string",
            "readOnly": true
          },
          "cityState": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanyQuestion": {
        "type": "object",
        "properties": {
          "companyQuestionId": {
            "type": "integer",
            "format": "int64"
          },
          "isActive": {
            "type": "boolean"
          },
          "questionType": {
            "type": "integer",
            "format": "int32"
          },
          "questionFormat": {
            "type": "integer",
            "format": "int32"
          },
          "questionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "questionText": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem1": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem2": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem3": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem4": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem5": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem6": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem7": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem8": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem9": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "listItem10": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "includeOther": {
            "type": "boolean"
          },
          "companyQuestionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "questionCategoryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isCompanyQuestion": {
            "type": "boolean"
          },
          "isLoanApplicationQuestion": {
            "type": "boolean"
          },
          "isLoanAssessmentQuestion": {
            "type": "boolean"
          },
          "dealQuestionAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealQuestionAnswer"
            }
          },
          "questionCategory": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.QuestionCategory"
          },
          "questionFormatEnum": {
            "enum": [
              "YesNo",
              "YesNoWithComment",
              "MultipleChoice",
              "OpenEnded"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscription": {
        "type": "object",
        "properties": {
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "guaranteeTerms": {
            "type": "integer",
            "format": "int32"
          },
          "dealsPerYear": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenew": {
            "type": "boolean"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "firstYearSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subscriptionFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "additionalDealFee": {
            "type": "number",
            "format": "double"
          },
          "additionalDealFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "subscriptionEndDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "billingFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "successFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "successFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasIncentivePricing": {
            "type": "boolean"
          },
          "incentiveSubscriptionFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "incentiveExpirationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementSignedBy": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contractFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "refinanceBenefitAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "accountManagerPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "includeSbaexclusion": {
            "type": "boolean",
            "nullable": true
          },
          "send30DayNotice": {
            "type": "boolean",
            "nullable": true
          },
          "refundAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceBenefitType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "accountManagerPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companySubscriptionHubspots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
            }
          },
          "companySubscriptionPaymentTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionPaymentTerm"
            }
          },
          "companySubscriptionSuccessFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionSuccessFeeTier"
            }
          },
          "esignDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EsignDocument"
            }
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "isCancelled": {
            "type": "boolean",
            "readOnly": true
          },
          "isFirstYear": {
            "type": "boolean",
            "readOnly": true
          },
          "billingFeeAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "refinanceSuccessFeeDiscountPercent": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "contractGuaranteedAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "subscriptionFeePaymentScheduleEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "additionalDealFeePaymentScheduleEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "billingFrequencyEnum": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeTypeEnum": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "refinanceBenefitTypeEnum": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string",
            "readOnly": true
          },
          "shouldCancel": {
            "type": "boolean",
            "readOnly": true
          },
          "yearStartDate": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "yearEndDate": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "dealsThisYear": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "isNextAdditionalDeal": {
            "type": "boolean",
            "readOnly": true
          },
          "dealStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string",
            "readOnly": true
          },
          "activeHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          },
          "calculatedSubscriptionEndDate": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          },
          "paymentTermsComplete": {
            "type": "boolean",
            "readOnly": true
          },
          "stateCode": {
            "type": "string",
            "readOnly": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "companyNameDisplay": {
            "type": "string",
            "readOnly": true
          },
          "accountManager": {
            "type": "string",
            "readOnly": true
          },
          "accountManagerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "readOnly": true
          },
          "hasMinimumSuccessFee": {
            "type": "boolean",
            "readOnly": true
          },
          "includeSbaExclusion": {
            "type": "boolean",
            "readOnly": true
          },
          "successFeePaymentScheduleEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string",
            "readOnly": true
          },
          "allowUploadContract": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot": {
        "type": "object",
        "properties": {
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          },
          "startedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "term": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "guaranteeTerms": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
          },
          "companySubscriptionHubspotBillingPeriods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotBillingPeriod"
            }
          },
          "companySubscriptionHubspotDeals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotDeal"
            }
          },
          "companySubscriptionHubspotLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotLineItem"
            }
          },
          "companySubscriptionStatusStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionStatusStat"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "dealStatusEnum": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "dealLaunchedCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "createdOnFormatted": {
            "type": "string",
            "readOnly": true
          },
          "contractGuaranteedAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotBillingPeriod": {
        "type": "object",
        "properties": {
          "companySubscriptionHubspotBillingPeriodId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotBillingPeriodGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "billingFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subscriptionFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "successFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceSuccessFeeDiscount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companySubscriptionHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          },
          "companySubscriptionHubspotBillingPeriodSuccessFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotBillingPeriodSuccessFeeTier"
            }
          },
          "isEditable": {
            "type": "boolean",
            "readOnly": true
          },
          "isCurrent": {
            "type": "boolean",
            "readOnly": true
          },
          "isPast": {
            "type": "boolean",
            "readOnly": true
          },
          "periodStatus": {
            "type": "string",
            "readOnly": true
          },
          "subscriptionFeePaymentScheduleEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "billingFrequencyEnum": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "successFeeTypeEnum": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "refinanceBenefitTypeEnum": {
            "enum": [
              "IncrementAmountOnly",
              "PercentDiscount"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "paymentTermsComplete": {
            "type": "boolean",
            "readOnly": true
          },
          "hubspotGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotBillingPeriodSuccessFeeTier": {
        "type": "object",
        "properties": {
          "companySubscriptionHubspotBillingPeriodSuccessFeeTierId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotBillingPeriodSuccessFeeTierGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionHubspotBillingPeriodId": {
            "type": "integer",
            "format": "int64"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companySubscriptionHubspotBillingPeriod": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotBillingPeriod"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotDeal": {
        "type": "object",
        "properties": {
          "companySubscriptionHubspotDealId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotDealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "launchedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "isAdditionalDeal": {
            "type": "boolean"
          },
          "companySubscriptionHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dealStatusEnum": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "readOnly": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "canShowDataRoomLink": {
            "type": "boolean",
            "readOnly": true
          },
          "isContactSignedOrLater": {
            "type": "boolean",
            "readOnly": true
          },
          "hubSpotId": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotLineItem": {
        "type": "object",
        "properties": {
          "companySubscriptionHubspotLineItemId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotLineItemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64"
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotProductId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "productName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "billingStartDate": {
            "type": "string",
            "format": "date"
          },
          "billingFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "lineItemType": {
            "type": "integer",
            "format": "int32"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "companySubscriptionHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          },
          "billingFrequencyEnum": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "lineItemTypeEnum": {
            "enum": [
              "SubscriptionFee",
              "FirstYearSubscriptionFee",
              "AdditionalDealFee",
              "Other"
            ],
            "type": "string"
          },
          "hubSpotFrequency": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionPaymentTerm": {
        "type": "object",
        "properties": {
          "companySubscriptionPaymentTermId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionPaymentTermGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "numberOfDays": {
            "type": "integer",
            "format": "int32"
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionStatusStat": {
        "type": "object",
        "properties": {
          "companySubscriptionStatusStatId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64"
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companySubscriptionHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionSuccessFeeTier": {
        "type": "object",
        "properties": {
          "companySubscriptionSuccessFeeTierId": {
            "type": "integer",
            "format": "int64"
          },
          "companySubscriptionSuccessFeeTierGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CompanySubscriptionSummaryReport": {
        "type": "object",
        "properties": {
          "rowNum": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentQuarterCount": {
            "type": "integer",
            "format": "int32"
          },
          "yearToDateCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastYearCount": {
            "type": "integer",
            "format": "int32"
          },
          "renewingNext30Days": {
            "type": "integer",
            "format": "int32"
          },
          "renewingNext60Days": {
            "type": "integer",
            "format": "int32"
          },
          "renewingNext90Days": {
            "type": "integer",
            "format": "int32"
          },
          "activeSubscriptionCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ComplianceCertificateTemplate": {
        "type": "object",
        "properties": {
          "complianceCertificateTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "complianceCertificateTemplateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complianceReportFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultComplianceReportId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "defaultComplianceReportGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "complianceReportTemplateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultComplianceReportText": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "covenantPassLabel": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantNotPassLabel": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean"
          },
          "covenantComplianceReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport"
            }
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "complianceReportFrequencyEnum": {
            "enum": [
              "Quarterly",
              "SemiAnnually",
              "Annually",
              "Monthly",
              "EventDriven"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "complianceReportTemplateTypeEnum": {
            "enum": [
              "Text",
              "Pdf"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantPassLabelValue": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantNotPassLabelValue": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ComplianceReportAttachment": {
        "type": "object",
        "properties": {
          "complianceReportAttachmentId": {
            "type": "integer",
            "format": "int64"
          },
          "covenantComplianceReportId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "filename": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "attachmentTitle": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reportPageHeader": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reportTag": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "attachmentOrder": {
            "type": "integer",
            "format": "int32"
          },
          "attachmentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "skipFile": {
            "type": "boolean",
            "nullable": true
          },
          "isCovenantDetails": {
            "type": "boolean"
          },
          "covenantComplianceReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis": {
        "type": "object",
        "properties": {
          "complimentaryAnalysisId": {
            "type": "integer",
            "format": "int64"
          },
          "complimentaryAnalysisGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "taxStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ownershipStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "usBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "analysisNotes": {
            "type": "string",
            "nullable": true
          },
          "transactionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cashProceedsToSeller": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerNoteAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "newCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingOwnershipPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityRollType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "equityRollAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sentEmail": {
            "type": "boolean",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "analysisStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionNotes": {
            "type": "string",
            "nullable": true
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "showAdjustedRows": {
            "type": "boolean",
            "nullable": true
          },
          "showAcquisitionAdjustedRows": {
            "type": "boolean",
            "nullable": true
          },
          "declineReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "leadSource": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "otherLeadSource": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "totalTransactionValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentBusinessPurchased": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "natureOfBuyer": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "companyFinancialStatementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionRunwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionInstitutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "individual20PercentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "personalGuarantyDebt": {
            "type": "boolean",
            "nullable": true
          },
          "hasFullTimeCfo": {
            "type": "boolean",
            "nullable": true
          },
          "hasFractionalCfo": {
            "type": "boolean",
            "nullable": true
          },
          "hasTreasurer": {
            "type": "boolean",
            "nullable": true
          },
          "hasController": {
            "type": "boolean",
            "nullable": true
          },
          "hasDirectorFinance": {
            "type": "boolean",
            "nullable": true
          },
          "qualifiedReferralPartner": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "referralPartnerNotes": {
            "type": "string",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "accountingFirmName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "naicsCodeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "tangibleRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tangibleEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "seekingPppLoan": {
            "type": "boolean",
            "nullable": true
          },
          "seekingOtherLoan": {
            "type": "boolean",
            "nullable": true
          },
          "businessType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inOperationPriorTo20200215": {
            "type": "boolean",
            "nullable": true
          },
          "inOperation2019": {
            "type": "boolean",
            "nullable": true
          },
          "seasonalEmployer": {
            "type": "boolean",
            "nullable": true
          },
          "numLocationsLess500Employees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mostRecentAccountingPeriod": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "averageMonthlyPayroll": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "payrollDetail2020": {
            "type": "boolean",
            "nullable": true
          },
          "payrollDetail2019": {
            "type": "boolean",
            "nullable": true
          },
          "mortgageStatement": {
            "type": "boolean",
            "nullable": true
          },
          "rentalAgreement": {
            "type": "boolean",
            "nullable": true
          },
          "corporateDocuments": {
            "type": "boolean",
            "nullable": true
          },
          "goodStandingCertificate": {
            "type": "boolean",
            "nullable": true
          },
          "beneficialOwnerInformation": {
            "type": "boolean",
            "nullable": true
          },
          "taxReturns": {
            "type": "boolean",
            "nullable": true
          },
          "mortgageRentalExpense2019": {
            "type": "boolean",
            "nullable": true
          },
          "utilityExpense2019": {
            "type": "boolean",
            "nullable": true
          },
          "highIncomeEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showAnalysisOutputToBorrower": {
            "type": "boolean",
            "nullable": true
          },
          "principalDetails": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationRequest": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationResponse": {
            "type": "string",
            "nullable": true
          },
          "isLegacyView": {
            "type": "boolean",
            "nullable": true
          },
          "isBroker": {
            "type": "boolean",
            "nullable": true
          },
          "realEstateCashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "accountingSystemType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastAcceptedSupplementalTermsDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderReferralId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hubSpotCompanyId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotContactId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotDealId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "b2bpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isQuestionsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "ndaEffectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ndaExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ndaVerifiedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdByCerebro": {
            "type": "boolean",
            "nullable": true
          },
          "submittedBy": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "submittedByCerebro": {
            "type": "boolean",
            "nullable": true
          },
          "isDebtSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionAddress1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionCity": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionStateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionPostalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionNaicsCodeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionB2bpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gpercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionIndividual20PercentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionNonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionCurrency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialStatementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerFinancialMode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionFinancialMode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "marketplaceDealWelcomeEmailSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "debtCapacityOverride": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtCapacityOverrideSummary": {
            "type": "string",
            "nullable": true
          },
          "utmCampaign": {
            "type": "string",
            "nullable": true
          },
          "utmId": {
            "type": "string",
            "nullable": true
          },
          "utmSource": {
            "type": "string",
            "nullable": true
          },
          "utmMedium": {
            "type": "string",
            "nullable": true
          },
          "utmTerm": {
            "type": "string",
            "nullable": true
          },
          "utmMatchType": {
            "type": "string",
            "nullable": true
          },
          "utmNetwork": {
            "type": "string",
            "nullable": true
          },
          "utmCreative": {
            "type": "string",
            "nullable": true
          },
          "utmContent": {
            "type": "string",
            "nullable": true
          },
          "referringDealPartnerContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "customerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCustomerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "businessSalesType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionBusinessSalesType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionPurchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "acquisitionNaicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NaicsCode"
          },
          "acquisitionState": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "debtCapacityCalculators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DebtCapacityCalculator"
            }
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "lenderReferral": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderReferral"
          },
          "naicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NaicsCode"
          },
          "ndaVerifiedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "queueRecalculateStructureJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.QueueRecalculateStructureJob"
            }
          },
          "referringDealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ConditionType": {
        "type": "object",
        "properties": {
          "conditionTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "conditionTypeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "conditionTypeName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "termSheetConditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetCondition"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ControlledObject": {
        "type": "object",
        "properties": {
          "controlledObjectId": {
            "type": "integer",
            "format": "int64"
          },
          "controlledObjectGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "controlledObjectType": {
            "type": "integer",
            "format": "int32"
          },
          "employeeReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeReport"
            }
          },
          "userControlledObjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.UserControlledObject"
            }
          },
          "type": {
            "enum": [
              "ManageUserAccount",
              "SingleSignOnTemplates",
              "ResetCovenants",
              "MilestoneDefaults",
              "ResetCompanyFinancials",
              "LoanPurposeFacilities",
              "EditInvoices",
              "NaicsCodes",
              "LoanApplicationForm",
              "TaskChecklistInformation",
              "ApplicationSettings",
              "ManageIndustries",
              "AccessDealPartners",
              "AccessLoanAssessments",
              "AccessDataRooms",
              "ManageLenderProfiles",
              "AccessBorrowerProfiles",
              "AccessSubscriptions",
              "MatchingConfiguration",
              "UpdateHubSpotId",
              "ApplicationErrors",
              "ManageExecutiveSummary",
              "TermSheetFee",
              "ManageViewJobs",
              "FinancialCovenantType",
              "BankAccountManagement",
              "DataSubscriptions",
              "EmployeeReports",
              "ManageProducts",
              "ChatRules",
              "EditClosedFundedDeals",
              "SendPreMarketDealEmails",
              "ManageAISourceDocuments",
              "ManageProspectPrompt",
              "ManageDealAgent"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Country": {
        "type": "object",
        "properties": {
          "countryId": {
            "type": "integer",
            "format": "int64"
          },
          "countryName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "bankOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankOffice"
            }
          },
          "companyOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyOffice"
            }
          },
          "employeeContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeContact"
            }
          },
          "invoiceContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceContact"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport": {
        "type": "object",
        "properties": {
          "covenantComplianceReportId": {
            "type": "integer",
            "format": "int64"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "quarter": {
            "type": "integer",
            "format": "int32"
          },
          "attachFinancials": {
            "type": "boolean",
            "nullable": true
          },
          "includeLogo": {
            "type": "boolean"
          },
          "customReportText": {
            "type": "string",
            "nullable": true
          },
          "reportFilename": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean",
            "nullable": true
          },
          "approvedByName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "approvedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "approvedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "useLoanDefaultText": {
            "type": "boolean",
            "nullable": true
          },
          "isUploadedReport": {
            "type": "boolean",
            "nullable": true
          },
          "complianceReportGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isReadyForApproval": {
            "type": "boolean",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complianceCertificateTemplateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "reportGenerationProgress": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastGeneratedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "complianceCertificateTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplianceCertificateTemplate"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "reportPeriodString": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "reportDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "complianceReportAttachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplianceReportAttachment"
            },
            "nullable": true
          },
          "customComplianceReportFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CustomComplianceReportField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CovenantContact": {
        "type": "object",
        "properties": {
          "covenantContactId": {
            "type": "integer",
            "format": "int64"
          },
          "covenantContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "nonfinancialCovenantId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "financialCovenantId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "financialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
          },
          "nonfinancialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
          },
          "nonFinancialCovenantResultResponses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantResultResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CovenantTarget": {
        "type": "object",
        "properties": {
          "covenantTargetId": {
            "type": "integer",
            "format": "int64"
          },
          "financialCovenantId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "targetValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetType": {
            "type": "integer",
            "format": "int32"
          },
          "calculatedValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "targetMet": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "incompleteData": {
            "type": "boolean",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean",
            "nullable": true
          },
          "hasPeriodSpecificFormula": {
            "type": "boolean",
            "nullable": true
          },
          "operators": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantTargetGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "pendingCalculation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "periodEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "financialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
          },
          "targetTypeName": {
            "type": "string",
            "readOnly": true
          },
          "maxPrecision": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "precision": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "isCurrencyValue": {
            "type": "boolean",
            "readOnly": true
          },
          "calculatedValueString": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "targetValueString": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "targetTypeEnum": {
            "enum": [
              "GreaterThanOrEqual",
              "LessThanOrEqual",
              "GreaterThan",
              "LessThan",
              "Equals"
            ],
            "type": "string",
            "readOnly": true
          },
          "targetTypeString": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "formulaDetail": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantValueItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantValueItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CovenantValueItem": {
        "type": "object",
        "properties": {
          "covenantValueItemId": {
            "type": "integer",
            "format": "int64"
          },
          "financialCovenantId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantTargetId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "limitCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasDynamicLimit": {
            "type": "boolean",
            "nullable": true
          },
          "valueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTrailingTwelveMonths": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingThreeMonths": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingThreeMonthAverage": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingSixMonths": {
            "type": "boolean",
            "nullable": true
          },
          "factor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "limit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "numTrailingMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTrailingAverage": {
            "type": "boolean",
            "nullable": true
          },
          "limitFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
          },
          "valueTypeEnum": {
            "enum": [
              "NoValue",
              "LineItemType",
              "CustomValue",
              "Constant"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "companyCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "limitCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "lineItemType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          },
          "covenantTarget": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantTarget"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditCardTransaction": {
        "type": "object",
        "properties": {
          "creditCardTransactionId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "customerId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "ccMaskedNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "ccExpirationMonth": {
            "maxLength": 2,
            "minLength": 0,
            "type": "string"
          },
          "ccExpirationYear": {
            "maxLength": 4,
            "minLength": 0,
            "type": "string"
          },
          "bankRoutingNumber": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "statusMessage": {
            "type": "string"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64"
          },
          "approvalCode": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "approvalMessage": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "invoice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditFacility": {
        "type": "object",
        "properties": {
          "creditFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "facilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanAmount": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "collateral": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purpose": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "outstandingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "term": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "originationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amendmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditFacilityGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "interestOnly": {
            "type": "boolean",
            "nullable": true
          },
          "loanAgreementDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sublimitLc": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sublimitCreditCards": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestOnlyThroughOutLife": {
            "type": "boolean",
            "nullable": true
          },
          "interestOnlyPeriodEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isSecured": {
            "type": "boolean",
            "nullable": true
          },
          "borrowingBaseLien": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "baseRate": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "closingFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "closingFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commitmentFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commitmentFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "unusedFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unusedFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facilityHedgeRequired": {
            "type": "boolean",
            "nullable": true
          },
          "facilityRequirementDetails": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "requiredPrimaryDepositoryRelationship": {
            "type": "boolean",
            "nullable": true
          },
          "equityCompensation": {
            "type": "boolean",
            "nullable": true
          },
          "preferredShares": {
            "type": "boolean",
            "nullable": true
          },
          "numPreferredShares": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "optionsIssued": {
            "type": "boolean",
            "nullable": true
          },
          "optionsIssueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "optionsExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numOptions": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "optionStrikePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "warrantsIssued": {
            "type": "boolean",
            "nullable": true
          },
          "warrantsIssueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "warrantsExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "numWarrants": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "warrantsStrikePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPenalties": {
            "type": "boolean",
            "nullable": true
          },
          "prepaymentPeriod1": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod1Details": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod2": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod2Details": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod3": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod3Details": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod4": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod4Details": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentPeriod5": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentPeriod5Details": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentThereafter": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "prepaymentThereafterDetails": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityPurpose": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isFinancialStatementOutstandingAmount": {
            "type": "boolean",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineItemTypeId2": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyCustomValueId2": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "securityDepositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sublimitSwingline": {
            "type": "boolean",
            "nullable": true
          },
          "otherFeeDescription": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "otherFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "useInterestRateDynamicPricing": {
            "type": "boolean",
            "nullable": true
          },
          "usePikRateDynamicPricing": {
            "type": "boolean",
            "nullable": true
          },
          "useCommitmentFeeDynamicPricing": {
            "type": "boolean",
            "nullable": true
          },
          "useUnsedFeeDynamicPricing": {
            "type": "boolean",
            "nullable": true
          },
          "hasMainReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "hasLoanCostReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "hasCollateralReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "hasEquityCompReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "hasPrepaymentPenaltiesReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "marketToMarketType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "marketToMarketDetail": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lenderTransferRestriction": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isHedgeRequired": {
            "type": "boolean",
            "nullable": true
          },
          "initialMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditFacilityClassification": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isRecourse": {
            "type": "boolean",
            "nullable": true
          },
          "recourseDescription": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "advanceRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "liborReplacementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "generalCollateralDetails": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "facilityAmortizationStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortizationDetails": {
            "type": "string",
            "nullable": true
          },
          "hedgeLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hedgeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hedgeExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hedgeRequirementDetail": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "paydownDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "outstandingAmountAsOf": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "additionalDrawExpiryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paymentDate": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentFrequencyOther": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isLimitedRecourseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectPaymentGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "directPaymentGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEquityFundingCommitment": {
            "type": "boolean",
            "nullable": true
          },
          "isEquityFundingCommitmentCap": {
            "type": "boolean",
            "nullable": true
          },
          "equityFundingCommitmentCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCarryGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCarryGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "carryGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCompletionGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isFranchiseGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isFranchiseGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "franchiseGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isOtherGuarantee": {
            "type": "boolean",
            "nullable": true
          },
          "isCompletionGuaranteeCap": {
            "type": "boolean",
            "nullable": true
          },
          "completionGuaranteeCapAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amendments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Amendment"
            }
          },
          "companyCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "companyCustomValueId2Navigation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "companyDocumentFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
            }
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocument"
            }
          },
          "creditFacilityAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacilityAudit"
            }
          },
          "creditFacilityExtensionOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacilityExtensionOption"
            }
          },
          "creditFacilityHedges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacilityHedge"
            }
          },
          "lineItemType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          },
          "lineItemTypeId2Navigation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "liborReplacementTypeName": {
            "type": "string",
            "readOnly": true
          },
          "closingFeeTypeName": {
            "type": "string",
            "readOnly": true
          },
          "commitmentFeeTypeName": {
            "type": "string",
            "readOnly": true
          },
          "unusedFeeTypeName": {
            "type": "string",
            "readOnly": true
          },
          "otherFeeTypeName": {
            "type": "string",
            "readOnly": true
          },
          "facilityAmortizationStructureName": {
            "type": "string",
            "readOnly": true
          },
          "lenderTransferRestrictionName": {
            "type": "string",
            "readOnly": true
          },
          "facilityTypeName": {
            "type": "string",
            "readOnly": true
          },
          "paymentFrequencyEnum": {
            "enum": [
              "Unknown",
              "Weekly",
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually",
              "Other"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditFacilityAudit": {
        "type": "object",
        "properties": {
          "creditFacilityAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "creditFacilityAuditGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "previousValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isApiRequest": {
            "type": "boolean",
            "nullable": true
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditFacilityExtensionOption": {
        "type": "object",
        "properties": {
          "creditFacilityExtensionOptionId": {
            "type": "integer",
            "format": "int64"
          },
          "creditFacilityExtensionOptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "criteriaForExercising": {
            "type": "string",
            "nullable": true
          },
          "daysToExtendBy": {
            "type": "integer",
            "format": "int32"
          },
          "exercisedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "exercisedByPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "exercisedByPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditFacilityHedge": {
        "type": "object",
        "properties": {
          "creditFacilityHedgeId": {
            "type": "integer",
            "format": "int64"
          },
          "creditFacilityHedgeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "creditFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "isHedgeRequired": {
            "type": "boolean"
          },
          "isHedgeInPlace": {
            "type": "boolean"
          },
          "hedgeLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hedgeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requirementDetail": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "notional": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "chathamExecuted": {
            "type": "boolean",
            "nullable": true
          },
          "ticker": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "upperCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lowerCollarLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creditFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
          },
          "hedgeTypeEnum": {
            "enum": [
              "Cap",
              "Swaption",
              "Swap",
              "CollarOption",
              "Floor"
            ],
            "type": "string",
            "nullable": true
          },
          "hedgeTypeName": {
            "type": "string",
            "readOnly": true
          },
          "percentHedged": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditOutputAnalysis": {
        "type": "object",
        "properties": {
          "creditOutputAnalysisId": {
            "type": "integer",
            "format": "int64"
          },
          "creditOutputAnalysisGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "debtCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isProfitLossSectionVisible": {
            "type": "boolean"
          },
          "isCashFlowSectionVisible": {
            "type": "boolean"
          },
          "isBalanceSheetSectionVisible": {
            "type": "boolean"
          },
          "isBusinessSectionVisible": {
            "type": "boolean"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CreditOutputLineItem": {
        "type": "object",
        "properties": {
          "creditOutputLineItemId": {
            "type": "integer",
            "format": "int64"
          },
          "creditOutputLineItemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "groupType": {
            "type": "integer",
            "format": "int32"
          },
          "outputType": {
            "type": "integer",
            "format": "int32"
          },
          "outputStatus": {
            "type": "integer",
            "format": "int32"
          },
          "summaryStatus": {
            "type": "integer",
            "format": "int32"
          },
          "displayIndex": {
            "type": "integer",
            "format": "int32"
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "isVisibleToBorrower": {
            "type": "boolean"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "groupTypeEnum": {
            "enum": [
              "None",
              "Summary",
              "ProfitLoss",
              "CashFlows",
              "BalanceSheet",
              "Business",
              "LoanRequest"
            ],
            "type": "string"
          },
          "outputTypeEnum": {
            "enum": [
              "TtmRevenue",
              "HistoricalRevenueTrend",
              "ProjectedRevenueTrend",
              "CurrentNetIncomeMargin",
              "HistoricalNetIncomeMarginTrends",
              "ProjectedNetIncomeMarginTrends",
              "EbitdaAddbackPercentage",
              "CurrentEbitdaMargin",
              "CurrentEbitdaMarginTrends",
              "CurrentEbitda",
              "CurrentCashFlowLeverage",
              "HistoricalEbitdaTrend",
              "ProjectedEbitdaTrend",
              "CurrentLiquidityProfile",
              "CurrentVariableCollateralProfile",
              "CurrentFixedCollateralProfile",
              "Headcount",
              "HeadcountMix",
              "CashRunway",
              "FinancialStatements",
              "Industry",
              "ProformaTotalDebtToAdjustmentEbitda",
              "ProformaTotalDebtToRevenue",
              "CashInfusion",
              "ProformaLiquidityProfile",
              "ProformaVariableCollateralProfile",
              "ProformaFixedCollateralProfile",
              "Predictability",
              "FinanceConfidence",
              "LendersInterested",
              "RefinancingExistingDebt",
              "IncrementalNewDebt"
            ],
            "type": "string"
          },
          "outputStatusEnum": {
            "enum": [
              "Weak",
              "Neutral",
              "Strong",
              "VeryStrong",
              "MissingData"
            ],
            "type": "string"
          },
          "summaryStatusEnum": {
            "enum": [
              "None",
              "VeryLow",
              "Low",
              "Moderate",
              "High",
              "VeryHigh"
            ],
            "type": "string"
          },
          "commentsNotNull": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.CustomComplianceReportField": {
        "type": "object",
        "properties": {
          "customComplianceReportFieldId": {
            "type": "integer",
            "format": "int64"
          },
          "customComplianceReportFieldGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "covenantComplianceReportId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fieldName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fieldDescription": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fieldValue": {
            "type": "string",
            "nullable": true
          },
          "prompt": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "context": {
            "type": "string",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complianceCertificateTemplateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantComplianceReport": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoom": {
        "type": "object",
        "properties": {
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "roomOwnerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roomStatus": {
            "type": "integer",
            "format": "int32"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "accessed": {
            "type": "boolean"
          },
          "customAgreementText": {
            "type": "string",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "roomSummaryText": {
            "type": "string",
            "nullable": true
          },
          "useOutsideDataRoom": {
            "type": "boolean",
            "nullable": true
          },
          "outsideDataRoomUrl": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "roomSummaryTextUpdated": {
            "type": "boolean",
            "nullable": true
          },
          "useDataRoomReminders": {
            "type": "boolean",
            "nullable": true
          },
          "teaserListConfirmed": {
            "type": "boolean",
            "nullable": true
          },
          "showFeedbackSummary": {
            "type": "boolean",
            "nullable": true
          },
          "isEditingFeedbackSummary": {
            "type": "boolean",
            "nullable": true
          },
          "showActiveSummaryReport": {
            "type": "boolean",
            "nullable": true
          },
          "acceptedDataRoomNdaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.AcceptedDataRoomNdaTemplate"
            }
          },
          "bankContactTeamMemberDataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMemberDataRoom"
            }
          },
          "companyContactDataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContactDataRoom"
            }
          },
          "dataRoomAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomAccessRecord"
            }
          },
          "dataRoomCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomCall"
            }
          },
          "dataRoomDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDetailSummary"
            }
          },
          "dataRoomDiligenceRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
            }
          },
          "dataRoomDocumentFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
            }
          },
          "dataRoomDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
            }
          },
          "dataRoomDownloadRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequest"
            }
          },
          "dataRoomEmails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomEmail"
            }
          },
          "dataRoomNotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomNote"
            }
          },
          "dataRoomTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
            }
          },
          "dataRoomTeaserFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaserFile"
            }
          },
          "dataRoomTeasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomTermSheets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheet"
            }
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
            }
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "employeeDataRoomPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeDataRoomPermission"
            }
          },
          "lenderFeedbackSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderFeedbackSummary"
            }
          },
          "roomOwnerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "stagedDataRoomTaskUploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUpload"
            }
          },
          "roomStatusEnum": {
            "enum": [
              "Closed",
              "Open"
            ],
            "type": "string"
          },
          "rootDataRoomFolderGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "restrictedAccess": {
            "type": "boolean",
            "readOnly": true
          },
          "includeLoanApplication": {
            "type": "boolean",
            "readOnly": true
          },
          "isDataRoomAccessible": {
            "type": "boolean",
            "readOnly": true
          },
          "isRawLead": {
            "type": "boolean",
            "readOnly": true
          },
          "isRawLeadVisible": {
            "type": "boolean",
            "readOnly": true
          },
          "isDirectIntroDeal": {
            "type": "boolean",
            "readOnly": true
          },
          "isRoomSummaryTextUpdated": {
            "type": "boolean",
            "readOnly": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "readOnly": true
          },
          "bucketName": {
            "type": "string",
            "readOnly": true
          },
          "companyName": {
            "type": "string",
            "readOnly": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dealName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomAccessRecord": {
        "type": "object",
        "properties": {
          "dataRoomAccessRecordId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "accessType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "accessDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomCall": {
        "type": "object",
        "properties": {
          "dataRoomCallId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomCallGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "callDetails": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "callDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "callTimeZone": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "callStatus": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "callStatusEnum": {
            "enum": [
              "Proposed",
              "Scheduled",
              "Completed",
              "Cancelled"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDetailSummary": {
        "type": "object",
        "properties": {
          "dataRoomDetailSummaryId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double"
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "teasersSent": {
            "type": "integer",
            "format": "int32"
          },
          "teasersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "teasersPending": {
            "type": "integer",
            "format": "int32"
          },
          "teasersDeleted": {
            "type": "integer",
            "format": "int32"
          },
          "totalTermSheets": {
            "type": "integer",
            "format": "int32"
          },
          "totalDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "lastDocumentUploaded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lendersInvited": {
            "type": "integer",
            "format": "int32"
          },
          "lendersAccepted": {
            "type": "integer",
            "format": "int32"
          },
          "lendersDeclined": {
            "type": "integer",
            "format": "int32"
          },
          "lendersPending": {
            "type": "integer",
            "format": "int32"
          },
          "lendersActive": {
            "type": "integer",
            "format": "int32"
          },
          "dataRoomStatus": {
            "type": "integer",
            "format": "int32"
          },
          "totalDiligenceRequests": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsOpen": {
            "type": "integer",
            "format": "int32"
          },
          "diligenceRequestsClosed": {
            "type": "integer",
            "format": "int32"
          },
          "totalLoanApplicationTasks": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksOpen": {
            "type": "integer",
            "format": "int32"
          },
          "loanApplicationTasksClosed": {
            "type": "integer",
            "format": "int32"
          },
          "launchedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lendersAccessed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionTeasersSent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionTeasersAccepted": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionTeasersDeclined": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionTeasersPending": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionTeasersDeleted": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersInvited": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersAccepted": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersDeclined": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersPending": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersActive": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionLendersAccessed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isAsapTargetDate": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest": {
        "type": "object",
        "properties": {
          "dataRoomDiligenceRequestId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDiligenceRequestGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "title": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isVisibleToAll": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "updatedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diligenceType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isWithdrawn": {
            "type": "boolean",
            "nullable": true
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDiligenceRequestDocumentLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestDocumentLink"
            }
          },
          "dataRoomDiligenceRequestFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestFile"
            }
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          },
          "updatedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "diligenceTypeEnum": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string",
            "nullable": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "lenderName": {
            "type": "string",
            "readOnly": true
          },
          "isInvalidDocumentRequest": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestDocumentLink": {
        "type": "object",
        "properties": {
          "dataRoomDiligenceRequestDocumentLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDiligenceRequestDocumentLinkGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomDiligenceRequestId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDiligenceRequest": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestFile": {
        "type": "object",
        "properties": {
          "dataRoomDiligenceRequestFileId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDiligenceRequestFileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomDiligenceRequestId": {
            "type": "integer",
            "format": "int64"
          },
          "documentTitle": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoomDiligenceRequest": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocument": {
        "type": "object",
        "properties": {
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "documentType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "documentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dataRoomDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "visibleToAll": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomAccessRecord"
            }
          },
          "dataRoomDiligenceRequestDocumentLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestDocumentLink"
            }
          },
          "dataRoomDiligenceRequestFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestFile"
            }
          },
          "dataRoomDocumentAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentAccessRecord"
            }
          },
          "dataRoomDocumentDownloads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentDownload"
            }
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "dataRoomDownloadRequestDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequestDocument"
            }
          },
          "dataRoomTaskDocumentLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTaskDocumentLink"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "loanApplicationTaskDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskDocument"
            }
          },
          "documentTypeEnum": {
            "enum": [
              "Financial_Statement",
              "PersonalFinancial",
              "FinancialProjections",
              "Budget",
              "CapTable",
              "AccountAnalysisStatement",
              "BankStatement",
              "CompanyValuation",
              "EquipmentAppraisal",
              "RealEstateAppraisal",
              "AR_Agings",
              "AP_Agings",
              "Loan_Document",
              "DebtSchedule",
              "CorpTax",
              "PrincipalTax",
              "Collateral",
              "Valuation",
              "Diligence",
              "CompanyOverviewMaterials",
              "BoardReports",
              "OrganizationalChart",
              "IpDocs",
              "ManagementBios",
              "EmployeeDocument",
              "OrganizationalDocument",
              "SbaForm",
              "SbaSupportingDocument",
              "Nda",
              "FinancialUpload",
              "ExecutiveSummary",
              "BorrowingBase",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "isVisibleToAll": {
            "type": "boolean",
            "readOnly": true
          },
          "dataRoomDocumentFolderGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocumentAccessRecord": {
        "type": "object",
        "properties": {
          "dataRoomDocumentAccessRecordId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentAccessRecordGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocumentDownload": {
        "type": "object",
        "properties": {
          "dataRoomDocumentDownloadId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "downloadType": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userOrganization": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder": {
        "type": "object",
        "properties": {
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentFolderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "parentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "folderName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "visibleToAll": {
            "type": "boolean",
            "nullable": true
          },
          "templateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDiligenceRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
            }
          },
          "dataRoomDocumentFolderAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderAccessRecord"
            }
          },
          "dataRoomDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
            }
          },
          "dataRoomDownloadRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequest"
            }
          },
          "dataRoomTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
            }
          },
          "inverseParentFolder": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
            }
          },
          "loanApplicationTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTask"
            }
          },
          "parentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "stagedDataRoomTaskUploadItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUploadItem"
            }
          },
          "template": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderTemplate"
          },
          "childFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
            }
          },
          "isVisibleToAll": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderAccessRecord": {
        "type": "object",
        "properties": {
          "dataRoomDocumentFolderAccessRecordId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentFolderAccessRecordGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderTemplate": {
        "type": "object",
        "properties": {
          "dataRoomDocumentFolderTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentFolderTemplateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "folderName": {
            "type": "string"
          },
          "folderType": {
            "type": "integer",
            "format": "int32"
          },
          "visibleToAll": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoomDocumentFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
            }
          },
          "loanApplicationTaskTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskTemplate"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequest": {
        "type": "object",
        "properties": {
          "dataRoomDownloadRequestId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDownloadRequestGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "requestDescription": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "fileName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isReady": {
            "type": "boolean"
          },
          "readyOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean"
          },
          "lastDownloadedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "dataRoomDownloadRequestDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequestDocument"
            }
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequestDocument": {
        "type": "object",
        "properties": {
          "dataRoomDownloadRequestDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDownloadRequestDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomDownloadRequestId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "dataRoomDownloadRequest": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequest"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomEmail": {
        "type": "object",
        "properties": {
          "dataRoomEmailId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomEmailGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subject": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomEmailRecipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomEmailRecipient"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomEmailRecipient": {
        "type": "object",
        "properties": {
          "dataRoomEmailRecipientId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomEmailRecipientGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomEmailId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "recipientUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastResentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resentCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dataRoomEmail": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomEmail"
          },
          "recipientUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomNote": {
        "type": "object",
        "properties": {
          "dataRoomNoteId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomNoteGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "isBorrowerNote": {
            "type": "boolean",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "lenderUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "dealName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          },
          "createdByName": {
            "type": "string",
            "readOnly": true
          },
          "lenderUserName": {
            "type": "string",
            "readOnly": true
          },
          "createdOnFormatted": {
            "type": "string",
            "readOnly": true
          },
          "hasBeenModified": {
            "type": "boolean",
            "readOnly": true
          },
          "modifiedOnFormatted": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTask": {
        "type": "object",
        "properties": {
          "dataRoomTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTaskGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "taskStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "assignedUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "categoryName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isVisibleToAll": {
            "type": "boolean",
            "nullable": true
          },
          "assignedUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "dataRoomTaskDocumentLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTaskDocumentLink"
            }
          },
          "dataRoomTaskFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTaskFile"
            }
          },
          "roomTaskStatusEnum": {
            "enum": [
              "Pending",
              "InProgress",
              "Completed",
              "CompleteNotNeeded"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTaskDocumentLink": {
        "type": "object",
        "properties": {
          "dataRoomTaskDocumentLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTaskDocumentLinkGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "dataRoomTask": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTaskFile": {
        "type": "object",
        "properties": {
          "dataRoomTaskFileId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTaskFileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomTask": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTeaser": {
        "type": "object",
        "properties": {
          "dataRoomTeaserId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTeaserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "decisionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderDeclineReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherDeclineReason": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reEngagePoint": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reasonDetail": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "trancheType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32"
          },
          "tier1": {
            "type": "integer",
            "format": "int32"
          },
          "isAutomaticTeaser": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "deletedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deletedByUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "includeReferralLanguage": {
            "type": "boolean",
            "nullable": true
          },
          "ignoreAtLaunch": {
            "type": "boolean",
            "nullable": true
          },
          "sendIntroEmail": {
            "type": "boolean"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomTeaserDeclineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaserDeclineReason"
            }
          },
          "deletedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "lenderDeclineReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDeclineReason"
          },
          "sentByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dealDecisionStatusEnum": {
            "enum": [
              "Pending",
              "Accepted",
              "Declined",
              "Launched"
            ],
            "type": "string"
          },
          "structureTrancheEnum": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "tier1BankTypeEnum": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "restrictedAccess": {
            "type": "boolean",
            "readOnly": true
          },
          "ignoreAtLaunchNotNull": {
            "type": "boolean",
            "readOnly": true
          },
          "includeReferralLanguageNotNull": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTeaserDeclineReason": {
        "type": "object",
        "properties": {
          "dataRoomTeaserDeclineReasonId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTeaserDeclineReasonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTeaserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lenderDeclineReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomTeaser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
          },
          "lenderDeclineReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDeclineReason"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTeaserFile": {
        "type": "object",
        "properties": {
          "dataRoomTeaserFileId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTeaserFileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTermSheet": {
        "type": "object",
        "properties": {
          "dataRoomTermSheetId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isIncumbentSolution": {
            "type": "boolean"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isExistingDebtTerms": {
            "type": "boolean"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomTermSheetRevisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
            }
          },
          "currentVersion": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision": {
        "type": "object",
        "properties": {
          "dataRoomTermSheetRevisionId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "termSheetFileType": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isCurrentVersion": {
            "type": "boolean"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "isAccepted": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerNotes": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedByUserId": {
            "type": "integer",
            "format": "int64"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetType": {
            "type": "integer",
            "format": "int32"
          },
          "hasPersonalGuaranty": {
            "type": "boolean",
            "nullable": true
          },
          "personalGuarantyDetails": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "otherTermsNotes": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "visibleToBorrower": {
            "type": "boolean"
          },
          "termSheetGovernanceType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberBoardSeats": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "warrantRequired": {
            "type": "boolean",
            "nullable": true
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "warrantCoverageType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "warrantPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateReceived": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "personalGuaranteeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termsEffectiveDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "covenantsProvided": {
            "type": "boolean",
            "nullable": true
          },
          "reportingProvided": {
            "type": "boolean",
            "nullable": true
          },
          "isWarrantAmountTbd": {
            "type": "boolean",
            "nullable": true
          },
          "isWarrantPriceTbd": {
            "type": "boolean",
            "nullable": true
          },
          "governanceDetails": {
            "type": "string",
            "nullable": true
          },
          "warrantDetails": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "sendExpirationReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTermSheet": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheet"
          },
          "submittedByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "termSheetConditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetCondition"
            }
          },
          "termSheetFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
            }
          },
          "termSheetFinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFinancialCovenant"
            }
          },
          "termSheetFinancialReportings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFinancialReporting"
            }
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "personalGuaranteeTypeEnum": {
            "enum": [
              "Personal",
              "Corporate",
              "Both",
              "ValiditySupport",
              "ValiditySupportAndCorporate"
            ],
            "type": "string",
            "nullable": true
          },
          "termSheetGovernanceTypeEnum": {
            "enum": [
              "None",
              "ObserverRights",
              "BoardSeats"
            ],
            "type": "string",
            "nullable": true
          },
          "warrantCoverageTypeEnum": {
            "enum": [
              "None",
              "Full",
              "Loan"
            ],
            "type": "string",
            "nullable": true
          },
          "responseStatus": {
            "enum": [
              "Replaced",
              "Pending",
              "Accepted",
              "Rejected"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomUser": {
        "type": "object",
        "properties": {
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "allowAccess": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "accessed": {
            "type": "boolean"
          },
          "dataRoomUserGuid": {
            "type": "string",
            "format": "uuid"
          },
          "lastAccessedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastInviteSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lenderDeclineReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherReason": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reEngagePoint": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reasonDetail": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "customNdaFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "trancheType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32"
          },
          "tier1": {
            "type": "integer",
            "format": "int32"
          },
          "readyForCall": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "readyForCallOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "underwriting": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "underwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parentDataRoomUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "directReviewedDocuments": {
            "type": "boolean",
            "nullable": true
          },
          "directReviewedDocumentsOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directTermSheetSubmitted": {
            "type": "boolean",
            "nullable": true
          },
          "directTermSheetSubmittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directInUnderwriting": {
            "type": "boolean",
            "nullable": true
          },
          "directInUnderwritingOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "directFunded": {
            "type": "boolean",
            "nullable": true
          },
          "directFundedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastStatusUpdatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acceptedDataRoomNdaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.AcceptedDataRoomNdaTemplate"
            }
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDiligenceRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
            }
          },
          "dataRoomDocumentAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentAccessRecord"
            }
          },
          "dataRoomDocumentFolderAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderAccessRecord"
            }
          },
          "dataRoomUserDeclineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUserDeclineReason"
            }
          },
          "inverseParentDataRoomUser": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
            }
          },
          "lenderDeclineReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDeclineReason"
          },
          "parentDataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          },
          "stagedDataRoomTaskUploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUpload"
            }
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "structureTrancheEnum": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "readyForCallEnum": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string",
            "nullable": true
          },
          "underwritingEnum": {
            "enum": [
              "NotAnswered",
              "Yes",
              "OptOut",
              "NotYet"
            ],
            "type": "string",
            "nullable": true
          },
          "isAssociatedContact": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataRoomUserDeclineReason": {
        "type": "object",
        "properties": {
          "dataRoomUserDeclineReasonId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomUserDeclineReasonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lenderDeclineReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          },
          "lenderDeclineReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDeclineReason"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DataSubscription": {
        "type": "object",
        "properties": {
          "dataSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "dataSubscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "accountName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "dataDeliveryType": {
            "type": "integer",
            "format": "int32"
          },
          "bucketName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailDistroList": {
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Deal": {
        "type": "object",
        "properties": {
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "targetFundingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "pricePriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "maturityPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "amortizationPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "amountPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "industryExpPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "localBankPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankExperiencePriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lowerEquityPriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "avoidPersonalGuaranteePriority": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetReceiptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByCerebro": {
            "type": "boolean",
            "nullable": true
          },
          "submittedByCerebro": {
            "type": "boolean",
            "nullable": true
          },
          "submittedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyType": {
            "type": "integer",
            "format": "int32"
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "investorOwned": {
            "type": "boolean",
            "nullable": true
          },
          "numberEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyFinancialStatementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mostRecentFiscalYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "haveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "monthlyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "annuallyRecurringRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mostRecentTtmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "debtScheduleJson": {
            "type": "string",
            "nullable": true
          },
          "performaDebtIncludingFacility": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "applyTermSheetFee": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isLoanRequestCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyClarifications": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isCompanyCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "financialClarifications": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isFinancialCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "lenderClarifications": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isLenderCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isQuestionsCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "companyNotes": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lenderNotes": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "requestNotes": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "individual20PercentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "requestedLenderOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDealStructureCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "transactionManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "transactionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "natureOfBuyer": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isLockedStructures": {
            "type": "boolean",
            "nullable": true
          },
          "nonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isLegacyView": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionRunwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionInstitutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "companyFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionHaveRecurringRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "principalDetails": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationRequest": {
            "type": "string",
            "nullable": true
          },
          "additionalInformationResponse": {
            "type": "string",
            "nullable": true
          },
          "isDebtSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "isSettingsSectionCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "secondaryTransactionManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lenderRelationsManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasExcludedLenders": {
            "type": "boolean",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lenderReferralId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "borrowerSubmittedLoanApplicationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "enteredMarketOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialStatementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionCurrency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionAddress1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionCity": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionStateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionPostalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "acquisitionIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionNaicsCodeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionIndividual20PercentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionNonUsBasedEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerPurchaseOrders": {
            "type": "boolean",
            "nullable": true
          },
          "welcomeEmailSentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "applicationCompleteOverride": {
            "type": "boolean"
          },
          "isExecutiveSummaryComplete": {
            "type": "boolean",
            "nullable": true
          },
          "dealClosedDiscardedReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dealClosedDiscardedNotes": {
            "type": "string",
            "nullable": true
          },
          "dealPausedReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dealPausedNotes": {
            "type": "string",
            "nullable": true
          },
          "followUpDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "termSheetFeeCharged": {
            "type": "boolean",
            "nullable": true
          },
          "reasonForUsingCerebro": {
            "type": "string",
            "nullable": true
          },
          "whySelectedTermSheet": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge1": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge2": {
            "type": "string",
            "nullable": true
          },
          "topDealChallenge3": {
            "type": "string",
            "nullable": true
          },
          "marketingOutreachOptOut": {
            "type": "boolean",
            "nullable": true
          },
          "willingReferral": {
            "type": "boolean",
            "nullable": true
          },
          "referringDealPartnerContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "businessSalesType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionBusinessSalesType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "includeExecutiveSummary": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "customerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCustomerConcentrationsMoreThan10Percent": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionCustomerConcentrationDetails": {
            "type": "string",
            "nullable": true
          },
          "naicsCodeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionPurchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "generateLoanApplicationPdf": {
            "type": "boolean",
            "nullable": true
          },
          "businessOwnershipNarrative": {
            "type": "string",
            "nullable": true
          },
          "lastMatchingUpdateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isPendingMatchingUpdate": {
            "type": "boolean"
          },
          "isLenderFinanceDeal": {
            "type": "boolean",
            "nullable": true
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean",
            "nullable": true
          },
          "doNotPostToHubspot": {
            "type": "boolean",
            "nullable": true
          },
          "isCompanySubscriptionRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "companySubscriptionRefinanceIncrementalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "setCompanySubscriptionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasReducedFeeLenders": {
            "type": "boolean",
            "nullable": true
          },
          "hasGeneratedSuccessFeeInvoice": {
            "type": "boolean",
            "nullable": true
          },
          "excludeFromDealOpportunity": {
            "type": "boolean",
            "nullable": true
          },
          "countryType": {
            "type": "integer",
            "format": "int64"
          },
          "acquisitionCountryType": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isEditingCreditAnalysis": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectIntroDeal": {
            "type": "boolean"
          },
          "isAsapTargetDate": {
            "type": "boolean",
            "nullable": true
          },
          "financialStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyNdaId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "matchingFailedUpdated": {
            "type": "boolean"
          },
          "matchingProcessStartedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "salesRepUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isRawLead": {
            "type": "boolean"
          },
          "isRawLeadVisible": {
            "type": "boolean"
          },
          "dealSummary": {
            "type": "string",
            "nullable": true
          },
          "useOfProceeds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rawLeadInterestLimitRestricted": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "acquisitionNaicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NaicsCode"
          },
          "acquisitionState": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "actionTakens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ActionTaken"
            }
          },
          "bankContactSubscriptionDealOpportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity"
            }
          },
          "bankContactSubscriptionDealOpportunityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView"
            }
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "companyNda": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyNda"
          },
          "companySubscriptionHubspotDeals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspotDeal"
            }
          },
          "complimentaryAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "creditOutputAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditOutputAnalysis"
            }
          },
          "creditOutputLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditOutputLineItem"
            }
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDetailSummary"
            }
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "dataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
            }
          },
          "dealDealPartnerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDealPartnerContact"
            }
          },
          "dealDebtSchedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDebtSchedule"
            }
          },
          "dealDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDetailSummary"
            }
          },
          "dealExcludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealExcludedLender"
            }
          },
          "dealFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFacility"
            }
          },
          "dealFinancialMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFinancialMetric"
            }
          },
          "dealFundingLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFundingLender"
            }
          },
          "dealGeographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealGeography"
            }
          },
          "dealLenderListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealLenderListItem"
            }
          },
          "dealMatchingLenderStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat"
            }
          },
          "dealMatchingLoanOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLoanOption"
            }
          },
          "dealMatchingSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingSummary"
            }
          },
          "dealMatchingTrancheEvaluations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingTrancheEvaluation"
            }
          },
          "dealQuestionAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealQuestionAnswer"
            }
          },
          "dealReducedFeeLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealReducedFeeLender"
            }
          },
          "dealRequestAllocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealRequestAllocation"
            }
          },
          "dealStatusStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealStatusStat"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "lenderDealExclusivities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDealExclusivity"
            }
          },
          "lenderReferral": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderReferral"
          },
          "lenderRelationsManagerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "loanApplicationTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTask"
            }
          },
          "loanOptionOverrides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanOptionOverride"
            }
          },
          "loanStructures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanStructure"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "naicsCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NaicsCode"
          },
          "preMarketDealTrackingEmails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PreMarketDealTrackingEmail"
            }
          },
          "productSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          },
          "queueRecalculateStructureJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.QueueRecalculateStructureJob"
            }
          },
          "rawLeadDealAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.RawLeadDealAudit"
            }
          },
          "rawLeadInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.RawLeadInterest"
            }
          },
          "referringDealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
          },
          "salesRepUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "secondaryTransactionManagerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "transactionManagerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "pipelineStage": {
            "type": "string",
            "readOnly": true
          },
          "isRawLeadInterestLimitRestricted": {
            "type": "boolean",
            "readOnly": true
          },
          "restrictedAccess": {
            "type": "boolean",
            "readOnly": true
          },
          "requestAllocation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealRequestAllocation"
          },
          "isAcquisition": {
            "type": "boolean",
            "readOnly": true
          },
          "isBrokerSubmittedDeal": {
            "type": "boolean",
            "readOnly": true
          },
          "showBorrowerMetrics": {
            "type": "boolean",
            "readOnly": true
          },
          "showAcquisitionMetrics": {
            "type": "boolean",
            "readOnly": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalRevenue": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "matchingPostalCode": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "dealStatusEnum": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string"
          },
          "isDealActive": {
            "type": "boolean",
            "readOnly": true
          },
          "isDealClosed": {
            "type": "boolean",
            "readOnly": true
          },
          "isDealSubscriptionActive": {
            "type": "boolean",
            "readOnly": true
          },
          "companyTypeEnum": {
            "enum": [
              "Corporation",
              "Scorp",
              "NonProfit",
              "Other",
              "LLC",
              "Sole_Proprietor",
              "Partnership",
              "Unknown"
            ],
            "type": "string"
          },
          "companyFinancialStatementTypeEnum": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionFinancialStatementTypeEnum": {
            "enum": [
              "None",
              "Audited",
              "Reviewed",
              "Compiled",
              "CompanyPrepared",
              "TaxReturns"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionBusinessSalesTypeEnum": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "countryTypeEnum": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string"
          },
          "runwayLeftInMonthsEnum": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "transactionTypeEnum": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStageEnum": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyerEnum": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionRunwayLeftInMonthsEnum": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "businessSalesTypeEnum": {
            "enum": [
              "NotSelected",
              "B2B",
              "B2C",
              "B2G"
            ],
            "type": "string",
            "nullable": true
          },
          "dealClosedDiscardedReasonEnum": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "dealPausedReasonEnum": {
            "enum": [
              "AcquisitionTargetNotViable",
              "BorrowerAltCapital",
              "BorrowerNotPursuingFinancing",
              "DealNotViable",
              "NoTermSheetsCerebroLenders",
              "OtherLenderBetterTerms",
              "ProcessTooSlow",
              "Unresponsive",
              "BorrowerNotAgreeingToTerms",
              "DeletedDeal",
              "BorrowerAltLender",
              "CerebroNotPursuingDeal",
              "ValueNotInPlatform",
              "NoCurrentNeed",
              "PricingTooHigh",
              "UsingBroker",
              "Intermediary",
              "WillNeverLeaveBank",
              "Exclusivity",
              "Covid"
            ],
            "type": "string",
            "nullable": true
          },
          "matchingInstitutionalInvestor": {
            "type": "boolean",
            "readOnly": true
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "wasReferredByADealPartner": {
            "type": "boolean",
            "readOnly": true
          },
          "mostCurrentBorrowerEquipment": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "mostCurrentBorrowerAr": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "mostCurrentAcquisitionAr": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "isClosedDeal": {
            "type": "boolean",
            "readOnly": true
          },
          "loanAssessmentStatus": {
            "type": "string",
            "readOnly": true
          },
          "dealLeverageRatio": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "isFunded": {
            "type": "boolean",
            "readOnly": true
          },
          "hasSelectedPreference": {
            "type": "boolean",
            "readOnly": true
          },
          "activeProductSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          },
          "excludedLenderCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "reducedFeeLenderCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "isB2B": {
            "type": "boolean",
            "nullable": true,
            "readOnly": true
          },
          "isB2C": {
            "type": "boolean",
            "nullable": true,
            "readOnly": true
          },
          "isB2G": {
            "type": "boolean",
            "nullable": true,
            "readOnly": true
          },
          "companyName": {
            "type": "string",
            "readOnly": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "salesPersonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "secondaryTransactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "lenderRelationsManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "dealPartner": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartner"
          },
          "hasParentCompany": {
            "type": "boolean",
            "readOnly": true
          },
          "showMatchingBlankIssue": {
            "type": "boolean",
            "readOnly": true
          },
          "hasCompanySubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "includeLoanApplication": {
            "type": "boolean",
            "readOnly": true
          },
          "includeDataRoom": {
            "type": "boolean",
            "readOnly": true
          },
          "directConnectOrIntroDeal": {
            "type": "boolean",
            "readOnly": true
          },
          "useOfProceedsEnum": {
            "enum": [
              "Unknown",
              "WorkingCapital",
              "WorkingCapitalAccountsReceivableFinancing",
              "WorkingCapitalInventoryFinancing",
              "WorkingCapitalCapitalForOperatingExpenses",
              "EquipmentFinancing",
              "EquipmentFinancingMachineryAndEquipment",
              "EquipmentFinancingVehicles",
              "EquipmentFinancingMarineVessels",
              "EquipmentFinancingHelicopters",
              "EquipmentFinancingAircraft",
              "RealEstate",
              "RealEstateOffice",
              "RealEstateMedicalOffice",
              "RealEstateChildcare",
              "RealEstateRetail",
              "RealEstateSelfStorage",
              "RealEstateIndustrial",
              "RealEstateIndustrialManufacturing",
              "RealEstateIndustrialFlexHybrid",
              "RealEstateIndustrialDistribution",
              "RealEstateIndustrialWarehouse",
              "RealEstateHospitality",
              "RealEstateResidentialHealthcare",
              "RealEstateMultifamily",
              "RealEstateInvestorOwnedResidential",
              "GrowthCapital",
              "RefinanceExistingDebt",
              "AcquiringBusiness",
              "AcquiringBusinessStandalone",
              "AcquiringBusinessAddOn",
              "AcquiringBusinessPartnerBuyOut",
              "AcquiringBusinessManagementBuyOut",
              "OtherFinancingNeeds"
            ],
            "type": "string",
            "readOnly": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "isContactSignedOrLater": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealDealPartnerContact": {
        "type": "object",
        "properties": {
          "dealDealPartnerContactId": {
            "type": "integer",
            "format": "int64"
          },
          "dealDealPartnerContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerContactId": {
            "type": "integer",
            "format": "int64"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealDebtSchedule": {
        "type": "object",
        "properties": {
          "dealDebtScheduleId": {
            "type": "integer",
            "format": "int64"
          },
          "dealDebtScheduleGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "originalLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "presentBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maturityQuarterType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maturityYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "collateralSecurityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isRefinance": {
            "type": "boolean",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "maturityQuarterTypeEnum": {
            "enum": [
              "Q1",
              "Q2",
              "Q3",
              "Q4"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityTypeEnum": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "nullable": true
          },
          "lenderTypeEnum": {
            "enum": [
              "Unknown",
              "Assessment",
              "Bank",
              "NonBank",
              "Sba",
              "Usda",
              "SellerFinancing",
              "Other",
              "Factoring",
              "EquipmentBased"
            ],
            "type": "string",
            "nullable": true
          },
          "collateralSecurityTypeEnum": {
            "enum": [
              "None",
              "SecuredAr",
              "SecuredInventory",
              "SecuredRealEstate",
              "SecuredGeneral",
              "SecuredCash",
              "SecuredSecurities",
              "SecuredEquipment",
              "SecuredOther",
              "Unsecured",
              "SecuredArPlusInventory",
              "SecuredVehicles",
              "SecuredMarine",
              "SecuredHelicopters",
              "SecuredFixedWingAircraft",
              "SecondLienRealEstate",
              "SecuredIp",
              "SecuredRoyalty",
              "SecuredFirstLien",
              "SecondLien",
              "Mezzanine",
              "SecuredSecondLien"
            ],
            "type": "string",
            "nullable": true
          },
          "isTermLoan": {
            "type": "boolean",
            "readOnly": true
          },
          "isRevolver": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealDetailSummary": {
        "type": "object",
        "properties": {
          "dealDetailSummaryId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ownershipStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTestCompany": {
            "type": "boolean"
          },
          "restrictedAccess": {
            "type": "boolean"
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currencyType": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "allocationId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "priorYearEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nextYearEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "priorYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nextYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "debtCapitalForBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentagePurchasing": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "inventoryAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "operatingGrowthAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateRequestAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateCashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "proformaDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "b2b": {
            "type": "boolean",
            "nullable": true
          },
          "b2c": {
            "type": "boolean",
            "nullable": true
          },
          "b2g": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean"
          },
          "purchaseEquipment": {
            "type": "boolean"
          },
          "financeExpensesOrGrowth": {
            "type": "boolean"
          },
          "otherFinancingNeeds": {
            "type": "boolean"
          },
          "purchaseRealEstate": {
            "type": "boolean"
          },
          "refinanceExistingDebt": {
            "type": "boolean"
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarketables": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonUsEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean",
            "nullable": true
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "investorOwned": {
            "type": "boolean",
            "nullable": true
          },
          "isPartnerBuyout": {
            "type": "boolean",
            "nullable": true
          },
          "equipmentAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "vehicleAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "marineAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "helicopterAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isLenderFinanceDeal": {
            "type": "boolean"
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean"
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "transactionManager": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "showBorrower": {
            "type": "boolean",
            "nullable": true
          },
          "showAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "primaryObstacleList": {
            "type": "string",
            "nullable": true
          },
          "closedLostDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "excludeFromDealOpportunity": {
            "type": "boolean",
            "nullable": true
          },
          "loanWatchAcquisitionFilterValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanWatchRevenueFilterValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanWatchSizeFilterValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanWatchMrrFilterValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealPartnerContactName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealPartnerName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "transactionManagerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyCurrency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "secondaryTransactionManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lenderRelationsManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealCreatedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasEarnout": {
            "type": "boolean",
            "nullable": true
          },
          "earnoutAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "workingCapitalForAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "fullTextContent": {
            "type": "string",
            "nullable": true
          },
          "dealLaunchedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "contractSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "termSheetSubmittedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "contactEmailAddress": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contactPhone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "salesRepId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "salesRepName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "numberDataRoomDocuments": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isRawLead": {
            "type": "boolean",
            "nullable": true
          },
          "isRawLeadVisible": {
            "type": "boolean",
            "nullable": true
          },
          "useOfProceeds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerTypeName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isBrokerSubmittedDeal": {
            "type": "boolean",
            "nullable": true
          },
          "hasDocs": {
            "type": "boolean",
            "nullable": true
          },
          "hasAdditionalInformation": {
            "type": "boolean",
            "nullable": true
          },
          "rawLeadInterestCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rawLeadNotInterestCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "requestDescription": {
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rawLeadInterestLimitRestricted": {
            "type": "boolean",
            "nullable": true
          },
          "principalDetails": {
            "type": "string",
            "nullable": true
          },
          "contactJobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "allocation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealRequestAllocation"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealStatusEnum": {
            "enum": [
              "Started",
              "Accepted",
              "Declined",
              "MoreInfoNeeded",
              "ContractSigned",
              "ReadyForReview",
              "Active",
              "ActiveClosing",
              "TermSheetIssued",
              "ClosedFunded",
              "ClosedDiscarded",
              "Paused",
              "Inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "isContactSignedOrLater": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealExcludedLender": {
        "type": "object",
        "properties": {
          "dealExcludedLenderId": {
            "type": "integer",
            "format": "int64"
          },
          "dealExcludedLenderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isIncumbentLender": {
            "type": "boolean",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealFacility": {
        "type": "object",
        "properties": {
          "dealFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "dealFacilityGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "requestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingLoan": {
            "type": "boolean",
            "nullable": true
          },
          "desiredTerm": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "desiredAmortization": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "facilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dealType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "existingLoanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingMaturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "percentageEquity": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyBankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "expectedUtilizationPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "priorityOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allocationFacilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allocationReferenceId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyBank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyBank"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealFinancialMetric": {
        "type": "object",
        "properties": {
          "dealFinancialMetricId": {
            "type": "integer",
            "format": "int64"
          },
          "dealFinancialMetricGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "analysisMetricType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "financialMetricType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "metricName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "twoYearsAgo": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "previousFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trailingTwelveMonths": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "futureYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "profileRealEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amountDescription": {
            "type": "string",
            "nullable": true
          },
          "projectedFullYear": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "analysisMetricTypeEnum": {
            "enum": [
              "Borrower",
              "Acquisition"
            ],
            "type": "string",
            "nullable": true
          },
          "financialMetricTypeEnum": {
            "enum": [
              "Mrr",
              "TotalRevenue",
              "NetIncome",
              "Ebitda",
              "Adjustments",
              "AdjustedEbitda",
              "Cash",
              "Marketables",
              "AccountsReceivables",
              "Inventory",
              "Equipment",
              "RealEstate",
              "FurnitureFixture",
              "Vehicles",
              "MarineVessels",
              "Helicopters",
              "FixedWingAircraft",
              "IntellectualProperty",
              "Royalties",
              "NetEquity"
            ],
            "type": "string",
            "nullable": true
          },
          "profileRealEstateTypeEnum": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealFundingLender": {
        "type": "object",
        "properties": {
          "dealFundingLenderId": {
            "type": "integer",
            "format": "int64"
          },
          "dealFundingLenderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "finderFeeAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "amountFunded": {
            "type": "number",
            "format": "double"
          },
          "dateFunded": {
            "type": "string",
            "format": "date-time"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "finderFeeAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement"
          },
          "bankContactGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "lenderName": {
            "type": "string",
            "readOnly": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealGeography": {
        "type": "object",
        "properties": {
          "dealGeographyId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGeographyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64"
          },
          "metricType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "metricTypeEnum": {
            "enum": [
              "Borrower",
              "Acquisition"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealLenderListItem": {
        "type": "object",
        "properties": {
          "dealLenderListItemId": {
            "type": "integer",
            "format": "int64"
          },
          "dealLenderListItemGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "trancheType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "matchPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean",
            "nullable": true
          },
          "decisionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionByPersonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "denyReason": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tier1": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "decisionByPerson": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat": {
        "type": "object",
        "properties": {
          "dealMatchingLenderStatId": {
            "type": "integer",
            "format": "int64"
          },
          "dealMatchingLenderStatGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "industryNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "geographyBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "geographyNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitdaRevenueBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRevenueNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSize": {
            "type": "number",
            "format": "double"
          },
          "dealSizeBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeNonBankMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeNonBankFinderFeeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "countryType": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionGeographyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionGeography": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "acquisitionIndustry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "geography": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "countryTypeEnum": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "readOnly": true
          },
          "acquisitionIndustryName": {
            "type": "string",
            "readOnly": true
          },
          "geographyName": {
            "type": "string",
            "readOnly": true
          },
          "acquisitionGeographyName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealMatchingLoanOption": {
        "type": "object",
        "properties": {
          "dealMatchingLoanOptionId": {
            "type": "integer",
            "format": "int64"
          },
          "dealMatchingLoanOptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "loanOptionType": {
            "type": "integer",
            "format": "int32"
          },
          "matchedLenders": {
            "type": "integer",
            "format": "int32"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "highLoanAmount": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "collateral": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanStructure": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanDescription": {
            "type": "string",
            "nullable": true
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          },
          "isPreferred": {
            "type": "boolean"
          },
          "isSelected": {
            "type": "boolean"
          },
          "isMatched": {
            "type": "boolean"
          },
          "typicalCreditSpreadType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealMatchingStats": {
        "type": "object",
        "properties": {
          "bankIndustryMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankGeographyMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankEbitdaMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankRevenueMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankDealSizeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankIndustryMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankGeographyMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankEbitdaMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankDealSizeMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankSeniorCashFlowMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankSeniorCashFlowMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankJuniorCashFlowMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankJuniorCashFlowMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankVentureDebtMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankVentureDebtMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankEquityMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankEquityMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankSeniorRealEstateMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankSeniorRealEstateMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankJuniorRealEstateMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankJuniorRealEstateMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankSba7aMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankSba7aMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankSba504Matches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankSba504Matches": {
            "type": "integer",
            "format": "int32"
          },
          "bankUsdaMatches": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankUsdaMatches": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedWorkingCapitalAccountsReceivable": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedWorkingCapitalAccountsReceivable": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedWorkingCapitalInventory": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedWorkingCapitalInventory": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedEquipmentMachinery": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedEquipmentMachinery": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedEquipmentVehicles": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedEquipmentVehicles": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedEquipmentMarine": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedEquipmentMarine": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedEquipmentHelicopters": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedEquipmentHelicopters": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedEquipmentAircraft": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedEquipmentAircraft": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedIntangibleIntellectualProperty": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedIntangibleIntellectualProperty": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedIntangibleRoyalty": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedIntangibleRoyalty": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetArPlusInventory": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetArPlusInventory": {
            "type": "integer",
            "format": "int32"
          },
          "bankPurchaseOrderFinancing": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankPurchaseOrderFinancing": {
            "type": "integer",
            "format": "int32"
          },
          "bankFactoring": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankFactoring": {
            "type": "integer",
            "format": "int32"
          },
          "bankRecurringRevenue": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankRecurringRevenue": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankInventoryOnly": {
            "type": "integer",
            "format": "int32"
          },
          "bankLenderFinance": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankLenderFinance": {
            "type": "integer",
            "format": "int32"
          },
          "bankFloorplanFinance": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankFloorplanFinance": {
            "type": "integer",
            "format": "int32"
          },
          "bankAssetBasedWorkingCapitalArPlusInventory": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankAssetBasedWorkingCapitalArPlusInventory": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankBridgeLoan": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealMatchingSummary": {
        "type": "object",
        "properties": {
          "dealMatchingSummaryId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "currencyType": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "algorithmType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allocationId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "debtCapitalForBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equityRoll": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "percentagePurchasing": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "refinanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "inventoryAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "operatingGrowthAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateOfficeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateMedicalOfficeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateChildcareAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateRetailAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateSelfStorageAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateIndustrialAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateIndustrialManufacturingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateIndustrialFlexHybridAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateIndustrialDistributionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateIndustrialWarehouseAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateHospitalityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateResidentialHealthcareAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateMultifamilyAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateInvestorOwedResidentialAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateCashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalRequestAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "proformaDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionIndustryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "acquisitionStateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "yearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "b2b": {
            "type": "boolean",
            "nullable": true
          },
          "b2c": {
            "type": "boolean",
            "nullable": true
          },
          "b2g": {
            "type": "boolean",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarketables": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nonUsEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean",
            "nullable": true
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "investorOwned": {
            "type": "boolean",
            "nullable": true
          },
          "isPartnerBuyout": {
            "type": "boolean",
            "nullable": true
          },
          "equipmentAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "vehicleAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "marineAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "helicopterAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyLocatedInRuralArea": {
            "type": "boolean",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "purchaseOrderAverageMonthlyCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isLenderFinanceDeal": {
            "type": "boolean"
          },
          "isFloorplanFinanceDeal": {
            "type": "boolean"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "companyType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ownershipStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTestCompany": {
            "type": "boolean"
          },
          "restrictedAccess": {
            "type": "boolean"
          },
          "dealStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "priorYearEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nextYearEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "priorYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nextYearRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "countryType": {
            "type": "integer",
            "format": "int64"
          },
          "b2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "b2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2bPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2cPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionB2gPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availableBalanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "totalRealEstateAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalEquipmentPurchaseAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalEquipmentMachineryAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalMarineAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalHelicopterAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalVehiclesAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "usEmployeePercentage": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalCollateral": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "cashEquity": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "cashEquityPercent": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "buyerEquityPercent": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "sellerEquityPercent": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalEquityPercent": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "isEquityMatch": {
            "type": "boolean",
            "readOnly": true
          },
          "balanceSheetWorkingCapital": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalBalanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalEquipmentBalanceSheetAssets": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "countryTypeEnum": {
            "enum": [
              "UnitedStates",
              "Canada",
              "Mexico",
              "Brazil",
              "Europe",
              "Other"
            ],
            "type": "string"
          },
          "realEstateTypeEnum": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "equipmentAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionTypeEnum": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "runwayLeftInMonthsEnum": {
            "enum": [
              "Zero",
              "One",
              "Two",
              "Three",
              "Four",
              "Five",
              "Six",
              "SevenToTwelve",
              "TwelvePlus",
              "CashFlowPositive"
            ],
            "type": "string",
            "nullable": true
          },
          "algorithmTypeEnum": {
            "enum": [
              "Deal",
              "MatchingTool",
              "ComplimentaryAnalysis",
              "LoanStructure",
              "ComplimentaryAnalysisStructure"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealMatchingTrancheEvaluation": {
        "type": "object",
        "properties": {
          "dealMatchingTrancheEvaluationId": {
            "type": "integer",
            "format": "int64"
          },
          "dealMatchingTrancheEvaluationGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "loanOptionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32"
          },
          "tier1BankType": {
            "type": "integer",
            "format": "int32"
          },
          "collateralSecurityType": {
            "type": "integer",
            "format": "int32"
          },
          "profileRealEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "profileTangibleAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facilityType1": {
            "type": "integer",
            "format": "int32"
          },
          "facilityType2": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberMatches": {
            "type": "integer",
            "format": "int32"
          },
          "numberMatchesFinderFee": {
            "type": "integer",
            "format": "int32"
          },
          "metric": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isEligible": {
            "type": "boolean",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double"
          },
          "collateral": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateType": {
            "type": "integer",
            "format": "int32"
          },
          "minimumDscr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "multiplier": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amortization": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "metricCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "overrideCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isLimitedByCollateral": {
            "type": "boolean"
          },
          "negativeEbitdaCapacity": {
            "type": "boolean"
          },
          "requiredEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "matchEbitdaRequirement": {
            "type": "boolean"
          },
          "hasValue": {
            "type": "boolean"
          },
          "termSheetMatches": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "showEvaluation": {
            "type": "boolean",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "termSheetMatchesNotNull": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealPartner": {
        "type": "object",
        "properties": {
          "dealPartnerId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "logo": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "agreementDocument": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "expirationOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dealPartnerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
            }
          },
          "bucketName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealPartnerContact": {
        "type": "object",
        "properties": {
          "dealPartnerContactId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerContactGuid": {
            "type": "string",
            "format": "uuid"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerId": {
            "type": "integer",
            "format": "int64"
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "contactNotes": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "hasLimitedAccess": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "complimentaryAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "dealDealPartnerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDealPartnerContact"
            }
          },
          "dealPartner": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartner"
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "dealPartnerReferralCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerReferralCode"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealPartnerReferralCode": {
        "type": "object",
        "properties": {
          "dealPartnerReferralCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerReferralCodeGuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "maxLength": 75,
            "minLength": 0,
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64"
          },
          "dealPartnerContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "dealPartnerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealQuestionAnswer": {
        "type": "object",
        "properties": {
          "dealQuestionAnswerId": {
            "type": "integer",
            "format": "int64"
          },
          "dealQuestionAnswerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "questionId": {
            "type": "integer",
            "format": "int64"
          },
          "answerValue": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "answerText": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "question": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyQuestion"
          },
          "answered": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealReducedFeeLender": {
        "type": "object",
        "properties": {
          "dealReducedFeeLenderId": {
            "type": "integer",
            "format": "int64"
          },
          "dealReducedFeeLenderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealRequestAllocation": {
        "type": "object",
        "properties": {
          "requestAllocationId": {
            "type": "integer",
            "format": "int64"
          },
          "requestAllocationGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "acquiringBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "debtCapitalForBusiness": {
            "type": "boolean",
            "nullable": true
          },
          "dealType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "percentageBeingPurchased": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasCurrentOwnership": {
            "type": "boolean",
            "nullable": true
          },
          "currentOwnershipPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "confirmRollingAmount": {
            "type": "boolean",
            "nullable": true
          },
          "valueOfferedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "provideSellerFinancing": {
            "type": "boolean",
            "nullable": true
          },
          "sellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "buyerProvidingCash": {
            "type": "boolean",
            "nullable": true
          },
          "buyerCashAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionEvaluationStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "natureOfBuyer": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acquisitionYearsInOperation": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasLegalCouncel": {
            "type": "boolean",
            "nullable": true
          },
          "legalFirmName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "refinanceExistingDebt": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseEquipmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentDescription": {
            "type": "string",
            "nullable": true
          },
          "purchaseRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "manageCapitalOrLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "averageMonthlyArBalanceAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "financeExpensesOrGrowth": {
            "type": "boolean",
            "nullable": true
          },
          "hiringDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringProviderAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hiringExecutiveAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "costsNewLocationsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseholdImprovementAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "furnitureFixturesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "researchDevelopmentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "softwareTechnologyAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingNeeds": {
            "type": "boolean",
            "nullable": true
          },
          "otherFinancingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "otherFinancingDescription": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "purchaseVehiclesAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseMarineAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseHelicopterAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseFixedWingAircraftAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipmentAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "vehicleAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "marineAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "helicopterAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fixedWingAircraftAssetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "refinanceMaturingSoon": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceLowerRate": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceExtendAmortization": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceIncreaseLoanSize": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceNewLender": {
            "type": "boolean",
            "nullable": true
          },
          "refinanceOther": {
            "type": "boolean",
            "nullable": true
          },
          "purchaseInventoryAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "purchaseWorkingCapital": {
            "type": "boolean",
            "nullable": true
          },
          "allocationInventoryType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalWorkingCapitalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalHardCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalGrowthCapitalSoftCostAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalImproveLiquidity": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalPurchaseInventory": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalOperatingExpenses": {
            "type": "boolean",
            "nullable": true
          },
          "hasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "hasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "hasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "hasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "hasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "hasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "hasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "hasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "hasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "hasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "hasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "hasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasInventory": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasOwnerOccupiedRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFurnitureFixtures": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMachineryEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRollingStock": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasMarineVessels": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasHelicopters": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasFixedWingAircraft": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasRoyaltyLicensingAgreements": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasIntellectualProperty": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasCashMarketables": {
            "type": "boolean",
            "nullable": true
          },
          "acquisitionHasAccountsReceivables": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreference": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreference": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreference": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "cashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedArInvNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "assetBasedFixedAssetsNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "smallGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "largeGovernmentPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureDebtPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "poFinancingPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "factoringPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "unknownPreference": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "acquisitionCollateralNotes": {
            "type": "string",
            "nullable": true
          },
          "loanRequestNotes": {
            "type": "string",
            "nullable": true
          },
          "juniorCashFlowNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "juniorCashFlowNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "ventureBankNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "noteHubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "inventoryOnlyPreference": {
            "type": "boolean",
            "nullable": true
          },
          "inventoryOnlyPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "lenderFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "floorplanFinanceNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreference": {
            "type": "boolean",
            "nullable": true
          },
          "bridgeLoanNonBankPreferenceSelected": {
            "type": "boolean",
            "nullable": true
          },
          "sellerEquityRollAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasEarnout": {
            "type": "boolean",
            "nullable": true
          },
          "earnoutAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workingCapitalForAcquisition": {
            "type": "boolean",
            "nullable": true
          },
          "workingCapitalForAcquisitionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionTransactionCostsAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "acquisitionWorkingCapitalContributionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealDetailSummary"
            }
          },
          "dealRequestAllocationRealEstates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealRequestAllocationRealEstate"
            }
          },
          "totalRealEstateAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalRealEstateEquityAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalEquipmentAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "dealTypeEnum": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "nullable": true
          },
          "equipmentAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "vehicleAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "marineAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "helicopterAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "fixedWingAircraftAssetTypeEnum": {
            "enum": [
              "NotApplicable",
              "New",
              "Used"
            ],
            "type": "string",
            "nullable": true
          },
          "transactionTypeEnum": {
            "enum": [
              "None",
              "Asset",
              "StockSale"
            ],
            "type": "string",
            "nullable": true
          },
          "acquisitionEvaluationStageEnum": {
            "enum": [
              "None",
              "LoiSigned",
              "LoiSubmitted",
              "LoiNegotiation",
              "EarlyStages"
            ],
            "type": "string",
            "nullable": true
          },
          "natureOfBuyerEnum": {
            "enum": [
              "NotSelected",
              "ExistingOwner",
              "IndividualNonExistingOwner",
              "FundedSponsor",
              "NonFundedSponsor",
              "Strategic"
            ],
            "type": "string",
            "nullable": true
          },
          "totalAcquisitionCapitalNeededAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "acquisitionFromWorkingCapital": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalFinanceExpensesOrGrowthAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "rollingPercentage": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalRefinanceAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalRevolverRefinanceAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalTermLoanRefinanceAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalOtherFinancingAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "debtCapitalForBusinessAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalDebtCapitalLineOfCredit": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalDebtCapitalRevolver": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalDebtCapitalTermLoan": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalAcquisitionCashEquity": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalCashEquityAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalSellerFinancingAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "hasPreference": {
            "type": "boolean",
            "readOnly": true
          },
          "hasSelectedPreference": {
            "type": "boolean",
            "readOnly": true
          },
          "dealPurposeList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "showCashMarketables": {
            "type": "boolean",
            "readOnly": true
          },
          "showAccountsReceivables": {
            "type": "boolean",
            "readOnly": true
          },
          "showInventory": {
            "type": "boolean",
            "readOnly": true
          },
          "showOwnerOccupiedRealEstate": {
            "type": "boolean",
            "readOnly": true
          },
          "showMachineryEquipment": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealRequestAllocationRealEstate": {
        "type": "object",
        "properties": {
          "requestAllocationRealEstateId": {
            "type": "integer",
            "format": "int64"
          },
          "requestAllocationRealEstateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requestAllocationId": {
            "type": "integer",
            "format": "int64"
          },
          "realEstateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termLoanNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "revolvingDebtNeeds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cashEquity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "requestAllocation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealRequestAllocation"
          },
          "realEstateTypeEnum": {
            "enum": [
              "None",
              "Office",
              "MedicalOffice",
              "Childcare",
              "Retail",
              "SelfStorage",
              "Industrial",
              "IndustrialManufacturing",
              "IndustrialFlexHybrid",
              "IndustrialDistribution",
              "IndustrialWarehouse",
              "Hospitality",
              "ResidentialHealthcare",
              "Multifamily",
              "InvestorOwedResidential"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string",
            "readOnly": true
          },
          "totalRealEstateAmount": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealSizeLenderStat": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "bankLenders": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankLenders": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealStatusStat": {
        "type": "object",
        "properties": {
          "dealStatusStatId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DealStructureLoan": {
        "type": "object",
        "properties": {
          "dealStructureLoanId": {
            "type": "integer",
            "format": "int64"
          },
          "dealStructureLoanGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanStructureId": {
            "type": "integer",
            "format": "int64"
          },
          "trancheType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facilityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "operationAssetCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longTermAssetCoverage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "personalGuaranteeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanStructure": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanStructure"
          },
          "trancheTypeEnum": {
            "enum": [
              "Unknown",
              "SeniorCash",
              "VentureDebt",
              "AssetBased",
              "JuniorCash",
              "Sba"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DebtCapacityCalculator": {
        "type": "object",
        "properties": {
          "debtCapacityCalculatorId": {
            "type": "integer",
            "format": "int64"
          },
          "debtCapacityCalculatorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "annualRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ebitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "yearsInBusiness": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "realEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "institutionalInvestor": {
            "type": "boolean",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "runwayLeftInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "averageMonthlyPayroll": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "numHighIncomeEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "complimentaryAnalysisId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "accountsReceivable": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "inventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "equipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingLenderType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "undrawnDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastAcceptedSupplementalTermsDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "utmCampaign": {
            "type": "string",
            "nullable": true
          },
          "utmId": {
            "type": "string",
            "nullable": true
          },
          "utmSource": {
            "type": "string",
            "nullable": true
          },
          "utmMedium": {
            "type": "string",
            "nullable": true
          },
          "utmTerm": {
            "type": "string",
            "nullable": true
          },
          "utmMatchType": {
            "type": "string",
            "nullable": true
          },
          "utmNetwork": {
            "type": "string",
            "nullable": true
          },
          "utmCreative": {
            "type": "string",
            "nullable": true
          },
          "utmContent": {
            "type": "string",
            "nullable": true
          },
          "helpRequested": {
            "type": "boolean"
          },
          "phoneNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "complimentaryAnalysis": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.DirectConnectFilter": {
        "type": "object",
        "properties": {
          "directConnectFilterId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "useProfile": {
            "type": "integer",
            "format": "int32"
          },
          "acquisition": {
            "type": "integer",
            "format": "int32"
          },
          "amountRange": {
            "type": "integer",
            "format": "int32"
          },
          "ebitdaRange": {
            "type": "integer",
            "format": "int32"
          },
          "revenueRange": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetAr": {
            "type": "integer",
            "format": "int32"
          },
          "balanceSheetEquipment": {
            "type": "integer",
            "format": "int32"
          },
          "dateRange": {
            "type": "integer",
            "format": "int32"
          },
          "interestLevel": {
            "type": "integer",
            "format": "int32"
          },
          "industry": {
            "type": "integer",
            "format": "int64"
          },
          "geography": {
            "type": "integer",
            "format": "int64"
          },
          "connectionStatus": {
            "type": "integer",
            "format": "int32"
          },
          "brokerSubmitted": {
            "type": "integer",
            "format": "int32"
          },
          "receiveDailyEmail": {
            "type": "boolean"
          },
          "receiveWeeklyEmail": {
            "type": "boolean"
          },
          "balanceSheetRealEstate": {
            "type": "integer",
            "format": "int32"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Discount": {
        "type": "object",
        "properties": {
          "discountId": {
            "type": "integer",
            "format": "int64"
          },
          "discountType": {
            "type": "integer",
            "format": "int32"
          },
          "discountName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "discountAmount": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "discountGuid": {
            "type": "string",
            "format": "uuid"
          },
          "discountCode": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalUses": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "timesUsed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "invoiceType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "invoiceLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceLineItem"
            }
          },
          "productSubscriptionSetupDiscounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          },
          "productSubscriptionSubscriptionDiscounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeCommunicationPermission": {
        "type": "object",
        "properties": {
          "employeeCommunicationPermissionId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeCommunicationPermissionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTermSheetAddedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTermSheetResponseReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomQuestionPostedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskAssignedReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskDailyUpdateReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTaskWeeklyUpdateReminder": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomLenderUploadReminder": {
            "type": "boolean",
            "nullable": true
          },
          "lenderAccessRoomReminder": {
            "type": "boolean",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeCompanyPermission": {
        "type": "object",
        "properties": {
          "employeeCompanyPermissionId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeCompanyPermissionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeContact": {
        "type": "object",
        "properties": {
          "employeeContactId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "imageFileName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "bucketProd": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeDataRoomPermission": {
        "type": "object",
        "properties": {
          "employeeDataRoomPermissionId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeDataRoomPermissionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "allowAccess": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeReport": {
        "type": "object",
        "properties": {
          "employeeReportId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeReportGuid": {
            "type": "string",
            "format": "uuid"
          },
          "employeeReportCategoryId": {
            "type": "integer",
            "format": "int64"
          },
          "reportName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "reportUrl": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "reactUrl": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "reportDescription": {
            "type": "string",
            "nullable": true
          },
          "controlledObjectId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isAdminReport": {
            "type": "boolean"
          },
          "controlledObject": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ControlledObject"
          },
          "employeeReportCategory": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeReportCategory"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeReportCategory": {
        "type": "object",
        "properties": {
          "employeeReportCategoryId": {
            "type": "integer",
            "format": "int64"
          },
          "employeeReportCategoryGuid": {
            "type": "string",
            "format": "uuid"
          },
          "categoryName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "employeeReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeReport"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EmployeeTermSheetSummaryReport": {
        "type": "object",
        "properties": {
          "activeCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeBankCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeAmount": {
            "type": "number",
            "format": "double"
          },
          "currentMonthCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthBankCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthAmount": {
            "type": "number",
            "format": "double"
          },
          "currentQuarterCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentQuarterBankCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentQuarterAmount": {
            "type": "number",
            "format": "double"
          },
          "yearToDateCount": {
            "type": "integer",
            "format": "int32"
          },
          "yearToDateBankCount": {
            "type": "integer",
            "format": "int32"
          },
          "yearToDateAmount": {
            "type": "number",
            "format": "double"
          },
          "lastYearCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastYearBankCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastYearAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription": {
        "type": "object",
        "properties": {
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "tier1Fee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "treasuryReferralThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          },
          "agreementSignedBy": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "accountManagerUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "lenderRawLeads": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inviteExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connectedExclusivityPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termInMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "renewalDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "accountManagerUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscriptionDealOpportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity"
            }
          },
          "bankContactSubscriptionDealOpportunityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView"
            }
          },
          "bankContactSubscriptionFacilityInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest"
            }
          },
          "bankContactSubscriptionFacilityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView"
            }
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "enterpriseLoanWatchSubscriptionAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscriptionAudit"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "subscriptionStatus": {
            "enum": [
              "Pending",
              "Active",
              "PendingCancellation",
              "Canceled"
            ],
            "type": "string",
            "readOnly": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "accountManagerUserGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "accountManagerName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "accountManagerEmailAddress": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "hasInviteExclusivityPeriod": {
            "type": "boolean",
            "readOnly": true
          },
          "hasConnectedExclusivityPeriod": {
            "type": "boolean",
            "readOnly": true
          },
          "billingFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string",
            "readOnly": true
          },
          "isCanceled": {
            "type": "boolean",
            "readOnly": true
          },
          "loanWatchStatus": {
            "enum": [
              "Active",
              "Canceled",
              "FailedPayment",
              "PendingCancellation",
              "PendingPayment"
            ],
            "type": "string",
            "readOnly": true
          },
          "isEnterpriseSubscription": {
            "type": "boolean",
            "readOnly": true
          },
          "subscriptionFeeTypeEnum": {
            "enum": [
              "BaseSubscriptionFee",
              "Tier1SubscriptionFee"
            ],
            "type": "string"
          },
          "monthlySubscriptionFee": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "productName": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscriptionAudit": {
        "type": "object",
        "properties": {
          "enterpriseLoanWatchSubscriptionAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "enterpriseLoanWatchSubscriptionAuditGuid": {
            "type": "string",
            "format": "uuid"
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "previousValue": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "auditTypeEnum": {
            "enum": [
              "StartedOn",
              "BaseFeeChanged",
              "Tier1FeeChanged",
              "SubscriptionFeeChanged",
              "SubscriptionFeeType",
              "TermSheetThresholdChanged",
              "TreasuryReferralThresholdChanged",
              "SubscriptionStatusChanged",
              "RawLeadDealsInterest",
              "InviteExclusivityPeriod",
              "ConnectedExclusivityPeriod",
              "TermInMonths"
            ],
            "type": "string",
            "readOnly": true
          },
          "changedBy": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EsignDocument": {
        "type": "object",
        "properties": {
          "esignDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "esignDocumentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companySubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "agreementId": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reminderFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "senderEmail": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastSentOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
          },
          "esignDocumentActivityLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EsignDocumentActivityLog"
            }
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          },
          "stateEnum": {
            "enum": [
              "Authoring",
              "Draft",
              "InProcess",
              "Restart",
              "Completed",
              "Cancelled"
            ],
            "type": "string",
            "nullable": true
          },
          "reminderFrequencyEnum": {
            "enum": [
              "DailyUntilSigned",
              "WeekDailyUntilSigned",
              "EveryOtherDayUntilSigned",
              "EveryThirdDayUntilSigned",
              "EveryFifthDayUntilSigned",
              "WeeklyUntilSigned",
              "Once",
              "None",
              "Cancelled"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.EsignDocumentActivityLog": {
        "type": "object",
        "properties": {
          "esignDocumentActivityLogId": {
            "type": "integer",
            "format": "int64"
          },
          "esignDocumentActivityLogGuid": {
            "type": "string",
            "format": "uuid"
          },
          "esignDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "eventType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "agreementStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerEmail": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "cerebroStatus": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contractSigner": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "customerStatus": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sender": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "esignDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EsignDocument"
          },
          "eventTypeEnum": {
            "enum": [
              "Unknown",
              "AgreementSignerNameChangedBySigner",
              "AgreementDocumentsViewed",
              "AgreementReminderCreated",
              "AgreementReminderUpdated",
              "AgreementStatusRequested",
              "AgreementActionCompleted",
              "AgreementActionDelegated",
              "AgreementActionReplacedSigner",
              "AgreementActionRequested",
              "AgreementAutoCancelledConversionProblem",
              "AgreementCreated",
              "AgreementDocumentsDeleted",
              "AgreementEmailBounced",
              "AgreementEmailViewed",
              "AgreementExpired",
              "AgreementKbaAuthenticated",
              "AgreementModified",
              "AgreementOfflineSync",
              "AgreementRecalled",
              "AgreementRejected",
              "AgreementShared",
              "AgreementUploadedBySender",
              "AgreementUserAckAgreementModified",
              "AgreementVaulted",
              "AgreementWebIdentityAuthenticated",
              "AgreementWorkflowCompleted",
              "LibraryDocumentAutoCancelledConversionProblem",
              "LibraryDocumentCreated",
              "LibraryDocumentModified",
              "MegasignCreated",
              "MegasignRecalled",
              "MegasignShared",
              "WidgetEnabled",
              "WidgetDisabled",
              "WidgetCreated",
              "WidgetModified",
              "WidgetShared",
              "WidgetAutoCancelledConversionProblem"
            ],
            "type": "string",
            "nullable": true
          },
          "agreementStatusEnum": {
            "enum": [
              "OutForSignature",
              "OutForDelivery",
              "OutForAcceptance",
              "OutForFormFilling",
              "OutForApproval",
              "OutForWitnessing",
              "Authoring",
              "Cancelled",
              "Signed",
              "Approved",
              "Delivered",
              "Accepted",
              "FormFilled",
              "Expired",
              "Archived",
              "Prefill",
              "Draft",
              "DocumentsNotYetProcessed",
              "WaitingForFaxin",
              "WaitingForVerification",
              "WaitingForNotarization"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinancialCovenant": {
        "type": "object",
        "properties": {
          "financialCovenantId": {
            "type": "integer",
            "format": "int64"
          },
          "covenantName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantDescription": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantFormula": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "operators": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "financialCovenantGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "covenantValueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "calculationInProgress": {
            "type": "boolean",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "includeDetailsInComplianceReport": {
            "type": "boolean",
            "nullable": true
          },
          "complianceReportHeading": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isTrackingCovenant": {
            "type": "boolean",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "primaryContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "reviewerContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "defaultTargetValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultCovenantTargetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "complianceReportHandlingMethod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "breachConsequence": {
            "type": "integer",
            "format": "int32"
          },
          "testedEntity": {
            "type": "integer",
            "format": "int32"
          },
          "otherBreachConsequence": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanAgreementInvestorGuarantorId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "covenantTargets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantTarget"
            }
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "loanAgreementInvestorGuarantor": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementInvestorGuarantor"
          },
          "primaryContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "reviewerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "testFrequency": {
            "type": "string",
            "readOnly": true
          },
          "covenantValueTypeName": {
            "type": "string",
            "readOnly": true
          },
          "breachConsequenceName": {
            "type": "string",
            "readOnly": true
          },
          "testedEntityName": {
            "type": "string",
            "readOnly": true
          },
          "investorGuarantor": {
            "type": "string",
            "readOnly": true
          },
          "frequencyEnum": {
            "enum": [
              "Quarterly",
              "SemiAnnually",
              "Annually",
              "Monthly",
              "EventDriven"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantValueTypeEnum": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "formulaDetail": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "complianceReportHandlingMethodEnum": {
            "enum": [
              "LastPeriod",
              "SumValues"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantValueItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantValueItem"
            },
            "nullable": true
          },
          "covenantContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantContact"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinancialCovenantType": {
        "type": "object",
        "properties": {
          "financialCovenantTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "financialCovenantTypeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "covenantName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "reportingType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "covenantValueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "termSheetFinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFinancialCovenant"
            }
          },
          "reportingTypeEnum": {
            "enum": [
              "None",
              "MaximumSeniorLeverageRatio",
              "MaximumTotalLeverageRatio",
              "MinimumFixedChargeCoverageRatio"
            ],
            "type": "string",
            "nullable": true
          },
          "covenantValueTypeEnum": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinancialStatement": {
        "type": "object",
        "properties": {
          "financialStatementId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "statementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statementYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statementPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statementCategory": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "financialStatementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean",
            "nullable": true
          },
          "isYtd": {
            "type": "boolean",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "financialStatementLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialStatementLineItem"
            }
          },
          "statementTypeEnum": {
            "enum": [
              "Income_Statement",
              "Balance_Sheet",
              "Cash_Flow_Statement",
              "Selected_Items",
              "Selected_Items_BalanceSheet"
            ],
            "type": "string",
            "nullable": true
          },
          "statementCategoryEnum": {
            "enum": [
              "Actual",
              "Forecast",
              "Budget"
            ],
            "type": "string",
            "nullable": true
          },
          "statementPeriodEnum": {
            "enum": [
              "Q1",
              "Q2",
              "Q3",
              "Q4",
              "Full_Year",
              "January",
              "February",
              "March",
              "April",
              "May",
              "June",
              "July",
              "August",
              "September",
              "October",
              "November",
              "December"
            ],
            "type": "string",
            "nullable": true
          },
          "statementPeriodDisplay": {
            "type": "string",
            "readOnly": true
          },
          "statementEndDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "revenue": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinancialStatementLineItem": {
        "type": "object",
        "properties": {
          "financialStatementLineItemId": {
            "type": "integer",
            "format": "int64"
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineItemOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemDescription": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lineItemAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialStatementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isEbitda": {
            "type": "boolean",
            "nullable": true
          },
          "isCash": {
            "type": "boolean",
            "nullable": true
          },
          "isMarkSec": {
            "type": "boolean",
            "nullable": true
          },
          "isInventory": {
            "type": "boolean",
            "nullable": true
          },
          "isAr": {
            "type": "boolean",
            "nullable": true
          },
          "isTotalAssets": {
            "type": "boolean",
            "nullable": true
          },
          "isTotalRevenue": {
            "type": "boolean",
            "nullable": true
          },
          "isRealEstate": {
            "type": "boolean",
            "nullable": true
          },
          "isEquipment": {
            "type": "boolean",
            "nullable": true
          },
          "financialStatementLineItemGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "financialStatement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialStatement"
          },
          "lineItemType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement": {
        "type": "object",
        "properties": {
          "finderFeeAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "finderFeeAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "oneTimePayment": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "portionOfInterestPaid": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "capOnReferralPayment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bankDocumentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "appliesToAllContacts": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tier3ContactType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDocument"
          },
          "dealFundingLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealFundingLender"
            }
          },
          "finderFeeAgreementContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementContact"
            }
          },
          "finderFeeAgreementTranches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementTranch"
            }
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "includesOneTimePayment": {
            "type": "boolean",
            "readOnly": true
          },
          "includesPortionOfInterestPaid": {
            "type": "boolean",
            "readOnly": true
          },
          "tier3ContactTypeEnum": {
            "enum": [
              "None",
              "Sba7a",
              "Sba504",
              "SeniorCash",
              "AssetWorkingCapital",
              "AssetEquipment",
              "RealEstateSenior",
              "MiddleMarket",
              "LeveragedFinance",
              "SyndicatedCapitalMarkets",
              "JuniorCash",
              "Mezzanine",
              "StructuredPrivateEquity",
              "RealEstateJunior",
              "EquityMinority",
              "EquityControl",
              "UnitrancheStretchSenior",
              "VentureCapital",
              "MiddleMarketSpecialist",
              "AssetIntangible",
              "Usda",
              "VentureDebt",
              "RecurringRevenue",
              "BridgeMcaLending"
            ],
            "type": "string",
            "readOnly": true
          },
          "status": {
            "enum": [
              "Active",
              "Expired"
            ],
            "type": "string",
            "readOnly": true
          },
          "tier3ContactTypeList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Models.Tier3ContactTypeDto"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementContact": {
        "type": "object",
        "properties": {
          "finderFeeAgreementContactId": {
            "type": "integer",
            "format": "int64"
          },
          "finderFeeAgreementContactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "finderFeeAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "finderFeeAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FinderFeeAgreementTranch": {
        "type": "object",
        "properties": {
          "finderFeeAgreementTrancheId": {
            "type": "integer",
            "format": "int64"
          },
          "finderFeeAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "finderFeeAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinderFeeAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.FormulaValueItem": {
        "type": "object",
        "properties": {
          "formulaValueItemId": {
            "type": "integer",
            "format": "int64"
          },
          "valueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentCompanyCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "childCompanyCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "factor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "limit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "numTrailingMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTrailingAverage": {
            "type": "boolean",
            "nullable": true
          },
          "hasDynamicLimit": {
            "type": "boolean",
            "nullable": true
          },
          "limitFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "limitCustomValueId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentCompanyCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "valueTypeEnum": {
            "enum": [
              "NoValue",
              "LineItemType",
              "CustomValue",
              "Constant"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isTrailingTwelveMonths": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingThreeMonths": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingThreeMonthAverage": {
            "type": "boolean",
            "nullable": true
          },
          "isTrailingSixMonths": {
            "type": "boolean",
            "nullable": true
          },
          "childCompanyCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "limitCustomValue": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyCustomValue"
          },
          "lineItemType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Industry": {
        "type": "object",
        "properties": {
          "industryId": {
            "type": "integer",
            "format": "int64"
          },
          "industryName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isStandardIndustry": {
            "type": "boolean",
            "nullable": true
          },
          "isSupportedForLending": {
            "type": "boolean",
            "nullable": true
          },
          "isSupportedForVentureDebt": {
            "type": "boolean",
            "nullable": true
          },
          "industryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "hubSpotName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "complimentaryAnalysisAcquisitionIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "complimentaryAnalysisIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "dealAcquisitionIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealCompanyIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealMatchingLenderStatAcquisitionIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat"
            }
          },
          "dealMatchingLenderStatIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat"
            }
          },
          "targetIndustries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetIndustry"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Invoice": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "productSubscriptionTermId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "invoiceFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string"
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "invoiceType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complimentaryAnalysisId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "paymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceStage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankAccountId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "paymentOptionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companySubscriptionHubspotId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "classificationType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "writeOffAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "processInvoiceAtCreation": {
            "type": "boolean"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankAccount": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankAccount"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "companySubscriptionHubspot": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscriptionHubspot"
          },
          "complimentaryAnalysis": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
          },
          "creditCardTransactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditCardTransaction"
            }
          },
          "dataSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataSubscription"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "invoiceContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceContact"
          },
          "invoiceDetailSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceDetailSummary"
            }
          },
          "invoiceLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceLineItem"
            }
          },
          "invoicePayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoicePayment"
            }
          },
          "paymentScheduleItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PaymentScheduleItem"
            }
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          },
          "productSubscriptionTerm": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionTerm"
          },
          "isRecurringCreditCardOnlyInvoice": {
            "type": "boolean",
            "readOnly": true
          },
          "bankAccountGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "productName": {
            "type": "string",
            "readOnly": true
          },
          "isCreditMemo": {
            "type": "boolean",
            "readOnly": true
          },
          "bucketName": {
            "type": "string",
            "readOnly": true
          },
          "customerId": {
            "type": "string",
            "readOnly": true
          },
          "customerName": {
            "type": "string",
            "readOnly": true
          },
          "invoiceDetailSummary": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceDetailSummary"
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "readOnly": true
          },
          "nextBalanceDue": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "invoiceStageEnum": {
            "enum": [
              "Pending",
              "Approved"
            ],
            "type": "string",
            "nullable": true
          },
          "invoiceTypeEnum": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string",
            "nullable": true
          },
          "classificationTypeEnum": {
            "enum": [
              "Invoice",
              "CreditMemo"
            ],
            "type": "string",
            "nullable": true
          },
          "paymentOptionTypeEnum": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string",
            "nullable": true
          },
          "paymentScheduleTypeEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          },
          "downloadFilename": {
            "type": "string",
            "readOnly": true
          },
          "subTotalAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "scheduleDueDate": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "scheduleStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "bankInvoiceTypeDisplay": {
            "type": "string",
            "readOnly": true
          },
          "bankPaymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string",
            "readOnly": true
          },
          "invoiceIdDisplay": {
            "type": "string",
            "readOnly": true
          },
          "receivingBank": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "paymentScheduleMatchesInvoiceAmount": {
            "type": "boolean",
            "readOnly": true
          },
          "canEditPaymentSchedule": {
            "type": "boolean",
            "readOnly": true
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "canEditCustomPaymentSchedule": {
            "type": "boolean",
            "readOnly": true
          },
          "showCustomPaymentScheduleError": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.InvoiceContact": {
        "type": "object",
        "properties": {
          "invoiceContactId": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "middleInitial": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contactPhone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "fullname": {
            "type": "string",
            "readOnly": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "countryName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.InvoiceDetailSummary": {
        "type": "object",
        "properties": {
          "invoiceDetailSummaryId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceGuid": {
            "type": "string",
            "format": "uuid"
          },
          "customerName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankContactSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companySubscriptionGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "productName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "writeOffAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "paymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceStatus": {
            "type": "integer",
            "format": "int32"
          },
          "paymentScheduleCount": {
            "type": "integer",
            "format": "int32"
          },
          "isRevenue": {
            "type": "boolean"
          },
          "paymentOptionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastPaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isCreditMemo": {
            "type": "boolean"
          },
          "productCategory": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "invoiceFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string"
          },
          "invoice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.InvoiceLineItem": {
        "type": "object",
        "properties": {
          "invoiceLineItemId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "productId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineNumber": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceLineItemType": {
            "type": "integer",
            "format": "int32"
          },
          "itemDate": {
            "type": "string",
            "format": "date"
          },
          "summary": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "unitPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subTotal": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "discountId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "discountAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lineItemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "revenueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "discount": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Discount"
          },
          "invoice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Product"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.InvoicePayment": {
        "type": "object",
        "properties": {
          "invoicePaymentId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "paymentType": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "details": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "paymentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "stripePaymentIntentId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "invoice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
          },
          "statusEnum": {
            "enum": [
              "Pending",
              "Succeeded",
              "Failed",
              "PaymentMethodPending"
            ],
            "type": "string",
            "nullable": true
          },
          "paymentTypeEnum": {
            "enum": [
              "CreditCard",
              "Check",
              "WireTransfer",
              "Cash",
              "WriteOff"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Job": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "integer",
            "format": "int64"
          },
          "jobType": {
            "type": "integer",
            "format": "int32"
          },
          "jobName": {
            "type": "string"
          },
          "frequency": {
            "type": "integer",
            "format": "int32"
          },
          "hourOfDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "runOnMondays": {
            "type": "boolean"
          },
          "runOnTuesdays": {
            "type": "boolean"
          },
          "runOnWednesdays": {
            "type": "boolean"
          },
          "runOnThursdays": {
            "type": "boolean"
          },
          "runOnFridays": {
            "type": "boolean"
          },
          "runOnSaturdays": {
            "type": "boolean"
          },
          "runOnSundays": {
            "type": "boolean"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean"
          },
          "lastExecutionOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "jobGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "minuteOfHour": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "jobExecutions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.JobExecution"
            }
          },
          "modifiedByNavigation": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "frequencyEnum": {
            "enum": [
              "None",
              "Daily",
              "Hourly",
              "Weekly"
            ],
            "type": "string"
          },
          "daysRunning": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.JobExecution": {
        "type": "object",
        "properties": {
          "jobExecutionId": {
            "type": "integer",
            "format": "int64"
          },
          "jobExecutionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "finishedTime": {
            "type": "string",
            "format": "date-time"
          },
          "executionStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "executionSummary": {
            "type": "string",
            "nullable": true
          },
          "exceptionText": {
            "type": "string",
            "nullable": true
          },
          "jobId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "job": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Job"
          },
          "jobExecutionDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.JobExecutionDetail"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.JobExecutionDetail": {
        "type": "object",
        "properties": {
          "jobExecutionDetailId": {
            "type": "integer",
            "format": "int64"
          },
          "to": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "hasError": {
            "type": "boolean",
            "nullable": true
          },
          "jobExecutionId": {
            "type": "integer",
            "format": "int64"
          },
          "jobExecution": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.JobExecution"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderDataroomNdaTemplate": {
        "type": "object",
        "properties": {
          "lenderDataroomNdaTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderDataroomNdaTemplateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "defaultText": {
            "type": "string"
          },
          "isCurrentVersion": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "acceptedDataRoomNdaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.AcceptedDataRoomNdaTemplate"
            }
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderDealExclusivity": {
        "type": "object",
        "properties": {
          "lenderDealExclusivityId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderDealExclusivityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "rawLeadInterestId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "expirationOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "rawLeadInterest": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.RawLeadInterest"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderDeclineReason": {
        "type": "object",
        "properties": {
          "lenderDeclineReasonId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderDeclineReasonGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reasonName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "declineReasonType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "associatedDealCriterion": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "isLenderVisible": {
            "type": "boolean",
            "nullable": true
          },
          "isBorrowerVisible": {
            "type": "boolean",
            "nullable": true
          },
          "isUnresponsive": {
            "type": "boolean",
            "nullable": true
          },
          "includeOffMarketDeals": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTeaserDeclineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaserDeclineReason"
            }
          },
          "dataRoomTeasers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomUserDeclineReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUserDeclineReason"
            }
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
            }
          },
          "associatedDealCriterionEnum": {
            "enum": [
              "NotApplicable",
              "None",
              "EBITDA",
              "MaxLeverageRatio",
              "Industries",
              "MinYearsOperating",
              "PositiveTangibleNetWorth",
              "MinimumCoverage",
              "InstitutionalSponsor",
              "PersonalGuarantee",
              "DealSize",
              "Geography",
              "Financing"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderFeedbackSummary": {
        "type": "object",
        "properties": {
          "lenderFeedbackSummaryId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderFeedbackSummaryGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "feedbackText": {
            "type": "string"
          },
          "nextStepsText": {
            "type": "string",
            "nullable": true
          },
          "isVisibleToBorrower": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderReferral": {
        "type": "object",
        "properties": {
          "lenderReferralId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderReferralGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "natureOfReferral": {
            "type": "integer",
            "format": "int32"
          },
          "referralStatus": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "emailAddress": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "emailSubject": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "emailContent": {
            "type": "string"
          },
          "sentCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastSent": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "complimentaryAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "deals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "referralStatusEnum": {
            "enum": [
              "Sent",
              "LinkClicked",
              "LoanAssessmentStarted",
              "LoanAssessmentCompleted",
              "LoanAssessmentDeclined",
              "LoanAssessmentAccepted",
              "ContractSigned",
              "DealLaunched",
              "DealClosedWon",
              "DealCanceled"
            ],
            "type": "string"
          },
          "natureOfReferralEnum": {
            "enum": [
              "AdditionalCapitalNeeded",
              "SeekingToExitRelationship",
              "NotFitForCurrentNeeds",
              "NotFit",
              "Unknown"
            ],
            "type": "string"
          },
          "dealCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "createdOnDisplay": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderScore": {
        "type": "object",
        "properties": {
          "lenderScoreId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "scoreType": {
            "type": "integer",
            "format": "int32"
          },
          "actionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "points": {
            "type": "integer",
            "format": "int32"
          },
          "sortIndex": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "lenderScoreDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderScoreDetail"
            }
          },
          "scoreTypeEnum": {
            "enum": [
              "DataRoomUse",
              "TeaserResponseRate",
              "AccessedDataRooms",
              "TermSheetPercentage",
              "ClosedDeals",
              "LoanWatchSubscription"
            ],
            "type": "string"
          },
          "totalPoints": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderScoreDetail": {
        "type": "object",
        "properties": {
          "lenderScoreDetailId": {
            "type": "integer",
            "format": "int64"
          },
          "lenderScoreId": {
            "type": "integer",
            "format": "int64"
          },
          "detail": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "detailValue": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lenderScore": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderScore"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderSummaryDashboardReport": {
        "type": "object",
        "properties": {
          "rowNum": {
            "type": "integer",
            "format": "int32"
          },
          "commericalBankTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "commericalBankCurrentMonthCount": {
            "type": "integer",
            "format": "int32"
          },
          "commericalBankCurrentQuarterCount": {
            "type": "integer",
            "format": "int32"
          },
          "commericalBankYearToDateCount": {
            "type": "integer",
            "format": "int32"
          },
          "commericalBankLastYearCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankCurrentMonthCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankCurrentQuarterCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankYearToDateCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankLastYearCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeDealsTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "invitedYTDTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "teaserAcceptRate": {
            "type": "number",
            "format": "double"
          },
          "commercialBankCurrentMonthLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "commercialBankCurrentQuarterLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "commercialBankYearToDateLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "commercialBankLastYearLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankCurrentMonthLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankCurrentQuarterLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankYearToDateLoginCount": {
            "type": "integer",
            "format": "int32"
          },
          "nonBankLastYearLoginCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LenderTermSheetFacilityMatching": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "dealSizeMatch": {
            "type": "boolean",
            "nullable": true
          },
          "revenueEbitdaMatch": {
            "type": "boolean",
            "nullable": true
          },
          "industryMatch": {
            "type": "boolean",
            "nullable": true
          },
          "geographyMatch": {
            "type": "boolean",
            "nullable": true
          },
          "availableOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isPending": {
            "type": "boolean"
          },
          "isFundingLender": {
            "type": "boolean"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LineItemType": {
        "type": "object",
        "properties": {
          "lineItemTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "statementType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isStandard": {
            "type": "boolean",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineItemTypeOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemValueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lineItemCovenantLabel": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "parentLineItemTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "suggestedLineItemOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "creditFacilityLineItemTypeId2Navigations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
            }
          },
          "creditFacilityLineItemTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
            }
          },
          "financialStatementLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialStatementLineItem"
            }
          },
          "inverseParentLineItemType": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
            }
          },
          "parentLineItemType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LineItemType"
          },
          "statementTypeName": {
            "type": "string",
            "readOnly": true
          },
          "statementTypeEnum": {
            "enum": [
              "Income_Statement",
              "Balance_Sheet",
              "Cash_Flow_Statement",
              "Selected_Items",
              "Selected_Items_BalanceSheet"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "lineItemValueTypeEnum": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isBalanceSheetItem": {
            "type": "boolean",
            "readOnly": true
          },
          "formulaValueItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FormulaValueItem"
            },
            "nullable": true
          },
          "covenantValueItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantValueItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreement": {
        "type": "object",
        "properties": {
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanAgreementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "loanProvider": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "arrangedByLogo": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanCovenantsApproved": {
            "type": "boolean",
            "nullable": true
          },
          "loanCovenantApprovalLevel": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "covenantApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "covenantsApprovedBy": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sendCovenantReminders": {
            "type": "boolean",
            "nullable": true
          },
          "defaultComplianceReportId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "defaultComplianceReportGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "complianceReportTemplateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultComplianceReportText": {
            "type": "string",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parentAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complianceReportFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loanAgreementExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amendments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Amendment"
            }
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "companyDocumentFolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocumentFolder"
            }
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocument"
            }
          },
          "complianceCertificateTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplianceCertificateTemplate"
            }
          },
          "covenantComplianceReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport"
            }
          },
          "creditFacilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacility"
            }
          },
          "financialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
            }
          },
          "inverseParentAgreement": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
            }
          },
          "loanAgreementAdditionalBorrowers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementAdditionalBorrower"
            }
          },
          "loanAgreementGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementGuarantor"
            }
          },
          "loanAgreementHolders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementHolder"
            }
          },
          "loanAgreementInvestorGuarantors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementInvestorGuarantor"
            }
          },
          "loanAgreementProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreementProvider"
            }
          },
          "nonFinancialCovenantUploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantUpload"
            }
          },
          "nonfinancialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
            }
          },
          "parentAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "productSubscriptionLoanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionLoanAgreement"
            }
          },
          "mostRecentAmendmentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreementAdditionalBorrower": {
        "type": "object",
        "properties": {
          "loanAgreementAdditionalBorrowerId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementAdditionalBorrowerGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "borrowerDescription": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreementGuarantor": {
        "type": "object",
        "properties": {
          "loanAgreementGuarantorId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementGuarantorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "guarantorDescription": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "guarantorAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreementHolder": {
        "type": "object",
        "properties": {
          "loanAgreementHolderId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementHolderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreementInvestorGuarantor": {
        "type": "object",
        "properties": {
          "loanAgreementInvestorGuarantorId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementInvestorGuarantorGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "investorGuarantorDescription": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "investorGuarantorAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialCovenants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenant"
            }
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanAgreementProvider": {
        "type": "object",
        "properties": {
          "loanAgreementProviderId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementProviderGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "providerName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "providerPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanApplicationTask": {
        "type": "object",
        "properties": {
          "loanApplicationTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "loanApplicationTaskGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "applicationTaskTitle": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "collectionIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notApplicable": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "displayOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "templateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "loanApplicationDisplayOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "templateFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "loanApplicationTaskDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskDocument"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "template": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskTemplate"
          },
          "taskStatus": {
            "enum": [
              "Pending",
              "InProgress",
              "Completed",
              "NotApplicable"
            ],
            "type": "string",
            "readOnly": true
          },
          "completedBy": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskDocument": {
        "type": "object",
        "properties": {
          "loanApplicationTaskDocumentId": {
            "type": "integer",
            "format": "int64"
          },
          "loanApplicationTaskDocumentGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "loanApplicationTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "documentTitle": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocument": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocument"
          },
          "loanApplicationTask": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTask"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanApplicationTaskTemplate": {
        "type": "object",
        "properties": {
          "loanApplicationTaskTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "loanApplicationTaskTemplateGuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "displayOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataRoomDocumentFolderTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "isLoanApplicationDefault": {
            "type": "boolean"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "isCustomFolder": {
            "type": "boolean",
            "nullable": true
          },
          "templateFileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dataRoomDocumentFolderTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolderTemplate"
          },
          "loanApplicationTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTask"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanOptionConfig": {
        "type": "object",
        "properties": {
          "loanOptionConfigId": {
            "type": "integer",
            "format": "int64"
          },
          "loanOptionConfigGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptionType": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string"
          },
          "lowestRate": {
            "type": "number",
            "format": "double"
          },
          "highestRate": {
            "type": "number",
            "format": "double"
          },
          "rateDetails": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "typicalCreditSpreadType": {
            "type": "integer",
            "format": "int32"
          },
          "collateral": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string"
          },
          "amortization": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string"
          },
          "loanStructure": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string"
          },
          "loanDescription": {
            "type": "string"
          },
          "loanOptionOverrides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanOptionOverride"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanOptionOverride": {
        "type": "object",
        "properties": {
          "loanOptionOverrideId": {
            "type": "integer",
            "format": "int64"
          },
          "loanOptionOverrideGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptionConfigId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "capacityOverride": {
            "type": "number",
            "format": "double"
          },
          "lenderMatchCountOverride": {
            "type": "integer",
            "format": "int32"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "loanOptionConfig": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanOptionConfig"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanStructure": {
        "type": "object",
        "properties": {
          "loanStructureId": {
            "type": "integer",
            "format": "int64"
          },
          "loanStructureGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "availableDebtServiceCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableSeniorAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableOperatingAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableLongTermAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableSeniorCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableJuniorCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availableVentureDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedDebtServiceCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedSeniorAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedOperatingAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedLongTermAssets": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedSeniorCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedJuniorCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedVentureDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "viability": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isOriginal": {
            "type": "boolean"
          },
          "isSelected": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "selectedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loanStructureAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "structureNotes": {
            "type": "string",
            "nullable": true
          },
          "availableSbaCapacity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "usedSba": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "structureScope": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "personalGuaranteeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "dealStructureLoans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealStructureLoan"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanWatchProspect": {
        "type": "object",
        "properties": {
          "loanWatchProspectId": {
            "type": "integer",
            "format": "int64"
          },
          "loanWatchProspectGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "mostRecentOn": {
            "type": "string",
            "format": "date-time"
          },
          "numberOfSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketSearches": {
            "type": "integer",
            "format": "int32"
          },
          "numberOffMarketDetails": {
            "type": "integer",
            "format": "int32"
          },
          "numberRefinanceSearches": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberRefinanceDetails": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral": {
        "type": "object",
        "properties": {
          "loanWatchTreasuryReferralId": {
            "type": "integer",
            "format": "int64"
          },
          "loanWatchTreasuryReferralGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankContactSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "enterpriseLoanWatchSubscriptionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "referralStatus": {
            "type": "integer",
            "format": "int32"
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "emailAddress": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "phoneNumber": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "includeLenderOnCall": {
            "type": "boolean"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "cerebroContactUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
          },
          "cerebroContactUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
          },
          "loanWatchTreasuryReferralStatusStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferralStatusStat"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "referralStatusEnum": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string",
            "readOnly": true
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferralStatusStat": {
        "type": "object",
        "properties": {
          "loanWatchTreasuryReferralStatusStatId": {
            "type": "integer",
            "format": "int64"
          },
          "loanWatchTreasuryReferralId": {
            "type": "integer",
            "format": "int64"
          },
          "referralStatus": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64"
          },
          "createdByUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "loanWatchTreasuryReferral": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
          },
          "referralStatusEnum": {
            "enum": [
              "Pending",
              "Conducted",
              "InProgress",
              "EngagementSigned",
              "DealLaunched",
              "TermSheetsIssued",
              "UnderwritingDiligence",
              "ClosedFunded",
              "NoOpportunity",
              "NotFunded"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.NaicsCode": {
        "type": "object",
        "properties": {
          "naicsCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "naicsCodeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "code": {
            "maxLength": 6,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "industryName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sbaEligible": {
            "type": "boolean",
            "nullable": true
          },
          "sbaRevenueLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sbaEmployeeLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "complimentaryAnalysisAcquisitionNaicsCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "complimentaryAnalysisNaicsCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "dealAcquisitionNaicsCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealNaicsCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantResultResponse": {
        "type": "object",
        "properties": {
          "nonFinancialCovenantResultResponseId": {
            "type": "integer",
            "format": "int64"
          },
          "nonfinancialCovenantResultId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "submittedAnswer": {
            "type": "string",
            "nullable": true
          },
          "nonFinancialCovenantResultResponseGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "covenantContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantContact"
          },
          "nonfinancialCovenantResult": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenantResult"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantUpload": {
        "type": "object",
        "properties": {
          "nonFinancialCovenantUploadId": {
            "type": "integer",
            "format": "int64"
          },
          "nonFinancialCovenantUploadGuid": {
            "type": "string",
            "format": "uuid"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "fileName": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string"
          },
          "uploadStatus": {
            "type": "integer",
            "format": "int32"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant": {
        "type": "object",
        "properties": {
          "nonfinancialCovenantId": {
            "type": "integer",
            "format": "int64"
          },
          "covenantName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantDescription": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "documentReference": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "requiredAnswer": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nonfinancialCovenantGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderReportingRequired": {
            "type": "boolean",
            "nullable": true
          },
          "continuousMonitoring": {
            "type": "boolean",
            "nullable": true
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "primaryContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "reviewerContactId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "companyEventId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasDocumentReferenceText": {
            "type": "boolean",
            "nullable": true
          },
          "covenantCompletionRule": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "yearEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarterEndReportingDueBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyEvent": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEvent"
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "nonfinancialCovenantResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenantResult"
            }
          },
          "primaryContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "reviewerContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
          },
          "testFrequency": {
            "type": "string",
            "readOnly": true
          },
          "frequencyEnum": {
            "enum": [
              "Quarterly",
              "SemiAnnually",
              "Annually",
              "Monthly",
              "EventDriven"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "covenantContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantContact"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.NonfinancialCovenantResult": {
        "type": "object",
        "properties": {
          "nonfinancialCovenantResultId": {
            "type": "integer",
            "format": "int64"
          },
          "nonFinancialCovenantId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "quarter": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "submittedAnswer": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "targetMet": {
            "type": "boolean",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean",
            "nullable": true
          },
          "isReviewed": {
            "type": "boolean",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "reportingDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyEventOccurrenceId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "nonfinancialCovenantResultGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "resultComplete": {
            "type": "boolean",
            "nullable": true
          },
          "periodEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "companyEventOccurrence": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEventOccurrence"
          },
          "nonFinancialCovenant": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonfinancialCovenant"
          },
          "isNotApplicableResponse": {
            "type": "boolean",
            "readOnly": true
          },
          "covenantReportResult": {
            "enum": [
              "Pass",
              "Fail",
              "NotApplicable",
              "NoResult"
            ],
            "type": "string",
            "readOnly": true
          },
          "nonFinancialCovenantResultResponses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantResultResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.PagingInfo": {
        "type": "object",
        "properties": {
          "totalRecords": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.PaymentScheduleItem": {
        "type": "object",
        "properties": {
          "paymentScheduleItemId": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "integer",
            "format": "int64"
          },
          "paymentScheduleItemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "writeOffAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "invoice": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
          },
          "paymentStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Person": {
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "prefix": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "middleInitial": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "suffix": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string"
          },
          "imageFileName": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "altPhone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeZoneId": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "currency": {
            "maxLength": 15,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "smsVerificationCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "receiveTeasersSms": {
            "type": "boolean",
            "nullable": true
          },
          "smsPhone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hubSpotId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "actionTakens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ActionTaken"
            }
          },
          "bankContactSubscriptionDealOpportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunity"
            }
          },
          "bankContactSubscriptionDealOpportunityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionDealOpportunityView"
            }
          },
          "bankContactSubscriptionFacilityInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest"
            }
          },
          "bankContactSubscriptionFacilityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView"
            }
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "bankContactTeamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactTeamMember"
            }
          },
          "bankContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
            }
          },
          "companyAccountManagerPeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "companyContactCreatedByPeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
            }
          },
          "companyContactPeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContact"
            }
          },
          "companySalesRepPeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
            }
          },
          "companySubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
            }
          },
          "creditFacilityExtensionOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacilityExtensionOption"
            }
          },
          "dealLenderListItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealLenderListItem"
            }
          },
          "dealPartnerContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerContact"
            }
          },
          "employeeContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeContact"
            }
          },
          "loanApplicationTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanApplicationTask"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
            }
          },
          "fullname": {
            "type": "string",
            "readOnly": true
          },
          "fullNamePlusStatus": {
            "type": "string",
            "readOnly": true
          },
          "singleUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "typeEnum": {
            "enum": [
              "CompanyUser",
              "BankUser",
              "Employee",
              "TeamMember",
              "Investment",
              "DealPartner"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.PostalCode": {
        "type": "object",
        "properties": {
          "postalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "postalCodeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "code": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "targetPostalCodeMatches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCodeMatch"
            }
          },
          "targetPostalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCode"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.PreMarketDealTrackingEmail": {
        "type": "object",
        "properties": {
          "preMarketDealTrackingEmailId": {
            "type": "integer",
            "format": "int64"
          },
          "preMarketDealTrackingEmailGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "responseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "lastSentOn": {
            "type": "string",
            "format": "date-time"
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "contactName": {
            "type": "string",
            "readOnly": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "bankName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.Product": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "productName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "productCategory": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionPrice": {
            "type": "number",
            "format": "double"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "productStatus": {
            "type": "integer",
            "format": "int32"
          },
          "productGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "successFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "accessFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "cancellationFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "successFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "subscriptionFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "termSheetFeePaymentScheduleType": {
            "type": "integer",
            "format": "int32"
          },
          "isContractRequired": {
            "type": "boolean",
            "nullable": true
          },
          "platformAccessFeeLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "cancellationFeeLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "successFeeLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "subscriptionFeeLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "implementationFeeLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "unitPriceLineItemName": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isCompanySubscriptionDealProduct": {
            "type": "boolean",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "monthlyTreasuryReferrals": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthlyDealOpportunities": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isDirectIntroProduct": {
            "type": "boolean",
            "nullable": true
          },
          "isDirectConnectProduct": {
            "type": "boolean",
            "nullable": true
          },
          "bankContactSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscription"
            }
          },
          "invoiceLineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceLineItem"
            }
          },
          "productSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
            }
          },
          "successFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.SuccessFeeTier"
            }
          },
          "productCategoryEnum": {
            "enum": [
              "Explorer",
              "Navigator",
              "BankContactSubscription"
            ],
            "type": "string"
          },
          "productStatusEnum": {
            "enum": [
              "Inactive",
              "Active"
            ],
            "type": "string"
          },
          "subscriptionFrequencyEnum": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "isDirectConnectOrIntroDeal": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ProductSubscription": {
        "type": "object",
        "properties": {
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "companyId": {
            "type": "integer",
            "format": "int64"
          },
          "productId": {
            "type": "integer",
            "format": "int64"
          },
          "setupFee": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFee": {
            "type": "number",
            "format": "double"
          },
          "setupDiscountId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subscriptionDiscountId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "applyDiscountsToRenewal": {
            "type": "boolean"
          },
          "term": {
            "type": "integer",
            "format": "int32"
          },
          "autoRenewal": {
            "type": "boolean"
          },
          "agreementSignedDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "agreementFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "agreementSignedBy": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unitsPurchased": {
            "type": "integer",
            "format": "int32"
          },
          "cancellationFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCancelled": {
            "type": "boolean"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "additionalUnits": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "implementationPrice": {
            "type": "number",
            "format": "double"
          },
          "subscriptionFrequency": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "cancellationReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherReason": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "dayOfMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nextBillingDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "successFeeType": {
            "type": "integer",
            "format": "int32"
          },
          "isBillingActive": {
            "type": "boolean",
            "nullable": true
          },
          "reducedFeeLenderDiscountPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minimumSuccessFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "platformAccessPaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "successFeePaymentSchedule": {
            "type": "integer",
            "format": "int32"
          },
          "feesCredited": {
            "type": "boolean",
            "nullable": true
          },
          "contractFileName": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "successFeeCap": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "includeSbaexclusion": {
            "type": "boolean",
            "nullable": true
          },
          "excludedLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reducedFeeLendersCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tailPeriodMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "includePrimaryOperatingAccountsClause": {
            "type": "boolean"
          },
          "includeConfessionOfJudgment": {
            "type": "boolean"
          },
          "treasuryFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cancellationReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CancellationReason"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "esignDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EsignDocument"
            }
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Product"
          },
          "productSubscriptionLoanAgreements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionLoanAgreement"
            }
          },
          "productSubscriptionPaymentTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionPaymentTerm"
            }
          },
          "productSubscriptionSuccessFeeTiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionSuccessFeeTier"
            }
          },
          "productSubscriptionTerms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscriptionTerm"
            }
          },
          "setupDiscount": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Discount"
          },
          "subscriptionDiscount": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Discount"
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          },
          "creditExplorerDealGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "successFeeTypeEnum": {
            "enum": [
              "None",
              "Flat",
              "Tiered"
            ],
            "type": "string"
          },
          "subscriptionFrequencyEnum": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "platformAccessPaymentScheduleEnum": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          },
          "productName": {
            "type": "string",
            "readOnly": true
          },
          "paymentTermsComplete": {
            "type": "boolean",
            "readOnly": true
          },
          "canDelete": {
            "type": "boolean",
            "readOnly": true
          },
          "directLenderIntroProduct": {
            "type": "boolean",
            "readOnly": true
          },
          "hasSuccessFeeCap": {
            "type": "boolean",
            "readOnly": true
          },
          "hasMinimumSuccessFee": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ProductSubscriptionLoanAgreement": {
        "type": "object",
        "properties": {
          "productSubscriptionLoanAgreementId": {
            "type": "integer",
            "format": "int64"
          },
          "productSubscriptionLoanAgreementGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "loanAgreementId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "unitCost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isOriginal": {
            "type": "boolean"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "assignedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isImplementationPurchased": {
            "type": "boolean",
            "nullable": true
          },
          "loanAgreement": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanAgreement"
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ProductSubscriptionPaymentTerm": {
        "type": "object",
        "properties": {
          "productSubscriptionPaymentTermId": {
            "type": "integer",
            "format": "int64"
          },
          "productSubscriptionPaymentTermGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "numberOfDays": {
            "type": "integer",
            "format": "int32"
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ProductSubscriptionSuccessFeeTier": {
        "type": "object",
        "properties": {
          "productSubscriptionSuccessFeeTierId": {
            "type": "integer",
            "format": "int64"
          },
          "productSubscriptionSuccessFeeTierGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.ProductSubscriptionTerm": {
        "type": "object",
        "properties": {
          "productSubscriptionTermId": {
            "type": "integer",
            "format": "int64"
          },
          "productSubscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "subscriptionTermGuid": {
            "type": "string",
            "format": "uuid"
          },
          "isCancelled": {
            "type": "boolean"
          },
          "cancellationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancellationReasonId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "otherReason": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "cancellationReason": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CancellationReason"
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Invoice"
            }
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ProductSubscription"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.QuestionCategory": {
        "type": "object",
        "properties": {
          "questionCategoryId": {
            "type": "integer",
            "format": "int64"
          },
          "questionCategoryGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "categoryName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "indexOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyQuestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyQuestion"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.QueueRecalculateStructureJob": {
        "type": "object",
        "properties": {
          "queueRecalculateStructureJobId": {
            "type": "integer",
            "format": "int64"
          },
          "queueRecalculateStructureJobGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "complimentaryAnalysisId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "processedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "complimentaryAnalysis": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.RawLeadDealAudit": {
        "type": "object",
        "properties": {
          "auditId": {
            "type": "integer",
            "format": "int64"
          },
          "auditGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "auditType": {
            "type": "integer",
            "format": "int32"
          },
          "previousValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "changedOn": {
            "type": "string",
            "format": "date-time"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.RawLeadInterest": {
        "type": "object",
        "properties": {
          "rawLeadInterestId": {
            "type": "integer",
            "format": "int64"
          },
          "rawLeadInterestGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealId": {
            "type": "integer",
            "format": "int64"
          },
          "bankContactId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "isInterested": {
            "type": "boolean",
            "nullable": true
          },
          "borrowerInterestedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "borrowerStatus": {
            "type": "integer",
            "format": "int32"
          },
          "rawLeadStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rawLeadDeclineReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lenderResponseOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "bankContact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContact"
          },
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
          },
          "lenderDealExclusivities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderDealExclusivity"
            }
          },
          "companyName": {
            "type": "string",
            "readOnly": true
          },
          "contactName": {
            "type": "string",
            "readOnly": true
          },
          "requestAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "borrowerStatusEnum": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested",
              "PendingLender"
            ],
            "type": "string"
          },
          "bankName": {
            "type": "string",
            "readOnly": true
          },
          "bankContactName": {
            "type": "string",
            "readOnly": true
          },
          "bankContactEmail": {
            "type": "string",
            "readOnly": true
          },
          "lenderName": {
            "type": "string",
            "readOnly": true
          },
          "tier1BankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          },
          "rawLeadStatusEnum": {
            "enum": [
              "Connected",
              "TermSheetIssued",
              "Funded",
              "ClosedOut",
              "NoResponse",
              "Underwriting"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "rawLeadDeclineReasonEnum": {
            "enum": [
              "Credit",
              "DealStructure",
              "BorrowerDeclined",
              "BorrowerUnresponsive",
              "Other",
              "FinancingNoLongerNeeded"
            ],
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "inviteStatus": {
            "enum": [
              "PendingResponse",
              "Interested",
              "NotInterested"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.SingleSignOnTemplate": {
        "type": "object",
        "properties": {
          "singleSignOnTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "singleSignOnTemplateGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "templateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "subdomain": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "identityProviderIdentifier": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "logoutUrl": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "relayUrl": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "samlSingleSignOnUrl": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "samlSingleLogoutUrl": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "samlSigningCertificate": {
            "type": "string",
            "nullable": true
          },
          "samlSigningCertificate2": {
            "type": "string",
            "nullable": true
          },
          "samlSignAuthnRequest": {
            "type": "boolean"
          },
          "samlSloEnabled": {
            "type": "boolean"
          },
          "samlAcsUrl": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "samlEnabled": {
            "type": "boolean"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "company": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Company"
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
            }
          },
          "templateTypeEnum": {
            "enum": [
              "Unset",
              "Company",
              "Bank"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUpload": {
        "type": "object",
        "properties": {
          "stagedDataRoomTaskUploadId": {
            "type": "integer",
            "format": "int64"
          },
          "stagedDataRoomTaskUploadGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomId": {
            "type": "integer",
            "format": "int64"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diligenceType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dataRoom": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
          },
          "dataRoomUser": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
          },
          "stagedDataRoomTaskUploadItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUploadItem"
            }
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "diligenceTypeEnum": {
            "enum": [
              "DocumentRequest",
              "Question"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUploadItem": {
        "type": "object",
        "properties": {
          "stagedDataRoomTaskUploadItemId": {
            "type": "integer",
            "format": "int64"
          },
          "stagedDataRoomTaskUploadItemGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "stagedDataRoomTaskUploadId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "title": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "dataRoomDocumentFolderId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataRoomDocumentFolder": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentFolder"
          },
          "stagedDataRoomTaskUpload": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUpload"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.State": {
        "type": "object",
        "properties": {
          "stateId": {
            "type": "integer",
            "format": "int64"
          },
          "stateCode": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "stateName": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankOffice"
            }
          },
          "companyOffices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyOffice"
            }
          },
          "companySubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanySubscription"
            }
          },
          "complimentaryAnalysisAcquisitionStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "complimentaryAnalysisStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "country": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Country"
          },
          "dealAcquisitionStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealGeographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealGeography"
            }
          },
          "dealMatchingLenderStatAcquisitionGeographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat"
            }
          },
          "dealMatchingLenderStatGeographies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealMatchingLenderStat"
            }
          },
          "dealStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "employeeContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeContact"
            }
          },
          "invoiceContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.InvoiceContact"
            }
          },
          "postalCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PostalCode"
            }
          },
          "targetStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetState"
            }
          },
          "countryName": {
            "type": "string",
            "readOnly": true
          },
          "countryCode": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.SuccessFeeTier": {
        "type": "object",
        "properties": {
          "successFeeTierId": {
            "type": "integer",
            "format": "int64"
          },
          "productId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "successFeeTierGuid": {
            "type": "string",
            "format": "uuid"
          },
          "basisPoints": {
            "type": "integer",
            "format": "int32"
          },
          "lowerFundingAmount": {
            "type": "number",
            "format": "double"
          },
          "upperFundingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isDefault": {
            "type": "integer",
            "format": "int32"
          },
          "product": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Product"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TargetDealType": {
        "type": "object",
        "properties": {
          "targetDealTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dealType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "dealTypeEnum": {
            "enum": [
              "Unknown",
              "RealEstate",
              "WorkingCapital",
              "Buyout",
              "Dividend",
              "Refinancing",
              "EquipmentLeasing",
              "InvestmentRealEstate",
              "Acquisitions",
              "SoftwareLeasing",
              "RetailInventory",
              "GrowthCapital",
              "Recapitalizations",
              "SupplyChain",
              "RescueFinancing",
              "ProjectFinance",
              "AcquisitionAddon",
              "AcquisitionPartnerBuyout",
              "AcquisitionManagementBuyout",
              "Other"
            ],
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TargetIndustry": {
        "type": "object",
        "properties": {
          "targetIndustryId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isSpecialty": {
            "type": "boolean",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "industry": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Industry"
          },
          "industryName": {
            "type": "string",
            "readOnly": true
          },
          "industryGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "isSpecialtyNotNull": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TargetPostalCode": {
        "type": "object",
        "properties": {
          "targetPostalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "targetPostalCodeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "postalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "milesRadius": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "postalCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PostalCode"
          },
          "targetPostalCodeMatches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCodeMatch"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TargetPostalCodeMatch": {
        "type": "object",
        "properties": {
          "targetPostalCodeMatchId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64"
          },
          "targetPostalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "postalCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "postalCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.PostalCode"
          },
          "targetPostalCode": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TargetPostalCode"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TargetState": {
        "type": "object",
        "properties": {
          "targetStateId": {
            "type": "integer",
            "format": "int64"
          },
          "bankDealProfileId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "bankDealProfile": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfile"
          },
          "state": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.State"
          },
          "stateCode": {
            "type": "string",
            "readOnly": true
          },
          "stateName": {
            "type": "string",
            "readOnly": true
          },
          "countryCode": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetCondition": {
        "type": "object",
        "properties": {
          "termSheetConditionId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetConditionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionId": {
            "type": "integer",
            "format": "int64"
          },
          "conditionTypeId": {
            "type": "integer",
            "format": "int64"
          },
          "conditionText": {
            "type": "string"
          },
          "conditionType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ConditionType"
          },
          "dataRoomTermSheetRevision": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacility": {
        "type": "object",
        "properties": {
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionId": {
            "type": "integer",
            "format": "int64"
          },
          "highEndAmount": {
            "type": "number",
            "format": "double"
          },
          "facilityType": {
            "type": "integer",
            "format": "int32"
          },
          "highEndInterestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "baseRate": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "baseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "highEndMaturity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isAccordion": {
            "type": "boolean",
            "nullable": true
          },
          "accordionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ioPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amortizationStructure": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facilityAmortizationPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ecfSweep": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "baseRateFloor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterest": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pikInterestCompounded": {
            "type": "boolean",
            "nullable": true
          },
          "pikInterestPeriod": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "structureTranche": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "leaseRateFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "leaseResidual": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exerciseLeaseResidual": {
            "type": "boolean",
            "nullable": true
          },
          "rateType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "requiresDeposit": {
            "type": "boolean",
            "nullable": true
          },
          "depositRefundType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "depositAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facilityFactorType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "leasePaymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isInterestOnlyPeriod": {
            "type": "boolean",
            "nullable": true
          },
          "interestOnlyPeriodDuration": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "otherBaseRateName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "otherBaseRateValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "feesProvided": {
            "type": "boolean",
            "nullable": true
          },
          "pricingComments": {
            "type": "string",
            "nullable": true
          },
          "amortizationPeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hasGracePeriod": {
            "type": "boolean",
            "nullable": true
          },
          "gracePeriodLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gracePeriodLengthType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isDemandLine": {
            "type": "boolean",
            "nullable": true
          },
          "maturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "termMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankContactSubscriptionFacilityInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityInterest"
            }
          },
          "bankContactSubscriptionFacilityViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionFacilityView"
            }
          },
          "dataRoomTermSheetRevision": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
          },
          "lenderTermSheetFacilityMatchings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LenderTermSheetFacilityMatching"
            }
          },
          "termSheetFacilityCollaterals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityCollateral"
            }
          },
          "termSheetFacilityFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityFee"
            }
          },
          "termSheetFacilityPainPoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
            }
          },
          "itemIdentifier": {
            "type": "string",
            "readOnly": true
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "readOnly": true
          },
          "painPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
          },
          "hasTermSheetFacilityPainPoint": {
            "type": "boolean",
            "readOnly": true
          },
          "structureTrancheEnum": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string",
            "nullable": true
          },
          "facilityFactorTypeEnum": {
            "enum": [
              "NotApplicable",
              "RateFactor",
              "PaymentAmount"
            ],
            "type": "string"
          },
          "interestOnlyPeriodDurationEnum": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string"
          },
          "amortizationStructureEnum": {
            "enum": [
              "None",
              "StraightLine",
              "Mortgage",
              "Custom"
            ],
            "type": "string"
          },
          "facilityAmortizationPeriodEnum": {
            "enum": [
              "Monthly",
              "Quarterly",
              "SemiAnnually",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "gracePeriodLengthTypeEnum": {
            "enum": [
              "Months",
              "Years"
            ],
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacilityCollateral": {
        "type": "object",
        "properties": {
          "termSheetFacilityCollateralId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityCollateralGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "collateralSecurityType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "advancedRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "availabilityLimitType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "otherAvailabilityLimit": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacilityFee": {
        "type": "object",
        "properties": {
          "termSheetFacilityFeeId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityFeeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "feeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "feeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetFeeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "termSheetFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "feeFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "feeNotes": {
            "type": "string",
            "nullable": true
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          },
          "termSheetFee": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFee"
          },
          "feeFrequencyEnum": {
            "enum": [
              "OneTimeUpfront",
              "OneTimeBackend",
              "Monthly",
              "Quarterly",
              "Annually"
            ],
            "type": "string",
            "nullable": true
          },
          "termSheetFeeGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint": {
        "type": "object",
        "properties": {
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityPainPointGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFacilityId": {
            "type": "integer",
            "format": "int64"
          },
          "maturityDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "personalGuarantee": {
            "type": "boolean"
          },
          "personalGuaranteeText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "interestRate": {
            "type": "boolean"
          },
          "interestRateText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenants": {
            "type": "boolean"
          },
          "covenantsText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "maturity": {
            "type": "boolean"
          },
          "maturityText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "amortization": {
            "type": "boolean"
          },
          "amortizationText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "loanAmount": {
            "type": "boolean"
          },
          "loanAmountText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "prepaymentFees": {
            "type": "boolean"
          },
          "prepaymentFeesText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "advanceRateAgainstCollateral": {
            "type": "boolean"
          },
          "advanceRateAgainstCollateralText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "collateralRequirements": {
            "type": "boolean"
          },
          "collateralRequirementsText": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "otherDetails": {
            "type": "string",
            "nullable": true
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "bankContactSubscriptionPainPointInterests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointInterest"
            }
          },
          "bankContactSubscriptionPainPointViews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankContactSubscriptionPainPointView"
            }
          },
          "termSheetFacility": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacility"
          },
          "termSheetFacilityPainPointExcludedLenders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPointExcludedLender"
            }
          },
          "termSheetFacilityPainPointFinancialAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPointFinancialAudit"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPointExcludedLender": {
        "type": "object",
        "properties": {
          "termSheetFacilityPainPointExcludedLenderId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityPainPointExcludedLenderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64"
          },
          "bankId": {
            "type": "integer",
            "format": "int64"
          },
          "isIncumbentLender": {
            "type": "boolean"
          },
          "bank": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Bank"
          },
          "termSheetFacilityPainPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
          },
          "bankName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPointFinancialAudit": {
        "type": "object",
        "properties": {
          "termSheetFacilityPainPointFinancialAuditId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFacilityPainPointFinancialAuditGuid": {
            "type": "string",
            "format": "uuid"
          },
          "termSheetFacilityPainPointId": {
            "type": "integer",
            "format": "int64"
          },
          "financialsAsOfDate": {
            "type": "string",
            "format": "date"
          },
          "ttmRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ttmEbitda": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mrr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "existingDebt": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetAr": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetInventory": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetEquipment": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRealEstate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFurnitureFixtures": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetVehicles": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetMarineVessels": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetHelicopters": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetFixedWingAircrafts": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetRoyalty": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "balanceSheetIp": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termSheetFacilityPainPoint": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityPainPoint"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFee": {
        "type": "object",
        "properties": {
          "termSheetFeeId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFeeGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "feeName": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isTermLoan": {
            "type": "boolean",
            "nullable": true
          },
          "isRevolver": {
            "type": "boolean",
            "nullable": true
          },
          "isLease": {
            "type": "boolean",
            "nullable": true
          },
          "termSheetFeeType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "feeFrequency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "excludedFromCostOfCapital": {
            "type": "boolean",
            "nullable": true
          },
          "isPrePaymentFee": {
            "type": "boolean",
            "nullable": true
          },
          "termSheetFacilityFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.TermSheetFacilityFee"
            }
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFinancialCovenant": {
        "type": "object",
        "properties": {
          "termSheetFinancialCovenantId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFinancialCovenantGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTermSheetRevisionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantName": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "covenantTarget": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "financialCovenantTypeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "covenantTargetType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "covenantValueType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTargetDefined": {
            "type": "boolean",
            "nullable": true
          },
          "dataRoomTermSheetRevision": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
          },
          "financialCovenantType": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.FinancialCovenantType"
          },
          "covenantTargetTypeEnum": {
            "enum": [
              "GreaterThanOrEqual",
              "LessThanOrEqual",
              "GreaterThan",
              "LessThan",
              "Equals"
            ],
            "type": "string",
            "nullable": true
          },
          "covenantValueTypeEnum": {
            "enum": [
              "Numeric",
              "Percent",
              "Currency"
            ],
            "type": "string",
            "nullable": true
          },
          "financialCovenantTypeGuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "covenantTargetDisplay": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetFinancialReporting": {
        "type": "object",
        "properties": {
          "termSheetFinancialReportingId": {
            "type": "integer",
            "format": "int64"
          },
          "termSheetFinancialReportingGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dataRoomTermSheetRevisionId": {
            "type": "integer",
            "format": "int64"
          },
          "reportingQuality": {
            "type": "integer",
            "format": "int32"
          },
          "frequency": {
            "type": "integer",
            "format": "int32"
          },
          "daysToDeliver": {
            "type": "integer",
            "format": "int32"
          },
          "dataRoomTermSheetRevision": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.TermSheetToolResult": {
        "type": "object",
        "properties": {
          "itemIdentifier": {
            "type": "string",
            "nullable": true
          },
          "termSheetFacilityGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetRevisionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomTermSheetGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dataRoomGuid": {
            "type": "string",
            "format": "uuid"
          },
          "dealGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid"
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "bankType": {
            "enum": [
              "Commercial",
              "NonBank",
              "Other"
            ],
            "type": "string"
          },
          "facilityType": {
            "enum": [
              "Unknown",
              "Term_Loan",
              "Revolver",
              "Letter_of_Credit",
              "Line_of_Credit",
              "Bridge_Facility",
              "Syndicated_Facility",
              "EquipmentLease",
              "CapitalLease",
              "OperatingLease",
              "Bond",
              "Warehouse",
              "Factor",
              "PurchaseOrderFinancing"
            ],
            "type": "string"
          },
          "loanAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "receivedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collateralList": {
            "type": "string",
            "nullable": true
          },
          "collateralItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "rateType": {
            "enum": [
              "Fixed",
              "Float"
            ],
            "type": "string"
          },
          "interestCash": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRateType": {
            "enum": [
              "Unknown",
              "Percentage",
              "BasisPoints"
            ],
            "type": "string"
          },
          "feeAmount": {
            "type": "number",
            "format": "double"
          },
          "totalFees": {
            "type": "integer",
            "format": "int32"
          },
          "term": {
            "type": "number",
            "format": "double"
          },
          "amortizationStructure": {
            "type": "string",
            "nullable": true
          },
          "facilityAmortizationPeriod": {
            "type": "string",
            "nullable": true
          },
          "hasPersonalGuaranty": {
            "type": "boolean"
          },
          "warrantRequired": {
            "type": "boolean"
          },
          "warrantAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionManagerGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "transactionManager": {
            "type": "string",
            "nullable": true
          },
          "showBorrower": {
            "type": "boolean"
          },
          "showAcquisition": {
            "type": "boolean"
          },
          "industryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "industryName": {
            "type": "string",
            "nullable": true
          },
          "structureTranche": {
            "enum": [
              "SeniorCashFlow",
              "JuniorCashFlow",
              "VentureDebt",
              "Equity",
              "SeniorRealEstate",
              "JuniorRealEstate",
              "Sba7aRealEstate",
              "Sba7aNonRealEstate",
              "Sba504Senior",
              "Sba504Debenture",
              "UsdaBiRealEstate",
              "UsdaBiEquipment",
              "UsdaBiWorkingCapital",
              "AssetBasedWorkingCapitalAccountsReceivable",
              "AssetBasedWorkingCapitalInventory",
              "AssetBasedEquipmentMachinery",
              "AssetBasedEquipmentVehicles",
              "AssetBasedEquipmentMarine",
              "AssetBasedEquipmentHelicopters",
              "AssetBasedEquipmentAircraft",
              "AssetBasedIntangibleIntellectualProperty",
              "AssetBasedIntangibleRoyalty",
              "PoFinancing",
              "Factoring",
              "RecurringRevenue",
              "InventoryOnly",
              "LenderFinance",
              "FloorplanFinance",
              "AssetBasedWorkingCapitalArPlusInventory",
              "BridgeLoan",
              "Unknown"
            ],
            "type": "string"
          },
          "baseRate": {
            "enum": [
              "Other",
              "Libor30Day",
              "Libor60Day",
              "Libor90Day",
              "Prime",
              "Treasury",
              "Sofr"
            ],
            "type": "string"
          },
          "borrowerRevenue": {
            "type": "number",
            "format": "double"
          },
          "bankTypeName": {
            "type": "string",
            "nullable": true
          },
          "facilityTypeName": {
            "type": "string",
            "nullable": true
          },
          "interestRateTypeName": {
            "type": "string",
            "nullable": true
          },
          "structureTrancheName": {
            "type": "string",
            "nullable": true
          },
          "baseRateName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.User": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "personId": {
            "type": "integer",
            "format": "int64"
          },
          "verificationToken": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "isVerified": {
            "type": "boolean"
          },
          "role": {
            "type": "integer",
            "format": "int32"
          },
          "passwordResetKey": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "passwordResetExpiration": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastLogin": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "failedAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lockedOutOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentSessionHash": {
            "type": "string",
            "nullable": true
          },
          "userGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "employeeCommunicationPermissionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cryptPassword": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isTransactionManager": {
            "type": "boolean",
            "nullable": true
          },
          "canAccessRestrictedCompanies": {
            "type": "boolean",
            "nullable": true
          },
          "singleSignOnTemplateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "merchantCustomerProfileId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isLenderRelationsManager": {
            "type": "boolean",
            "nullable": true
          },
          "lastAcceptedSupplementalTermsDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totpSecretKey": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mfaPhoneNumber": {
            "maxLength": 25,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mfaGracePeriodExpiration": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "existingUserPriorToEnablingMfa": {
            "type": "boolean"
          },
          "isAuthorizedContractSigner": {
            "type": "boolean"
          },
          "isAuthorizedContractSender": {
            "type": "boolean"
          },
          "isSalesRep": {
            "type": "boolean"
          },
          "passwordMigratedToV4entropy": {
            "type": "boolean"
          },
          "isComplianceEmployee": {
            "type": "boolean"
          },
          "applicationErrorAffectedUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApplicationError"
            }
          },
          "applicationErrorModifiedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApplicationError"
            }
          },
          "applicationErrorOwnerUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ApplicationError"
            }
          },
          "bankDealProfileAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.BankDealProfileAudit"
            }
          },
          "companyContactUserAuditChangedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContactUserAudit"
            }
          },
          "companyContactUserAuditUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyContactUserAudit"
            }
          },
          "companyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyDocument"
            }
          },
          "companyEventOccurrences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CompanyEventOccurrence"
            }
          },
          "complimentaryAnalyses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ComplimentaryAnalysis"
            }
          },
          "covenantComplianceReports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CovenantComplianceReport"
            }
          },
          "creditFacilityAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.CreditFacilityAudit"
            }
          },
          "dataRoomAccessRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomAccessRecord"
            }
          },
          "dataRoomDiligenceRequestCreatedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
            }
          },
          "dataRoomDiligenceRequestFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequestFile"
            }
          },
          "dataRoomDiligenceRequestUpdatedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDiligenceRequest"
            }
          },
          "dataRoomDocumentDownloads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDocumentDownload"
            }
          },
          "dataRoomDownloadRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomDownloadRequest"
            }
          },
          "dataRoomEmailRecipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomEmailRecipient"
            }
          },
          "dataRoomEmails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomEmail"
            }
          },
          "dataRoomNoteCreatedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomNote"
            }
          },
          "dataRoomNoteLenderUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomNote"
            }
          },
          "dataRoomTaskAssignedUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
            }
          },
          "dataRoomTaskCreatedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTask"
            }
          },
          "dataRoomTaskFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTaskFile"
            }
          },
          "dataRoomTeaserDeletedByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomTeaserSentByUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomTeaserUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTeaser"
            }
          },
          "dataRoomTermSheetRevisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomTermSheetRevision"
            }
          },
          "dataRoomUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoomUser"
            }
          },
          "dataRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DataRoom"
            }
          },
          "dealLenderRelationsManagerUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealSalesRepUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealSecondaryTransactionManagerUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "dealTransactionManagerUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Deal"
            }
          },
          "employeeCommunicationPermission": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeCommunicationPermission"
          },
          "employeeCompanyPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeCompanyPermission"
            }
          },
          "employeeDataRoomPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EmployeeDataRoomPermission"
            }
          },
          "enterpriseLoanWatchSubscriptionAudits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscriptionAudit"
            }
          },
          "enterpriseLoanWatchSubscriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.EnterpriseLoanWatchSubscription"
            }
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Job"
            }
          },
          "loanWatchTreasuryReferralStatusStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferralStatusStat"
            }
          },
          "loanWatchTreasuryReferrals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.LoanWatchTreasuryReferral"
            }
          },
          "nonFinancialCovenantUploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.NonFinancialCovenantUpload"
            }
          },
          "person": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.Person"
          },
          "singleSignOnTemplate": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.SingleSignOnTemplate"
          },
          "stagedDataRoomTaskUploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.StagedDataRoomTaskUpload"
            }
          },
          "userControlledObjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.UserControlledObject"
            }
          },
          "dealPartnerReferralCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.DealPartnerReferralCode"
            }
          },
          "hasConfiguredTotp": {
            "type": "boolean",
            "readOnly": true
          },
          "setupMfaUsingPhone": {
            "type": "boolean",
            "readOnly": true
          },
          "isBankUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isTeamMemberUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isCompanyUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isEmployeeUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isTransactionManagerUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isLenderRelationsManagerUser": {
            "type": "boolean",
            "readOnly": true
          },
          "isTemporaryLockOut": {
            "type": "boolean",
            "readOnly": true
          },
          "roleEnum": {
            "enum": [
              "None",
              "CompanyUser",
              "BankUser",
              "TeamMember",
              "Employee",
              "Consultant",
              "DealPartner"
            ],
            "type": "string"
          },
          "accessRestrictedCompaniesPermission": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Entities.UserControlledObject": {
        "type": "object",
        "properties": {
          "userControlledObjectId": {
            "type": "integer",
            "format": "int64"
          },
          "userControlledObjectGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "controlledObjectId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "hasAccess": {
            "type": "boolean",
            "nullable": true
          },
          "controlledObject": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.ControlledObject"
          },
          "user": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Data.Entities.User"
          },
          "controlledObjectType": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "type": {
            "enum": [
              "ManageUserAccount",
              "SingleSignOnTemplates",
              "ResetCovenants",
              "MilestoneDefaults",
              "ResetCompanyFinancials",
              "LoanPurposeFacilities",
              "EditInvoices",
              "NaicsCodes",
              "LoanApplicationForm",
              "TaskChecklistInformation",
              "ApplicationSettings",
              "ManageIndustries",
              "AccessDealPartners",
              "AccessLoanAssessments",
              "AccessDataRooms",
              "ManageLenderProfiles",
              "AccessBorrowerProfiles",
              "AccessSubscriptions",
              "MatchingConfiguration",
              "UpdateHubSpotId",
              "ApplicationErrors",
              "ManageExecutiveSummary",
              "TermSheetFee",
              "ManageViewJobs",
              "FinancialCovenantType",
              "BankAccountManagement",
              "DataSubscriptions",
              "EmployeeReports",
              "ManageProducts",
              "ChatRules",
              "EditClosedFundedDeals",
              "SendPreMarketDealEmails",
              "ManageAISourceDocuments",
              "ManageProspectPrompt",
              "ManageDealAgent"
            ],
            "type": "string",
            "readOnly": true
          },
          "userHasAccess": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.EntityExtensions.CreateSimilarDealTermSheetReportResult": {
        "type": "object",
        "properties": {
          "termSheetReportHeaderGuid": {
            "type": "string",
            "format": "uuid"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Models.CompanyContactUserAuditModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "jobTitle": {
            "type": "string"
          },
          "isActive": {
            "type": "string"
          },
          "isLockedOut": {
            "type": "string"
          },
          "userAdministrator": {
            "type": "string"
          },
          "covenantEntry": {
            "type": "string"
          },
          "covenantApprovalFinal": {
            "type": "string"
          },
          "covenantReportSignature": {
            "type": "string"
          },
          "financialDataEntry": {
            "type": "string"
          },
          "financialDataApproval": {
            "type": "string"
          },
          "receiveCovenantReminderEmails": {
            "type": "string"
          },
          "viewForecastData": {
            "type": "string"
          },
          "createCreditSearch": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Models.SelectedItemDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "selected": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Data.Models.Tier3ContactTypeDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "annualRevenue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "tier_1_Focus_Area_Company_": {
            "type": "string",
            "nullable": true
          },
          "tier_2_Focus_Area_Company_": {
            "type": "string",
            "nullable": true
          },
          "under_Nda_": {
            "type": "string",
            "nullable": true
          },
          "nda_Effective_Date": {
            "type": "string",
            "nullable": true
          },
          "nda_Termination_Date": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "hs_Content_Membership_Status": {
            "type": "string",
            "nullable": true
          },
          "hs_Analytics_Source": {
            "type": "string",
            "nullable": true
          },
          "lead_Source": {
            "type": "string",
            "nullable": true
          },
          "utm_Campaign": {
            "type": "string",
            "nullable": true
          },
          "utm_Id": {
            "type": "string",
            "nullable": true
          },
          "utm_Source": {
            "type": "string",
            "nullable": true
          },
          "utm_Medium": {
            "type": "string",
            "nullable": true
          },
          "utm_Term": {
            "type": "string",
            "nullable": true
          },
          "utm_MatchType": {
            "type": "string",
            "nullable": true
          },
          "utm_Network": {
            "type": "string",
            "nullable": true
          },
          "utm_Creative": {
            "type": "string",
            "nullable": true
          },
          "utm_Content": {
            "type": "string",
            "nullable": true
          },
          "tier_1_Focus_Area": {
            "type": "string",
            "nullable": true
          },
          "tier_2_Focus_Area": {
            "type": "string",
            "nullable": true
          },
          "tier_3_Focus_Areas": {
            "type": "string",
            "nullable": true
          },
          "my_Company": {
            "type": "string",
            "nullable": true
          },
          "which_Products_Services_Are_You_Interested_In_": {
            "type": "string",
            "nullable": true
          },
          "hs_Legal_Basis": {
            "type": "string",
            "nullable": true
          },
          "lender_Profile_Status": {
            "type": "string",
            "nullable": true
          },
          "last_Login_Date": {
            "type": "string",
            "nullable": true
          },
          "date_Added_On_Platform": {
            "type": "string",
            "nullable": true
          },
          "referral_Program_Link": {
            "type": "string",
            "nullable": true
          },
          "under_Nda_": {
            "type": "string",
            "nullable": true
          },
          "nda_Effective_Date": {
            "type": "string",
            "nullable": true
          },
          "nda_Termination_Date": {
            "type": "string",
            "nullable": true
          },
          "lender_Status___Active_Inactive": {
            "type": "string",
            "nullable": true
          },
          "refcompany": {
            "type": "string",
            "nullable": true
          },
          "ref": {
            "type": "string",
            "nullable": true
          },
          "refemail": {
            "type": "string",
            "nullable": true
          },
          "analysis_Link": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "annualRevenue": {
            "type": "string",
            "nullable": true
          },
          "ebitda": {
            "type": "string",
            "nullable": true
          },
          "accounts_Receivable_Amount": {
            "type": "string",
            "nullable": true
          },
          "equipment_Amount": {
            "type": "string",
            "nullable": true
          },
          "inventory_Amount": {
            "type": "string",
            "nullable": true
          },
          "real_Estate_Amount": {
            "type": "string",
            "nullable": true
          },
          "loan_Amount_Estimated_Range": {
            "type": "string",
            "nullable": true
          },
          "how_Much_Financing_Are_You_Seeking_Exact_Number": {
            "type": "string",
            "nullable": true
          },
          "cerebro_Lender": {
            "type": "boolean",
            "nullable": true
          },
          "in_Diligence_Phase": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties": {
        "type": "object",
        "properties": {
          "loan_Assessment_Start_Date": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Submit_Date": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Status": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Loan_Size": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Url": {
            "type": "string",
            "nullable": true
          },
          "selected_Tranche": {
            "type": "string",
            "nullable": true
          },
          "ttm_Revenue": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Accepted_Date": {
            "type": "string",
            "nullable": true
          },
          "service_engagement_associated_record_id": {
            "type": "string",
            "nullable": true
          },
          "credit_Explorer_Deal_Size": {
            "type": "string",
            "nullable": true
          },
          "credit_Explorer_Data_Room_Url": {
            "type": "string",
            "nullable": true
          },
          "transactions_Manager": {
            "type": "string",
            "nullable": true
          },
          "credit_Explorer_Selected_Debt_Tranche": {
            "type": "string",
            "nullable": true
          },
          "credit_Explorer_Ttm_Revenue": {
            "type": "string",
            "nullable": true
          },
          "number_Of_Term_Sheets_Received": {
            "type": "string",
            "nullable": true
          },
          "deal_Launch_Date": {
            "type": "string",
            "nullable": true
          },
          "term_Sheet_Date": {
            "type": "string",
            "nullable": true
          },
          "underwriting_Approval_Date": {
            "type": "string",
            "nullable": true
          },
          "term_Sheet_Executed_Date": {
            "type": "string",
            "nullable": true
          },
          "closed_Lost_Reason": {
            "type": "string",
            "nullable": true
          },
          "closed_Lost_Commentary": {
            "type": "string",
            "nullable": true
          },
          "premarket_Interested_Lenders": {
            "type": "string",
            "nullable": true
          },
          "acquisition_Loan": {
            "type": "string",
            "nullable": true
          },
          "pipeline": {
            "type": "string",
            "nullable": true
          },
          "dealStage": {
            "type": "string",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "loan_Size": {
            "type": "string",
            "nullable": true
          },
          "broker___Deal_Partner_Deal": {
            "type": "string",
            "nullable": true
          },
          "is_This_A_Marketplace_Deal_": {
            "type": "string",
            "nullable": true
          },
          "borrower_Pay_Success_Fee": {
            "type": "string",
            "nullable": true
          },
          "lender_Pay_Success_Fee": {
            "type": "string",
            "nullable": true
          },
          "is_Raw_Lead": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Started_By": {
            "type": "string",
            "nullable": true
          },
          "loan_Assessment_Submitted_By": {
            "type": "string",
            "nullable": true
          },
          "credit_Explorer_Loan_Application_Url": {
            "type": "string",
            "nullable": true
          },
          "first_Engagement_Sent_Date": {
            "type": "string",
            "nullable": true
          },
          "latest_Engagement_Sent_Date": {
            "type": "string",
            "nullable": true
          },
          "latest_Engagement_Viewed_Date": {
            "type": "string",
            "nullable": true
          },
          "ebitda": {
            "type": "string",
            "nullable": true
          },
          "accounts_Receivable_Amount": {
            "type": "string",
            "nullable": true
          },
          "existing_Debt": {
            "type": "string",
            "nullable": true
          },
          "inventory_Amount": {
            "type": "string",
            "nullable": true
          },
          "equipment_Amount": {
            "type": "string",
            "nullable": true
          },
          "real_Estate_Amount": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "loi_Signed": {
            "type": "string",
            "nullable": true
          },
          "cash_Equity_For_Acquisition": {
            "type": "string",
            "nullable": true
          },
          "marketplace_Number_Of_Interested_Lenders": {
            "type": "string",
            "nullable": true
          },
          "marketplace_Number_Of_Borrower_Lender_Connects": {
            "type": "string",
            "nullable": true
          },
          "marketplace_Latest_Interested_Lender_Date": {
            "type": "string",
            "nullable": true
          },
          "marketplace_Latest_Borrower_Lender_Connect_Date": {
            "type": "string",
            "nullable": true
          },
          "marketplace_Lender_Invite_Limit": {
            "type": "string",
            "nullable": true
          },
          "platform_Access_Fee": {
            "type": "string",
            "nullable": true
          },
          "recurring_Platform_Access_Fee": {
            "type": "string",
            "nullable": true
          },
          "success_Fee": {
            "type": "string",
            "nullable": true
          },
          "lender_Success_Fee": {
            "type": "string",
            "nullable": true
          },
          "platform_Access_Fee_Paid": {
            "type": "string",
            "nullable": true
          },
          "success_Fee_Paid": {
            "type": "string",
            "nullable": true
          },
          "annual_Subscription_Fee": {
            "type": "string",
            "nullable": true
          },
          "annual_Subscription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.HubSpotCompanyProperties"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.HubSpotContactPropertiesDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties, Cerebro.Api.Shared.HubSpot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.HubSpot.Models.HubSpotDealProperties"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.Decimal, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.SingleValueRequestDto`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.HubSpot.Models.UpsertContactResponseDto": {
        "type": "object",
        "properties": {
          "hubSpotCompanyId": {
            "type": "string"
          },
          "hubSpotContactId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentDto": {
        "required": [
          "amount",
          "paymentDate",
          "paymentGuid",
          "paymentType"
        ],
        "type": "object",
        "properties": {
          "paymentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "paymentType": {
            "enum": [
              "CreditCard",
              "Check",
              "WireTransfer",
              "Cash",
              "WriteOff"
            ],
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date"
          },
          "details": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.ApplyPaymentResponseDto": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "paymentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.BankAccountDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "receivingBank": {
            "type": "string",
            "nullable": true
          },
          "bankAba": {
            "type": "string",
            "nullable": true
          },
          "beneficiary": {
            "type": "string",
            "nullable": true
          },
          "beneficiaryAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "swiftBic": {
            "type": "string",
            "nullable": true
          },
          "noteText": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.CustomPaymentScheduleFormDto": {
        "required": [
          "balanceDue",
          "dueDate"
        ],
        "type": "object",
        "properties": {
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.EmployeeSendInvoiceDto": {
        "required": [
          "contacts",
          "emailBody",
          "fromEmailAddress",
          "organizationName",
          "subject"
        ],
        "type": "object",
        "properties": {
          "organizationName": {
            "type": "string"
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactEmailDto"
            }
          },
          "billingEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "includeBillingAddress": {
            "type": "boolean",
            "readOnly": true
          },
          "subject": {
            "type": "string"
          },
          "emailBody": {
            "type": "string"
          },
          "fromEmailAddress": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceBankContactSubscriptionRelationshipDto": {
        "required": [
          "productName",
          "subscriptionFrequency"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "contactGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "productName": {
            "type": "string"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceCompanySubscriptionRelationshipDto": {
        "required": [
          "productName"
        ],
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "companyGuid": {
            "type": "string",
            "format": "uuid"
          },
          "productName": {
            "type": "string"
          },
          "startedOn": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "dealStatus": {
            "enum": [
              "Pending",
              "Active",
              "Renewed",
              "Canceled",
              "Inactive"
            ],
            "type": "string"
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceContactDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "middleInitial": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullname": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "contactPhone": {
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "stateCode": {
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "countryName": {
            "type": "string",
            "nullable": true
          },
          "cityStateZip": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceContactEmailDto": {
        "required": [
          "contactName"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "contactName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceContactFormDto": {
        "required": [
          "city",
          "contactEmail",
          "countryId",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "middleInitial": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string"
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "countryId": {
            "type": "integer",
            "format": "int64"
          },
          "stateId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceDataSubscriptionRelationshipDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "contractDate": {
            "type": "string",
            "format": "date-time"
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceDealRelationshipDto": {
        "type": "object",
        "properties": {
          "dealGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "dealName": {
            "type": "string",
            "nullable": true
          },
          "totalRequestedAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceDetailsFormDto": {
        "required": [
          "bankAccountGuid",
          "invoiceDate",
          "invoiceType",
          "paymentOptionType",
          "paymentScheduleType"
        ],
        "type": "object",
        "properties": {
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "bankAccountGuid": {
            "type": "string",
            "format": "uuid"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceDto": {
        "required": [
          "invoiceIdDisplay"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceIdDisplay": {
            "type": "string"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankAccountGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "invoiceAmount": {
            "type": "number",
            "format": "double"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "nextBalanceDue": {
            "type": "number",
            "format": "double"
          },
          "invoiceFileName": {
            "type": "string",
            "nullable": true
          },
          "lastSentToCompany": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invoiceType": {
            "enum": [
              "OtherFee",
              "CreditExplorer",
              "ComplianceNavigator",
              "Addon",
              "LenderSubscription",
              "CompanySubscription",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "SbaPpp",
              "CreditMemo"
            ],
            "type": "string"
          },
          "invoiceStage": {
            "enum": [
              "Pending",
              "Approved"
            ],
            "type": "string"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          },
          "receivingBank": {
            "type": "string",
            "nullable": true
          },
          "customerName": {
            "type": "string",
            "nullable": true
          },
          "isCreditMemo": {
            "type": "boolean"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "paymentScheduleMatchesInvoiceAmount": {
            "type": "boolean"
          },
          "canEditPaymentSchedule": {
            "type": "boolean"
          },
          "canEditCustomPaymentSchedule": {
            "type": "boolean"
          },
          "showCustomPaymentScheduleError": {
            "type": "boolean"
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemDto"
            },
            "nullable": true
          },
          "paymentSchedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.PaymentScheduleItemDto"
            },
            "nullable": true
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoicePaymentDto"
            },
            "nullable": true
          },
          "contact": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceContactDto"
          },
          "relationships": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceRelationShipDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceEnterpriseLoanWatchSubscriptionRelationshipDto": {
        "type": "object",
        "properties": {
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "bankGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "lineNumber": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceLineItemType": {
            "enum": [
              "OneTime",
              "Recurring"
            ],
            "type": "string"
          },
          "itemDate": {
            "type": "string",
            "format": "date"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "unitPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "subTotal": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "discountAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lineItemGuid": {
            "type": "string",
            "format": "uuid"
          },
          "revenueType": {
            "enum": [
              "SetupFee",
              "TermSheetFee",
              "SuccessFee",
              "SubscriptionFee",
              "CancellationFee",
              "AddonFee",
              "CompanySubscription",
              "AdditionalDealFee",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "ComplianceNavigatorSubscription",
              "ComplianceNavigatorOnboarding",
              "CreditMemo",
              "Other"
            ],
            "type": "string"
          },
          "summaryLines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceLineItemFormDto": {
        "required": [
          "invoiceLineItemType",
          "itemDate",
          "lineNumber",
          "quantity",
          "revenueType",
          "summary",
          "unitPrice"
        ],
        "type": "object",
        "properties": {
          "lineNumber": {
            "type": "integer",
            "format": "int32"
          },
          "summary": {
            "type": "string"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "itemDate": {
            "type": "string",
            "format": "date-time"
          },
          "revenueType": {
            "enum": [
              "SetupFee",
              "TermSheetFee",
              "SuccessFee",
              "SubscriptionFee",
              "CancellationFee",
              "AddonFee",
              "CompanySubscription",
              "AdditionalDealFee",
              "DataSubscription",
              "BankContactSubscription",
              "EnterpriseLoanWatchSubscription",
              "ComplianceNavigatorSubscription",
              "ComplianceNavigatorOnboarding",
              "CreditMemo",
              "Other"
            ],
            "type": "string"
          },
          "invoiceLineItemType": {
            "enum": [
              "OneTime",
              "Recurring"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoicePaymentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "paymentType": {
            "enum": [
              "CreditCard",
              "Check",
              "WireTransfer",
              "Cash",
              "WriteOff"
            ],
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date"
          },
          "details": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceProductSubscriptionRelationshipDto": {
        "required": [
          "productName",
          "subscriptionFrequency"
        ],
        "type": "object",
        "properties": {
          "subscriptionGuid": {
            "type": "string",
            "format": "uuid"
          },
          "subscriptionFrequency": {
            "enum": [
              "OneTime",
              "Monthly",
              "Quarterly",
              "BiAnnually",
              "Annually"
            ],
            "type": "string"
          },
          "productName": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "showDates": {
            "type": "boolean",
            "readOnly": true
          },
          "displayText": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.InvoiceRelationShipDto": {
        "type": "object",
        "properties": {
          "deal": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDealRelationshipDto"
          },
          "productSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceProductSubscriptionRelationshipDto"
          },
          "enterpriseLoanWatchSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceEnterpriseLoanWatchSubscriptionRelationshipDto"
          },
          "bankContactSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceBankContactSubscriptionRelationshipDto"
          },
          "companySubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceCompanySubscriptionRelationshipDto"
          },
          "dataSubscription": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.Models.InvoiceDataSubscriptionRelationshipDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.MakePaymentDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stripeCustomerId": {
            "type": "string",
            "nullable": true
          },
          "paymentMethodId": {
            "type": "string",
            "nullable": true
          },
          "paymentDetails": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.PaymentMethodDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.PaymentResponseDto": {
        "type": "object",
        "properties": {
          "skippingPayment": {
            "type": "boolean"
          },
          "isPaymentSuccess": {
            "type": "boolean"
          },
          "isCardOnFile": {
            "type": "boolean"
          },
          "invoiceSent": {
            "type": "boolean"
          },
          "transactionMessage": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.PaymentScheduleItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "guid": {
            "type": "string",
            "format": "uuid"
          },
          "percentDue": {
            "type": "integer",
            "format": "int32"
          },
          "amountPaid": {
            "type": "number",
            "format": "double"
          },
          "balanceDue": {
            "type": "number",
            "format": "double"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentStatus": {
            "enum": [
              "Paid",
              "Partial",
              "PastDue",
              "Due",
              "Current",
              "WriteOff",
              "Pending"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.ProcessInvoiceDto": {
        "type": "object",
        "properties": {
          "sendEmail": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.StartCreditMemoInvoiceFormDto": {
        "required": [
          "invoiceDate",
          "refundAmount"
        ],
        "type": "object",
        "properties": {
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "refundAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.StartInvoiceFormDto": {
        "required": [
          "invoiceDate",
          "paymentOptionType",
          "paymentScheduleType"
        ],
        "type": "object",
        "properties": {
          "invoiceDate": {
            "type": "string",
            "format": "date"
          },
          "paymentScheduleType": {
            "enum": [
              "Now",
              "Net7",
              "Net15",
              "Net30",
              "Net60",
              "Custom"
            ],
            "type": "string"
          },
          "paymentOptionType": {
            "enum": [
              "Check",
              "CreditCardOrACH",
              "Both"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.Models.UserPaymentMethodPageDto": {
        "type": "object",
        "properties": {
          "paymentMethod": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.PaymentMethodDto"
          },
          "stripeCustomerId": {
            "type": "string",
            "nullable": true
          },
          "customerEmail": {
            "type": "string",
            "nullable": true
          },
          "paymentMethodToDelete": {
            "type": "string",
            "nullable": true
          },
          "paymentMethodId": {
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "type": "string",
            "nullable": true
          },
          "isPaymentIntent": {
            "type": "boolean"
          },
          "failedPaymentMethod": {
            "type": "string",
            "nullable": true
          },
          "hasBalanceInvoices": {
            "type": "boolean"
          },
          "orgName": {
            "type": "string",
            "nullable": true
          },
          "orgGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.StripePayments.Models.PaymentMethodDto": {
        "type": "object",
        "properties": {
          "last4": {
            "type": "string",
            "nullable": true
          },
          "cardExpYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cardExpMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bankRoutingNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.StripePayments.Models.StripeConfirmPaymentDto": {
        "type": "object",
        "properties": {
          "invoicePaymentGuid": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "stripeCustomerId": {
            "type": "string",
            "nullable": true
          },
          "confirmationToken": {
            "type": "string",
            "nullable": true
          },
          "paymentMethodId": {
            "type": "string",
            "nullable": true
          },
          "paymentDetails": {
            "$ref": "#/components/schemas/Cerebro.Api.Shared.Invoicing.StripePayments.Models.PaymentMethodDto"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodDto": {
        "type": "object",
        "properties": {
          "customerId": {
            "type": "string",
            "nullable": true
          },
          "stripeIntentClientSecret": {
            "type": "string",
            "nullable": true
          },
          "orgName": {
            "type": "string",
            "nullable": true
          },
          "orgGuid": {
            "type": "string",
            "format": "uuid"
          },
          "customerEmail": {
            "type": "string",
            "nullable": true
          },
          "paymentMethodToDelete": {
            "type": "string",
            "nullable": true
          },
          "paymentType": {
            "enum": [
              "CreditCard",
              "Check",
              "WireTransfer",
              "Cash",
              "WriteOff"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Invoicing.StripePayments.Models.UpdatePaymentMethodResultDto": {
        "type": "object",
        "properties": {
          "paymentMethodId": {
            "type": "string",
            "nullable": true
          },
          "paymentStatus": {
            "enum": [
              "Pending",
              "Succeeded",
              "Failed",
              "PaymentMethodPending"
            ],
            "type": "string",
            "nullable": true
          },
          "paymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Messaging.LambdaResponseDto": {
        "type": "object",
        "properties": {
          "hasError": {
            "type": "boolean"
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "functionError": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Cerebro.Api.Shared.Web.CerebroNotFound": {
        "type": "object",
        "properties": {
          "objectNotFound": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Microsoft.AspNetCore.Mvc.ActionResult": {
        "type": "object",
        "additionalProperties": false
      },
      "Microsoft.AspNetCore.Mvc.ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": { }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Json Web Token (Jwt) as an Authorization header using the Bearer scheme.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "tags": [
    {
      "name": "Authentication / Authorization"
    },
    {
      "name": "Bank Deal Profiles"
    },
    {
      "name": "Banks"
    },
    {
      "name": "Companies"
    },
    {
      "name": "Company Subscriptions"
    },
    {
      "name": "Compliance"
    },
    {
      "name": "Compliance Reports"
    },
    {
      "name": "ComplianceReports"
    },
    {
      "name": "CovenantCalculations"
    },
    {
      "name": "Credit Explorer"
    },
    {
      "name": "Data Room Calls"
    },
    {
      "name": "Data Room Diligence Requests"
    },
    {
      "name": "Data Room Documents"
    },
    {
      "name": "Data Room Ndas"
    },
    {
      "name": "Data Room Term Sheets"
    },
    {
      "name": "Data Room Users"
    },
    {
      "name": "Data Rooms"
    },
    {
      "name": "Deal Agent"
    },
    {
      "name": "Deal Debt Schedules"
    },
    {
      "name": "Deal Excluded Lenders"
    },
    {
      "name": "Deal Financial Metrics"
    },
    {
      "name": "Deal Partners"
    },
    {
      "name": "Deal Product Subscriptions"
    },
    {
      "name": "Deal Question Answers"
    },
    {
      "name": "Deal Reduced Fee Lenders"
    },
    {
      "name": "Deal Request Allocations"
    },
    {
      "name": "Deal Required Documents"
    },
    {
      "name": "Deals"
    },
    {
      "name": "Debt Capacity Calculators"
    },
    {
      "name": "Document E-Sign"
    },
    {
      "name": "EmailResponses"
    },
    {
      "name": "Employees"
    },
    {
      "name": "Existing Debt Terms"
    },
    {
      "name": "HubSpot"
    },
    {
      "name": "Invoices"
    },
    {
      "name": "IronPDF"
    },
    {
      "name": "Jobs"
    },
    {
      "name": "Lambda"
    },
    {
      "name": "Lenders"
    },
    {
      "name": "Loan Watch"
    },
    {
      "name": "Loan Watch Subscriptions"
    },
    {
      "name": "Lookups"
    },
    {
      "name": "Matching"
    },
    {
      "name": "Products"
    },
    {
      "name": "SMS"
    },
    {
      "name": "Stripe"
    },
    {
      "name": "Users"
    }
  ]
}