{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-activity-rest20-schema.json",
  "title": "QueryResultActivity",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-activities-api-openapi.yml#/components/schemas/QueryResultActivityRest20",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua."
    },
    "elements": {
      "type": "array",
      "description": "Array of Activity fields.",
      "items": {
        "$ref": "#/$defs/ActivityRest20"
      }
    },
    "total": {
      "type": "integer",
      "description": "The total amount of results."
    },
    "pageSize": {
      "type": "integer",
      "description": "The page size."
    },
    "page": {
      "type": "integer",
      "description": "The specified page."
    }
  },
  "$defs": {
    "ActivityRest20": {
      "title": "Activity",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of activity."
        },
        "id": {
          "type": "string",
          "description": "The unique identifier of the activity per activity type, except for EmailSend"
        },
        "contactId": {
          "type": "string",
          "description": "The ID of the contact who performed the activity"
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time of the activity"
        },
        "assetId": {
          "type": "string",
          "description": "The ID of the asset associated with the activity"
        },
        "assetName": {
          "type": "string",
          "description": "The name of the asset associated with the activity"
        },
        "assetType": {
          "type": "string",
          "description": "The type of asset associated with the activity, such as email and form"
        },
        "isPending": {
          "type": "string",
          "description": "Activity_Field_IsPending_Description"
        },
        "fieldValues": {
          "type": "array",
          "description": "Array containing the details of the activity.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}