{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/credo-ai/json-schema/credo-ai-models-page-response-schema.json",
  "title": "ModelsPageResponse",
  "description": "A page of [ModelResource](#modelresource) results",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/credo-ai-models-api-openapi.yml#/components/schemas/ModelsPageResponse",
  "properties": {
    "data": {
      "description": "Content with [ModelResource](#modelresource) objects",
      "items": {
        "$ref": "#/$defs/ModelResource"
      },
      "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": {
    "ModelResource": {
      "description": "",
      "properties": {
        "attributes": {
          "properties": {
            "configurable_risk_score_classification": {
              "description": "",
              "type": "string"
            },
            "custom": {
              "description": "",
              "type": "string"
            },
            "entity_id": {
              "description": "",
              "type": "string"
            },
            "has_use_cases": {
              "description": "",
              "type": "string"
            },
            "inserted_at": {
              "description": "",
              "type": "string"
            },
            "name": {
              "description": "",
              "type": "string"
            },
            "questionnaire_ids": {
              "description": "",
              "type": "string"
            },
            "risk_classification_id": {
              "description": "",
              "type": "string"
            },
            "risk_classification_level": {
              "description": "",
              "type": "string"
            },
            "risk_classification_set_at": {
              "description": "",
              "type": "string"
            },
            "risk_classification_set_by": {
              "description": "",
              "type": "string"
            },
            "risk_classification_set_by_user_id": {
              "description": "",
              "type": "string"
            },
            "source": {
              "description": "",
              "type": "string"
            },
            "status": {
              "description": "",
              "type": "string"
            },
            "summary": {
              "description": "",
              "type": "string"
            },
            "trigger_mode": {
              "description": "",
              "type": "string"
            },
            "updated_at": {
              "description": "",
              "type": "string"
            },
            "user_id": {
              "description": "",
              "type": "string"
            },
            "workflow_stage_id": {
              "description": "",
              "type": "string"
            },
            "workflow_stage_step": {
              "description": "",
              "type": "string"
            },
            "workflow_stage_step_status": {
              "description": "",
              "type": "string"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "The JSON-API resource ID",
          "type": "string"
        },
        "relationships": {
          "properties": {
            "associations": {
              "properties": {
                "data": {
                  "items": {
                    "properties": {
                      "id": {
                        "description": "Related associations resource id",
                        "type": "string"
                      },
                      "type": {
                        "description": "Type of related associations resource",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "use_cases": {
              "properties": {
                "data": {
                  "items": {
                    "properties": {
                      "id": {
                        "description": "Related use_cases resource id",
                        "type": "string"
                      },
                      "type": {
                        "description": "Type of related use_cases 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"
            },
            "vendors": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related vendors resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related vendors resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "versions": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related versions resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related versions resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "description": "The JSON-API resource type",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}