{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-paginated-theme-response-schema.json",
  "title": "PaginatedThemeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-chat-themes-api-openapi.yml#/components/schemas/PaginatedThemeResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/ThemeResponse"
      },
      "type": "array",
      "title": "Items",
      "description": "The data returned for the current page."
    },
    "total_item_count": {
      "type": "integer",
      "title": "Total Item Count",
      "description": "The total number of items of the query"
    },
    "current_page": {
      "type": "integer",
      "title": "Current Page",
      "description": "The current page number."
    },
    "items_per_page": {
      "type": "integer",
      "title": "Items Per Page",
      "description": "The number of items per page."
    }
  },
  "type": "object",
  "required": [
    "items",
    "total_item_count",
    "current_page",
    "items_per_page"
  ],
  "$defs": {
    "IdentifierTypeEnum": {
      "type": "string",
      "enum": [
        "user",
        "service_account"
      ],
      "title": "IdentifierTypeEnum"
    },
    "ThemeResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "theme_vars": {
          "$ref": "#/$defs/ThemeVars"
        },
        "logo_blob": {
          "type": "string",
          "title": "Logo Blob"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At",
          "description": "The date and time when the entity was created in ISO format."
        },
        "archived_at": {
          "title": "Archived At",
          "description": "The date and time when the entity was archived in ISO format.",
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At",
          "description": "The date and time when the entity was last updated in ISO format."
        },
        "created_by_user_id": {
          "type": "string",
          "title": "Created By User Id",
          "description": "The user who originally created the entity."
        },
        "created_by_identity_type": {
          "$ref": "#/$defs/IdentifierTypeEnum",
          "description": "The type of identity that created the entity."
        },
        "account_id": {
          "type": "string",
          "title": "Account Id",
          "description": "The ID of the account that owns the given entity.",
          "can_patch": false
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "theme_vars",
        "logo_blob",
        "created_at",
        "updated_at",
        "created_by_user_id",
        "created_by_identity_type",
        "account_id"
      ],
      "title": "ThemeResponse"
    },
    "ThemeVars": {
      "properties": {
        "accentPrimary": {
          "title": "Accentprimary",
          "type": "string"
        },
        "accentSecondary": {
          "title": "Accentsecondary",
          "type": "string"
        },
        "background": {
          "title": "Background",
          "type": "string"
        },
        "foreground": {
          "title": "Foreground",
          "type": "string"
        }
      },
      "type": "object",
      "title": "ThemeVars"
    }
  }
}