{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spaceinvoices-com/json-schema/spaceinvoices-com-white-label-schema.json",
  "title": "WhiteLabel",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spaceinvoices-com-openapi.json#/components/schemas/WhiteLabel",
  "properties": {
    "active": {
      "default": false,
      "type": "boolean"
    },
    "name": {
      "description": "Name of your White Label instance.",
      "type": "string"
    },
    "domain": {
      "description": "Your domain for Apollo white label implementation.",
      "type": "string"
    },
    "subdomain": {
      "description": "Apollo subdomain for testing white label implemention.",
      "type": "string"
    },
    "baseColor": {
      "type": "string"
    },
    "logo": {
      "type": "string"
    },
    "separateDashboardIcon": {
      "default": false,
      "description": "Should a separate icon for dashboard be used in the sidebar instead of the logo serving as the button.",
      "type": "boolean"
    },
    "googleAnalyticsId": {
      "description": "Google analytics tracking code.",
      "type": "string"
    },
    "chatAppType": {
      "default": "Intercom",
      "description": "Type of chat app to display.\nCurrently Intercom and Tidio are supported out of the box.",
      "type": "string"
    },
    "chatAppId": {
      "description": "Intercom or other chat app ID",
      "type": "string"
    },
    "privacyPolicyLink": {
      "description": "URL to redirect user to if clicks on Terms of Service link in sidebar.\nDefaults to Website URL if not provided.",
      "type": "string"
    },
    "termsOfServiceLink": {
      "description": "URL to redirect user to if clicks on Terms of Service link in sidebar.\nDefaults to Website URL if not provided.",
      "type": "string"
    },
    "websiteURL": {
      "description": "URL to redirect user to if clicks on Website link in sidebar.\nHidden if not provided.",
      "type": "string"
    },
    "supportEmail": {
      "description": "Support email to display to user if clicks on Email link in sidebar.\nHidden if not provided.",
      "type": "string"
    },
    "supportPhone": {
      "description": "Support phone number to display to user if clicks on Call us link in sidebar.\nHidden if not provided.",
      "type": "string"
    },
    "blogURL": {
      "description": "URL to redirect user to if clicks on Blog link in sidebar.\nHidden if not provided.",
      "type": "string"
    },
    "hideLoginPage": {
      "default": true,
      "description": "Should the Login page be hidden to users.\nIf disabled the Uanuthorized redirect URL has to be provided.",
      "type": "boolean"
    },
    "showSignup": {
      "default": false,
      "description": "Should the Signup button be shown on the login page.",
      "type": "boolean"
    },
    "unauthorizedRedirectURL": {
      "description": "URL to redirect user to in case of unauthorized in app.\nUsed only if Login page is not displayed.",
      "type": "string"
    },
    "passwordResetURL": {
      "description": "URL to redirect user to when clicking on Signup link.\nOnly visible on Login page if it's displayed.",
      "type": "string"
    },
    "signupURL": {
      "description": "URL to redirect user to when clicking on Signup link.\nOnly visible on Login page if it's displayed.",
      "type": "string"
    },
    "allowInPromo": {
      "default": true,
      "description": "Allow Space Invoices to showcase your brand in our promo materials.\nie. website, blog, newsletter etc.",
      "type": "boolean"
    },
    "interface": {
      "description": "Allows hiding specific interface elements like menus and menu items.",
      "type": "object"
    },
    "id": {
      "$ref": "#/$defs/ObjectID"
    },
    "subscriptionId": {
      "$ref": "#/$defs/ObjectID"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ObjectID": {
      "type": "string",
      "pattern": "^[a-fA-F\\d]{24}$"
    }
  }
}