{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rivery/json-schema/rivery-connection-pagination-response-schema.json",
  "title": "ConnectionPaginationResponse",
  "description": "Connection response properties to return as a paginated list\n    ",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rivery-connections-api-openapi.yml#/components/schemas/ConnectionPaginationResponse",
  "properties": {
    "next_page": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Page",
      "description": "The next page URL"
    },
    "previous_page": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Page",
      "description": "The previous page URL"
    },
    "page": {
      "type": "integer",
      "title": "Page",
      "description": "The page number",
      "default": 1
    },
    "current_page_size": {
      "type": "integer",
      "title": "Current Page Size",
      "description": "The current page size"
    },
    "total_items": {
      "type": "integer",
      "title": "Total Items",
      "description": "The total number of entities fetched",
      "default": 0
    },
    "account_id": {
      "type": "string",
      "title": "Account Id",
      "description": "The account id"
    },
    "environment_id": {
      "type": "string",
      "title": "Environment Id",
      "description": "The environment id"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/ConnectionResponse"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "type": "object",
  "required": [
    "current_page_size",
    "account_id",
    "environment_id",
    "items"
  ],
  "$defs": {
    "ConnectionResponse": {
      "properties": {
        "account_id": {
          "type": "string",
          "title": "Account Id"
        },
        "environment_id": {
          "type": "string",
          "title": "Environment Id"
        },
        "cross_id": {
          "type": "string",
          "title": "Cross Id",
          "description": "The cross id of the connection"
        },
        "_id": {
          "type": "string",
          "title": " Id",
          "description": "The connection id"
        },
        "connection_name": {
          "type": "string",
          "title": "Connection Name",
          "description": "The name of the connection"
        },
        "connection_type": {
          "type": "string",
          "title": "Connection Type",
          "description": "The type of the connection"
        },
        "connection_type_id": {
          "type": "string",
          "title": "Connection Type Id",
          "description": "The name of the related database"
        },
        "is_test_connection": {
          "type": "boolean",
          "title": "Is Test Connection",
          "description": "Indicates if the connection is a test connection"
        },
        "connection_update_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Connection Update By",
          "description": "The objectID of the user who updated the connection"
        },
        "connection_update_time": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Connection Update Time",
          "description": "The time the connection was last updated"
        }
      },
      "type": "object",
      "required": [
        "account_id",
        "environment_id",
        "cross_id",
        "_id",
        "connection_name",
        "connection_type",
        "connection_type_id",
        "is_test_connection"
      ],
      "title": "ConnectionResponse",
      "description": "Connection properties to return"
    }
  }
}