{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-page-connection-schema.json",
  "title": "PageConnection",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-customer-journey-analytics-openapi.yml#/components/schemas/PageConnection",
  "type": "object",
  "properties": {
    "totalPages": {
      "type": "integer",
      "format": "int32"
    },
    "totalElements": {
      "type": "integer",
      "format": "int64"
    },
    "pageable": {
      "$ref": "#/$defs/Pageable"
    },
    "sort": {
      "$ref": "#/$defs/Sort"
    },
    "first": {
      "type": "boolean"
    },
    "last": {
      "type": "boolean"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "numberOfElements": {
      "type": "integer",
      "format": "int32"
    },
    "size": {
      "type": "integer",
      "format": "int32"
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Connection"
      }
    },
    "empty": {
      "type": "boolean"
    }
  },
  "$defs": {
    "BackfillSummary": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "format": "int32"
        },
        "failed": {
          "type": "integer",
          "format": "int32"
        },
        "inProgress": {
          "type": "integer",
          "format": "int32"
        },
        "completed": {
          "type": "integer",
          "format": "int32"
        },
        "invalid": {
          "type": "boolean"
        }
      }
    },
    "CJAOwner": {
      "type": "object",
      "properties": {
        "imsUserId": {
          "type": "string",
          "description": "the ims org id of the owner, included when the expansion parameter owner is true"
        },
        "ownerId": {
          "type": "string",
          "description": "the ims user id or the system user id of the owner, included when the expansion parameter owner is true"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "imsUser",
            "systemUser"
          ]
        }
      }
    },
    "ConfiguredContainer": {
      "type": "object",
      "required": [
        "container"
      ],
      "properties": {
        "container": {
          "type": "string",
          "description": "Name of the container being configured."
        }
      }
    },
    "Connection": {
      "type": "object",
      "properties": {
        "primaryIdType": {
          "type": "string"
        },
        "shardTable": {
          "type": "string"
        },
        "configuredContainers": {
          "type": "array",
          "description": "The configured containers for this connection.",
          "items": {
            "$ref": "#/$defs/ConfiguredContainer"
          }
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/CJAOwner"
        },
        "dataSets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataSetMetadata"
          }
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "organization": {
          "type": "string"
        },
        "modifiedBy": {
          "type": "string"
        },
        "modifiedByFullName": {
          "type": "string"
        },
        "backfillEnabled": {
          "type": "boolean"
        },
        "sandboxId": {
          "type": "string"
        },
        "sandboxName": {
          "type": "string"
        },
        "floatPrecision": {
          "type": "integer",
          "format": "int32"
        },
        "dataRetentionMonths": {
          "type": "integer",
          "format": "int32"
        },
        "connectionValidationErrors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionValidationError"
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "backfillSummary": {
          "$ref": "#/$defs/BackfillSummary"
        },
        "idWithoutPrefix": {
          "type": "string",
          "format": "uuid"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "ConnectionValidationError": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "enum": [
            "MISSING_FIELD",
            "DISALLOWED_FIELD",
            "INVALID_CONNECTION_NAME",
            "INVALID_SANDBOX_ID",
            "INVALID_SANDBOX_NAME",
            "INVALID_DOMAIN",
            "INVALID_DATA_SET_TYPE",
            "INVALID_VISITOR_ID",
            "INVALID_NAME_SPACE",
            "INVALID_IDENTITY_NAMESPACE",
            "INVALID_IDENTITY_MAP",
            "INVALID_LOOKUP_KEY_FIELD",
            "INVALID_LOOKUP_PARENT_FIELDS",
            "INVALID_USE_PRIMARY_ID_NAME_SPACE",
            "INVALID_DATA_SOURCE_TYPE",
            "DATA_SET_DOES_NOT_EXIST",
            "REQUIRED_EVENT_DATA_SET_MISSING",
            "SCHEMA_UNAVAILABLE",
            "NAMESPACE_UNAVAILABLE",
            "DATASET_BACKFILL_REQUEST_LIMIT_EXCEEDED",
            "DATASETS_PER_CONNECTION_LIMIT_EXCEEDED"
          ]
        },
        "dataSetId": {
          "type": "string"
        },
        "dataSetName": {
          "type": "string"
        },
        "disallowedField": {
          "type": "string"
        },
        "missingField": {
          "type": "string"
        }
      }
    },
    "ContainerField": {
      "type": "object",
      "properties": {
        "container": {
          "type": "string"
        },
        "systemFieldValue": {
          "type": "string"
        }
      }
    },
    "DataSetBackfill": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "dataSetId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "COMPLETED",
            "FAILED",
            "IN_PROGRESS",
            "IN_QUEUE"
          ]
        },
        "startDate": {
          "type": "string"
        },
        "endDate": {
          "type": "string"
        },
        "createdDate": {
          "type": "string"
        },
        "allData": {
          "type": "boolean"
        }
      }
    },
    "DataSetMetadata": {
      "type": "object",
      "properties": {
        "dataSetId": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "timestampId": {
          "type": "string"
        },
        "visitorId": {
          "type": "string"
        },
        "containerFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContainerField"
          }
        },
        "lookupKeyField": {
          "type": "string"
        },
        "lookupParentFields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "identityNamespace": {
          "type": "string"
        },
        "usePrimaryIdNamespace": {
          "type": "boolean"
        },
        "identityMap": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "schemaInfo": {
          "$ref": "#/$defs/SchemaInfo"
        },
        "backfills": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataSetBackfill"
          }
        },
        "streaming": {
          "type": "boolean"
        },
        "backfillSummary": {
          "$ref": "#/$defs/BackfillSummary"
        },
        "lastIngestedTime": {
          "type": "string"
        },
        "streamingEnabledAt": {
          "type": "string"
        },
        "identityNamespaceCol": {
          "type": "string"
        },
        "dataSourceType": {
          "$ref": "#/$defs/DataSourceType"
        }
      }
    },
    "DataSourceType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "Pageable": {
      "type": "object",
      "properties": {
        "paged": {
          "type": "boolean"
        },
        "unpaged": {
          "type": "boolean"
        },
        "pageNumber": {
          "type": "integer",
          "format": "int32"
        },
        "sort": {
          "$ref": "#/$defs/Sort"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "offset": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "SchemaInfo": {
      "type": "object",
      "properties": {
        "schemaId": {
          "type": "string"
        },
        "schemaName": {
          "type": "string"
        },
        "schemaRef": {
          "$ref": "#/$defs/SchemaRef"
        }
      }
    },
    "SchemaRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id contains full URL path for XDM schema."
        },
        "contentType": {
          "type": "string",
          "description": "contentType represents XDM schema version and type of schema."
        }
      },
      "description": "This is the full URL for XDM schema path. This field will be derived from schema field, if it is not present. This field will be used to annotate XDM schema version used in the dataSet or dataSetView."
    },
    "Sort": {
      "type": "object",
      "properties": {
        "unsorted": {
          "type": "boolean"
        },
        "sorted": {
          "type": "boolean"
        },
        "empty": {
          "type": "boolean"
        }
      }
    }
  }
}