{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanverion-com/json-schema/scanverion-com-local-identity-template-policy-schema.json",
  "title": "LocalIdentityTemplatePolicy",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scanverion-com-openapi.yml#/components/schemas/LocalIdentityTemplatePolicy",
  "required": [
    "enabled",
    "localResearchOnly",
    "maximumSources",
    "maximumImageBytes",
    "maximumTotalBytes",
    "maximumTemplateBytes",
    "templateLifetimeSeconds",
    "anonymousEnabled",
    "workspaceEnabled",
    "dailyTrialLimit",
    "generationCredits",
    "comparisonCredits"
  ],
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "localResearchOnly": {
      "type": "boolean"
    },
    "maximumSources": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "maximumImageBytes": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "maximumTotalBytes": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "maximumTemplateBytes": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "templateLifetimeSeconds": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "anonymousEnabled": {
      "type": "boolean"
    },
    "workspaceEnabled": {
      "type": "boolean"
    },
    "dailyTrialLimit": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "generationCredits": {
      "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
      "type": [
        "number",
        "string"
      ],
      "format": "double"
    },
    "comparisonCredits": {
      "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
      "type": [
        "number",
        "string"
      ],
      "format": "double"
    }
  }
}