JSONAPIXtreamCategory: {
    type: "channel-category" | "movie-category" | "show-category";
    id: string;
    attributes: { name: string };
    relationships?: {
        parent?: {
            data: {
                type: "channel-category" | "movie-category" | "show-category";
                id: string;
            };
        };
    };
}

JSON:API Xtream category information

This type represents a content category in the Xtream system in JSON:API format

Type declaration

  • type: "channel-category" | "movie-category" | "show-category"

    The resource type (channel-category, movie-category, or show-category)

  • id: string

    The unique identifier for the category

  • attributes: { name: string }

    The category attributes

    • name: string

      The display name of the category

  • Optionalrelationships?: {
        parent?: {
            data: {
                type: "channel-category" | "movie-category" | "show-category";
                id: string;
            };
        };
    }

    The category relationships

    • Optionalparent?: {
          data: {
              type: "channel-category" | "movie-category" | "show-category";
              id: string;
          };
      }

      The parent category relationship if applicable

      • data: { type: "channel-category" | "movie-category" | "show-category"; id: string }
        • type: "channel-category" | "movie-category" | "show-category"

          The parent category type

        • id: string

          The ID of the parent category