{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/markifact-com/json-schema/markifact-com-auth-link-status-schema.json",
  "title": "AuthLinkStatus",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/markifact-com-openapi.json#/components/schemas/AuthLinkStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "connected",
        "expired"
      ]
    },
    "connection_type": {
      "type": "string"
    },
    "connection_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "external_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "expires_at": {
      "type": "integer",
      "format": "int64"
    },
    "consumed_at": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "created_at": {
      "type": "integer",
      "format": "int64"
    },
    "updated_at": {
      "type": "integer",
      "format": "int64"
    },
    "connections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Connection"
      }
    }
  },
  "required": [
    "id",
    "status",
    "connection_type",
    "expires_at",
    "created_at",
    "updated_at",
    "connections"
  ],
  "$defs": {
    "Connection": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public Markifact connection ID."
        },
        "type": {
          "type": "string",
          "description": "Connection type."
        },
        "display_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "external_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_private": {
          "type": "boolean"
        },
        "created_at": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "updated_at": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        }
      },
      "required": [
        "id",
        "type",
        "is_private"
      ]
    }
  }
}