{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rork/json-schema/rork-analytics-report-request-response-schema.json",
  "title": "AnalyticsReportRequestResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rork-analyticsreportrequests-api-openapi.yml#/components/schemas/AnalyticsReportRequestResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/AnalyticsReportRequest"
    },
    "included": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnalyticsReport"
      }
    },
    "links": {
      "$ref": "#/$defs/DocumentLinks"
    }
  },
  "required": [
    "data",
    "links"
  ],
  "$defs": {
    "AnalyticsReport": {
      "type": "object",
      "title": "AnalyticsReport",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "analyticsReports"
          ]
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "category": {
              "type": "string",
              "enum": [
                "APP_USAGE",
                "APP_STORE_ENGAGEMENT",
                "COMMERCE",
                "FRAMEWORK_USAGE",
                "PERFORMANCE"
              ]
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "instances": {
              "type": "object",
              "properties": {
                "links": {
                  "$ref": "#/$defs/RelationshipLinks"
                }
              }
            }
          }
        },
        "links": {
          "$ref": "#/$defs/ResourceLinks"
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "AnalyticsReportRequest": {
      "type": "object",
      "title": "AnalyticsReportRequest",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "analyticsReportRequests"
          ]
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "accessType": {
              "type": "string",
              "enum": [
                "ONE_TIME_SNAPSHOT",
                "ONGOING"
              ]
            },
            "stoppedDueToInactivity": {
              "type": "boolean"
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "reports": {
              "type": "object",
              "properties": {
                "links": {
                  "$ref": "#/$defs/RelationshipLinks"
                },
                "meta": {
                  "$ref": "#/$defs/PagingInformation"
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "analyticsReports"
                        ]
                      },
                      "id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type"
                    ]
                  }
                }
              }
            }
          }
        },
        "links": {
          "$ref": "#/$defs/ResourceLinks"
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "DocumentLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        }
      },
      "required": [
        "self"
      ]
    },
    "PagingInformation": {
      "type": "object",
      "properties": {
        "paging": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "limit": {
              "type": "integer"
            },
            "nextCursor": {
              "type": "string"
            }
          },
          "required": [
            "limit"
          ]
        }
      },
      "required": [
        "paging"
      ]
    },
    "RelationshipLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        },
        "related": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    },
    "ResourceLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    }
  }
}