From 1d403f8155306027f6f2c899186af79f757b2da6 Mon Sep 17 00:00:00 2001 From: Dean Wenstrand Date: Sat, 20 Jun 2026 14:40:40 -0700 Subject: [PATCH] Add lastSegmentUploadedAt to UploadStreamGQL Surfaces the timestamp of the most recently uploaded chunk so clients can tell an actively-uploading stream from a partially-uploaded, stalled/paused one (combined with isCompleted). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/index.tsx | 1 + src/schema.gql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index d40e6a4..8c68282 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3541,6 +3541,7 @@ export type UploadStreamGql = { initPlaylistUploadStatus?: Maybe; isCompleted: Scalars["Boolean"]["output"]; lastIntendedSegmentBound?: Maybe; + lastSegmentUploadedAt?: Maybe; linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; resolution: VideoResolutionGql; diff --git a/src/schema.gql b/src/schema.gql index 7a6d0d0..1acdda3 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -530,6 +530,7 @@ type UploadStreamGQL { initPlaylistUploadStatus: InitPlaylistUploadStatusEnum lowestUnuploadedSegmentIndex: Int! uploadCompletionCursor: Int! + lastSegmentUploadedAt: DateTime errors: [StreamErrorGQL!]! createdAt: DateTime! updatedAt: DateTime! -- 2.49.1