{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-page-of-eulas-schema.json",
  "title": "PageOfEulas",
  "description": "A list of EULAs.\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/PageOfEulas",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EulaResponse"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/PageableResponse"
    }
  ],
  "$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"
    },
    "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"
        }
      },
      "description": "A single EULA.\n"
    },
    "EulaTitle": {
      "type": "string",
      "description": "The title of the EULA.\n"
    },
    "PageableObject": {
      "type": "object",
      "properties": {
        "pageNumber": {
          "type": "integer",
          "format": "int32"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "sort": {
          "$ref": "#/$defs/Sort"
        },
        "offset": {
          "type": "integer",
          "format": "int64"
        },
        "paged": {
          "type": "boolean"
        },
        "unpaged": {
          "type": "boolean"
        }
      }
    },
    "PageableResponse": {
      "type": "object",
      "properties": {
        "pageable": {
          "$ref": "#/$defs/PageableObject"
        },
        "last": {
          "type": "boolean"
        },
        "totalElements": {
          "type": "integer",
          "format": "int64"
        },
        "totalPages": {
          "type": "integer",
          "format": "int32"
        },
        "size": {
          "type": "integer",
          "format": "int32"
        },
        "number": {
          "type": "integer",
          "format": "int32"
        },
        "sort": {
          "$ref": "#/$defs/Sort"
        },
        "numberOfElements": {
          "type": "integer",
          "format": "int32"
        },
        "first": {
          "type": "boolean"
        },
        "empty": {
          "type": "boolean"
        }
      }
    },
    "Sort": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "sorted": {
          "type": "boolean"
        },
        "unsorted": {
          "type": "boolean"
        }
      }
    }
  }
}