{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-eula-response-schema.json",
  "title": "EulaResponse",
  "description": "A single EULA.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-eulas-api-openapi.yml#/components/schemas/EulaResponse",
  "required": [
    "description",
    "id",
    "isAccepted",
    "title"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/EulaId"
    },
    "currentDocumentId": {
      "$ref": "#/$defs/EulaDocumentCurrentId"
    },
    "currentDocumentValidFrom": {
      "$ref": "#/$defs/EulaDocumentValidFrom"
    },
    "currentDocumentUrl": {
      "$ref": "#/$defs/EulaDocumentUrl"
    },
    "currentDocumentCreatedAt": {
      "$ref": "#/$defs/EulaDocumentCreatedAt"
    },
    "currentDocumentFilename": {
      "$ref": "#/$defs/EulaDocumentFilename"
    },
    "title": {
      "$ref": "#/$defs/EulaTitle"
    },
    "description": {
      "$ref": "#/$defs/EulaDescription"
    },
    "isAccepted": {
      "$ref": "#/$defs/EulaDocumentisAccepted"
    },
    "acceptedAt": {
      "$ref": "#/$defs/EulaAcceptanceAcceptedAt"
    },
    "acceptedById": {
      "$ref": "#/$defs/EulaAcceptanceAcceptedById"
    }
  },
  "$defs": {
    "EulaAcceptanceAcceptedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp indicating the date the EULA document was accepted.\n",
      "format": "date-time"
    },
    "EulaAcceptanceAcceptedById": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the user who accepted the EULA document.\n",
      "format": "uuid"
    },
    "EulaDescription": {
      "type": "string",
      "description": "The description of the EULA.\n"
    },
    "EulaDocumentCreatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp indicating the date the EULA document was created.\n",
      "format": "date-time"
    },
    "EulaDocumentCurrentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the active document currently associated with the EULA.\n",
      "format": "uuid"
    },
    "EulaDocumentFilename": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the EULA document. It is generated based on the title and version of the EULA.\n"
    },
    "EulaDocumentUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The URL of the EULA document.\n",
      "format": "uri"
    },
    "EulaDocumentValidFrom": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp indicating the start date of the EULA document's validity.\n",
      "format": "date-time"
    },
    "EulaDocumentisAccepted": {
      "type": "boolean",
      "description": "Whether the EULA document is accepted.\n"
    },
    "EulaId": {
      "type": "string",
      "description": "The EULA ID.\n",
      "format": "uuid"
    },
    "EulaTitle": {
      "type": "string",
      "description": "The title of the EULA.\n"
    }
  }
}