{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-insite-spire-services-retrieve-page-result-schema.json",
  "title": "Insite.Spire.Services.RetrievePageResult",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-content-api-openapi.yml#/components/schemas/Insite.Spire.Services.RetrievePageResult",
  "type": "object",
  "properties": {
    "page": {
      "$ref": "#/$defs/Insite.Spire.Models.PageModel"
    },
    "statusCode": {
      "format": "int32",
      "enum": [
        100,
        101,
        200,
        201,
        202,
        203,
        204,
        205,
        206,
        300,
        301,
        302,
        303,
        304,
        305,
        306,
        307,
        400,
        401,
        402,
        403,
        404,
        405,
        406,
        407,
        408,
        409,
        410,
        411,
        412,
        413,
        414,
        415,
        416,
        417,
        426,
        500,
        501,
        502,
        503,
        504,
        505
      ],
      "type": "integer"
    },
    "redirectTo": {
      "type": "string"
    },
    "authorizationFailed": {
      "type": "boolean"
    },
    "isAuthenticatedOnServer": {
      "type": "boolean"
    },
    "bypassedAuthorization": {
      "type": "boolean"
    },
    "requiresAuthorization": {
      "type": "boolean"
    },
    "alternateLanguageUrls": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "canonicalUrl": {
      "type": "string"
    }
  },
  "$defs": {
    "Insite.Spire.Models.PageModel": {
      "type": "object",
      "properties": {
        "nodeId": {
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "parentId": {
          "format": "uuid",
          "type": "string"
        },
        "sortOrder": {
          "format": "int32",
          "type": "integer"
        },
        "websiteId": {
          "format": "uuid",
          "type": "string"
        },
        "variantName": {
          "type": "string"
        },
        "layoutPageId": {
          "format": "uuid",
          "type": "string"
        },
        "templateHash": {
          "type": "string"
        },
        "widgets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Insite.Spire.Models.WidgetModel"
          }
        },
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "generalFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "translatableFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "contextualFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      }
    },
    "Insite.Spire.Models.WidgetModel": {
      "type": "object",
      "properties": {
        "parentId": {
          "format": "uuid",
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "isLayout": {
          "type": "boolean"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "generalFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "translatableFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "contextualFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}