From 6f631897037faba6b33ce6624a781d8ecd20b38a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 9 Jul 2026 20:35:48 -0700 Subject: [PATCH] Add RGBColorGQL and identifierToColor to TableStateGQL Regenerated from backend: Shot Lab table-state endpoints now expose a per-ball dominant color (RGB + hex) index-aligned with ball positions. --- src/index.tsx | 9 +++++++++ src/schema.gql | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index ae27da5..3da3a46 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3338,6 +3338,14 @@ export type QuotaStatusGql = { tierName: Scalars["String"]["output"]; }; +export type RgbColorGql = { + __typename?: "RGBColorGQL"; + b: Scalars["Int"]["output"]; + g: Scalars["Int"]["output"]; + hex: Scalars["String"]["output"]; + r: Scalars["Int"]["output"]; +}; + export enum ReactionEnum { Bullseye = "BULLSEYE", Heart = "HEART", @@ -3803,6 +3811,7 @@ export type SyncAppleSubscriptionResultGql = { export type TableStateGql = { __typename?: "TableStateGQL"; homography?: Maybe; + identifierToColor: Array>; identifierToPosition: Array>; }; diff --git a/src/schema.gql b/src/schema.gql index 12476a0..844aefd 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1020,6 +1020,14 @@ type PlayerClusterShotGQL { type TableStateGQL { identifierToPosition: [[Float!]!]! homography: HomographyInfoGQL + identifierToColor: [RGBColorGQL]! +} + +type RGBColorGQL { + r: Int! + g: Int! + b: Int! + hex: String! } input HomographyInputGQL {