{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/passportcraft-com/json-schema/passportcraft-com-affichage-schema.json",
  "title": "Affichage",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/passportcraft-com-openapi.json#/components/schemas/Affichage",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "affichage"
    },
    "name": {
      "type": "string"
    },
    "organization_id": {
      "type": "string",
      "maxLength": 255
    },
    "passport_id": {
      "type": "string",
      "maxLength": 255
    },
    "livemode": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "not_filed",
        "draft",
        "filed",
        "confirmed",
        "error"
      ]
    },
    "filed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "portal_gtin": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "portal_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "colours": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "colour": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "colour_key": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_filed",
              "draft",
              "filed",
              "confirmed",
              "error"
            ]
          },
          "filed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "portal_gtin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "portal_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "colour",
          "colour_key",
          "status",
          "filed_at",
          "portal_gtin",
          "portal_score"
        ],
        "additionalProperties": {}
      }
    },
    "filing_available": {
      "type": "boolean"
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "test_mode",
          "delegation_required",
          "entitlement_unavailable",
          "plan_required",
          "gtin_required",
          "example_passport"
        ]
      }
    },
    "delegation_status": {
      "type": "string",
      "enum": [
        "none",
        "not_delegated",
        "pending",
        "active"
      ]
    }
  },
  "required": [
    "object",
    "name",
    "organization_id",
    "passport_id",
    "livemode",
    "status",
    "filed_at",
    "portal_gtin",
    "portal_score",
    "colours",
    "filing_available",
    "blockers",
    "delegation_status"
  ],
  "additionalProperties": {}
}