{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-get-library-item-output-schema.json",
  "title": "GetLibraryItemOutput",
  "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/GetLibraryItemOutput",
  "type": "object",
  "properties": {
    "libraryItemId": {
      "type": "string",
      "description": "The unique identifier of the 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 library item for discovery."
    },
    "status": {
      "type": "string",
      "description": "The status of the library item, such as \"Published\"."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the library item was created."
    },
    "createdBy": {
      "type": "string",
      "description": "The user who 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 from users."
    },
    "isRatedByUser": {
      "type": "boolean",
      "description": "Whether the current user has rated the library item."
    },
    "userCount": {
      "type": "integer",
      "description": "The number of users who have associated the Q App with their account."
    },
    "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"
      ]
    }
  }
}