{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-part-preview-url-schema.json",
  "title": "PartPreviewUrl",
  "description": "Engine-agnostic GLB preview payload for a Part.\n\n``url`` is ``None`` for every status except ``ok``. ``data_source_id`` is\nabsent when no dataset could be resolved (``status=\"no_dataset\"``).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-parts-api-openapi.yml#/components/schemas/PartPreviewUrl",
  "properties": {
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "Presigned URL to the GLB preview; null unless status is 'ok'."
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Preview readiness state (e.g. ok, pending, failed, no_dataset)."
    },
    "data_source_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data Source Id",
      "description": "Identifier of the resolved CAD file; null when no dataset was found."
    },
    "expires_in_s": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires In S",
      "description": "Lifetime of the presigned URL in seconds; null unless status is 'ok'."
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At",
      "description": "UTC ISO-8601 instant at which the presigned URL expires; null unless status is 'ok'. Refresh the URL before this moment."
    }
  },
  "type": "object",
  "required": [
    "status"
  ]
}