{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-thread-response-schema.json",
  "title": "ChatThreadResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-applications-api-openapi.yml#/components/schemas/ChatThreadResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "application_variant_id": {
      "type": "string",
      "title": "Application Variant Id",
      "can_patch": false
    },
    "thread_metadata": {
      "title": "Thread Metadata",
      "additionalProperties": true,
      "type": "object"
    },
    "account_id": {
      "type": "string",
      "title": "Account Id",
      "description": "The ID of the account that owns the given entity.",
      "can_patch": false
    },
    "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."
    },
    "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."
    }
  },
  "type": "object",
  "required": [
    "id",
    "title",
    "application_variant_id",
    "account_id",
    "created_by_user_id",
    "created_by_identity_type",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "IdentifierTypeEnum": {
      "type": "string",
      "enum": [
        "user",
        "service_account"
      ],
      "title": "IdentifierTypeEnum"
    }
  }
}