From d31d171ac330bfd234afd3d45115696166a668ab Mon Sep 17 00:00:00 2001 From: Loewy Date: Tue, 3 Feb 2026 16:30:56 -0800 Subject: [PATCH] getQuotaStatus, expectedDurationSeconds in createUploadStream --- src/index.tsx | 14 ++++++++++++++ src/schema.gql | 13 +++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 9679d75..908710e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2432,6 +2432,7 @@ export type MutationCreateSubscriptionArgs = { }; export type MutationCreateUploadStreamArgs = { + expectedDurationSeconds?: InputMaybe; videoMetadata: VideoMetadataInput; }; @@ -2716,6 +2717,7 @@ export type Query = { getMedals: RequestedMedalsGql; getOrderedShots: GetShotsResult; getPlayTime: UserPlayTimeGql; + getQuotaStatus: QuotaStatusGql; getRuns: GetRunsResult; getShotAnnotationTypes: Array; getShots: Array; @@ -2905,6 +2907,18 @@ export type QueryWaitForArgs = { duration: Scalars["Float"]["input"]; }; +export type QuotaStatusGql = { + __typename?: "QuotaStatusGQL"; + canUpload: Scalars["Boolean"]["output"]; + durationLimitSeconds?: Maybe; + durationRemainingSeconds?: Maybe; + durationUsedSeconds: Scalars["Float"]["output"]; + maxVideoDurationSeconds?: Maybe; + periodEnd: Scalars["DateTime"]["output"]; + periodStart: Scalars["DateTime"]["output"]; + tierName: Scalars["String"]["output"]; +}; + export enum ReactionEnum { Bullseye = "BULLSEYE", Heart = "HEART", diff --git a/src/schema.gql b/src/schema.gql index 33a9be9..97d29f5 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -97,6 +97,7 @@ type Query { ): UserRelationshipsResult! getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL! getUserSubscriptionStatus: UserSubscriptionStatusGQL! + getQuotaStatus: QuotaStatusGQL! getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL! getUserVideos( userId: Int = null @@ -977,6 +978,17 @@ enum StripeSubscriptionStatusEnum { PAUSED } +type QuotaStatusGQL { + tierName: String! + periodStart: DateTime! + periodEnd: DateTime! + durationUsedSeconds: Float! + durationLimitSeconds: Int + maxVideoDurationSeconds: Int + durationRemainingSeconds: Float + canUpload: Boolean! +} + type UserPlayTimeGQL { totalSeconds: Float! } @@ -1082,6 +1094,7 @@ type Mutation { findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput! + expectedDurationSeconds: Float = null ): CreateUploadStreamReturn! getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn! getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!