{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-paginated-response-external-integration-response-schema.json",
  "title": "PaginatedResponse[ExternalIntegrationResponse]",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-external-integrations-api-openapi.yml#/components/schemas/PaginatedResponse_ExternalIntegrationResponse_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/ExternalIntegrationResponse"
      },
      "type": "array",
      "title": "Items"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    },
    "continuation_token": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Continuation Token"
    },
    "total": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total"
    }
  },
  "type": "object",
  "required": [
    "items",
    "has_more"
  ],
  "$defs": {
    "ExternalIntegrationResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid",
          "title": "Workspace Id"
        },
        "name": {
          "type": "string",
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$",
          "title": "Name"
        },
        "display_name": {
          "$ref": "#/$defs/NameString"
        },
        "description": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4096
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "is_active": {
          "type": "boolean",
          "title": "Is Active"
        },
        "created_by_entity_id": {
          "type": "string",
          "format": "uuid",
          "title": "Created By Entity Id"
        },
        "created_by_credential_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created By Credential Id"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "workspace_id",
        "name",
        "display_name",
        "is_active",
        "created_by_entity_id"
      ],
      "title": "ExternalIntegrationResponse"
    },
    "NameString": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    }
  }
}