{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/credo-ai/json-schema/credo-ai-comment-threads-response-schema.json",
  "title": "CommentThreadsResponse",
  "description": "A page of [CommentThreadResource](#commentthreadresource) results",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/credo-ai-comment-threads-api-openapi.yml#/components/schemas/CommentThreadsResponse",
  "properties": {
    "data": {
      "description": "Content with [CommentThreadResource](#commentthreadresource) objects",
      "items": {
        "$ref": "#/$defs/CommentThreadResource"
      },
      "type": "array"
    },
    "meta": {
      "properties": {
        "after": {
          "description": "after cursor for the next page resources",
          "type": "string"
        },
        "before": {
          "description": "before cursor for the previous page resources",
          "type": "string"
        },
        "limit": {
          "description": "number of resources limit applied to this request",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "CommentThreadResource": {
      "description": "",
      "properties": {
        "attributes": {
          "properties": {
            "comments_count": {
              "description": "",
              "type": "string"
            },
            "id": {
              "description": "",
              "type": "string"
            },
            "inserted_at": {
              "description": "",
              "type": "string"
            },
            "is_external": {
              "description": "",
              "type": "string"
            },
            "parent_entity_control_id": {
              "description": "",
              "type": "string"
            },
            "parent_entity_review_id": {
              "description": "",
              "type": "string"
            },
            "parent_q_section_id": {
              "description": "",
              "type": "string"
            },
            "parent_use_case_review_id": {
              "description": "",
              "type": "string"
            },
            "resource_id": {
              "description": "",
              "type": "string"
            },
            "resource_type": {
              "description": "",
              "type": "string"
            },
            "status": {
              "description": "",
              "type": "string"
            },
            "status_updated_at": {
              "description": "",
              "type": "string"
            },
            "use_case_id": {
              "description": "",
              "type": "string"
            },
            "user_id": {
              "description": "",
              "type": "string"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "The JSON-API resource ID",
          "type": "string"
        },
        "relationships": {
          "properties": {
            "comments": {
              "properties": {
                "data": {
                  "items": {
                    "properties": {
                      "id": {
                        "description": "Related comments resource id",
                        "type": "string"
                      },
                      "type": {
                        "description": "Type of related comments resource",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "user": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related user resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related user resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "description": "The JSON-API resource type",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}