{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-list-response-of-relationship-kind-template-item-schema.json",
  "title": "RestApiListResponseOfRelationshipKindTemplateItem",
  "description": "Standard REST API response envelope for a collection of resources.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-relationship-kind-definitions-api-openapi.yml#/components/schemas/RestApiListResponseOfRelationshipKindTemplateItem",
  "required": [
    "data",
    "pagination"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RelationshipKindTemplateItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationInfo"
    }
  },
  "$defs": {
    "PaginationInfo": {
      "required": [
        "cursor",
        "hasMore"
      ],
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Pagination metadata for REST API list responses."
    },
    "RelationshipKindTemplateItem": {
      "required": [
        "key",
        "displayName",
        "description",
        "icon",
        "color",
        "cardinality",
        "cyclePolicy",
        "deletePolicy",
        "sourceLabel",
        "targetLabel",
        "isHierarchical",
        "isDependency",
        "isApiProvider"
      ],
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "cardinality": {
          "type": "string"
        },
        "cyclePolicy": {
          "type": "string"
        },
        "deletePolicy": {
          "type": "string"
        },
        "sourceLabel": {
          "type": "string"
        },
        "targetLabel": {
          "type": "string"
        },
        "isHierarchical": {
          "type": "boolean"
        },
        "isDependency": {
          "type": "boolean"
        },
        "isApiProvider": {
          "type": "boolean"
        }
      },
      "description": "Relationship kind template item — a predefined kind available for adoption."
    }
  }
}