{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/merofoundry-com/json-schema/merofoundry-com-application-response-schema.json",
  "title": "ApplicationResponse",
  "description": "Schema for application data in responses.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/merofoundry-com-openapi.json#/components/schemas/ApplicationResponse",
  "properties": {
    "allowedOrigins": {
      "items": {
        "type": "string"
      },
      "title": "Allowedorigins",
      "type": "array"
    },
    "auditRetentionDays": {
      "default": 91,
      "title": "Auditretentiondays",
      "type": "integer"
    },
    "componentPack": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Componentpack"
    },
    "createdAt": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createdat"
    },
    "createdBy": {
      "format": "uuid",
      "title": "Createdby",
      "type": "string"
    },
    "customDomain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customdomain"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "googleAnalyticsMeasurementId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Googleanalyticsmeasurementid"
    },
    "icon": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Icon"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "identityModelId": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Identitymodelid"
    },
    "identitySettings": {
      "additionalProperties": true,
      "title": "Identitysettings",
      "type": "object"
    },
    "mcpSettings": {
      "additionalProperties": true,
      "title": "Mcpsettings",
      "type": "object"
    },
    "modelsWithoutApiKeyAccess": {
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "title": "Modelswithoutapikeyaccess",
      "type": "array"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "previewOrigin": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "HTTPS origin of the preview host (`<label>--preview.<parent>`) of the assigned platform subdomain, or null when no platform subdomain is assigned, no parent is configured, or the label cannot carry the preview suffix.",
      "title": "Previeworigin"
    },
    "pushRegistrations": {
      "anyOf": [
        {
          "$ref": "#/$defs/PushRegistrationCountsResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Active push device registrations of this application per platform (`apns`, `fcm`). Counts only, never tokens. Present on single-application reads, admin updates and imports; null elsewhere."
    },
    "settings": {
      "additionalProperties": true,
      "title": "Settings",
      "type": "object"
    },
    "slug": {
      "title": "Slug",
      "type": "string"
    },
    "status": {
      "title": "Status",
      "type": "string"
    },
    "tenantId": {
      "format": "uuid",
      "title": "Tenantid",
      "type": "string"
    },
    "trustedImageOrigins": {
      "items": {
        "type": "string"
      },
      "title": "Trustedimageorigins",
      "type": "array"
    },
    "updatedAt": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updatedat"
    },
    "warnings": {
      "description": "Notices about this update that the caller must surface. Enabling `mcpSettings.allow_anonymous` returns: 'This endpoint now serves tools to unauthenticated callers; tools currently flagged anonymous: {tools}.'",
      "items": {
        "type": "string"
      },
      "title": "Warnings",
      "type": "array"
    },
    "workspaceId": {
      "format": "uuid",
      "title": "Workspaceid",
      "type": "string"
    }
  },
  "required": [
    "id",
    "tenantId",
    "workspaceId",
    "name",
    "slug",
    "status",
    "createdBy"
  ],
  "type": "object",
  "$defs": {
    "PushRegistrationCountsResponse": {
      "description": "Active registrations per platform; the application read shapes carry it.",
      "properties": {
        "apns": {
          "default": 0,
          "title": "Apns",
          "type": "integer"
        },
        "fcm": {
          "default": 0,
          "title": "Fcm",
          "type": "integer"
        }
      },
      "title": "PushRegistrationCountsResponse",
      "type": "object"
    }
  }
}