{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-update-library-item-output-schema.json",
  "title": "UpdateLibraryItemOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-operations-api-openapi.yml#/components/schemas/UpdateLibraryItemOutput",
  "type": "object",
  "properties": {
    "libraryItemId": {
      "type": "string",
      "description": "The unique identifier of the updated library item."
    },
    "appId": {
      "type": "string",
      "description": "The unique identifier of the Q App associated with the library item."
    },
    "appVersion": {
      "type": "integer",
      "description": "The version of the Q App associated with the library item."
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Category"
      },
      "description": "The categories associated with the updated library item."
    },
    "status": {
      "type": "string",
      "description": "The new status of the updated library item."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the library item was originally created."
    },
    "createdBy": {
      "type": "string",
      "description": "The user who originally created the library item."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the library item was last updated."
    },
    "updatedBy": {
      "type": "string",
      "description": "The user who last updated the library item."
    },
    "ratingCount": {
      "type": "integer",
      "description": "The number of ratings the library item has received."
    },
    "isRatedByUser": {
      "type": "boolean",
      "description": "Whether the current user has rated the library item."
    },
    "userCount": {
      "type": "integer",
      "description": "The number of users who have the associated Q App."
    },
    "isVerified": {
      "type": "boolean",
      "description": "Indicates whether the library item has been verified."
    }
  },
  "required": [
    "libraryItemId",
    "appId",
    "appVersion",
    "categories",
    "status",
    "createdAt",
    "createdBy",
    "ratingCount"
  ],
  "$defs": {
    "Category": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the category."
        },
        "title": {
          "type": "string",
          "description": "The title or name of the category."
        },
        "color": {
          "type": "string",
          "description": "The color of the category"
        },
        "appCount": {
          "type": "integer",
          "description": "The number of published Amazon Q Apps associated with a category"
        }
      },
      "required": [
        "id",
        "title"
      ]
    }
  }
}