Compare commits
35 Commits
dean/usage
...
dean/batch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0eb627479a | ||
| 1914b2f5c0 | |||
|
|
722b2ca2b0 | ||
| 79f38fa45f | |||
|
|
16684f0057 | ||
|
|
6a599d7d2b | ||
| 2886d2f5b8 | |||
|
|
8441bb12e9 | ||
| 17a518429a | |||
| 33eb213cc9 | |||
| 3b66cb3270 | |||
| d67fdd9fee | |||
| d787e5e9a2 | |||
| 1d73b2d67b | |||
|
|
aa731b85fc | ||
| 644f70c3b0 | |||
| 1a95439ed2 | |||
| 5e14cd2201 | |||
|
|
9ec52d9d94 | ||
| 4576b25dae | |||
| 650b3bc13c | |||
| 6d9cb4126e | |||
| feeb5b7038 | |||
| 3340314166 | |||
| 6b8fdd4262 | |||
| bfaed33c89 | |||
|
|
1ce3aaed1b | ||
| 1bd03f2bbe | |||
|
|
4a1c41aae1 | ||
|
|
4122284bbd | ||
| b30dbd01f5 | |||
| 6d13dc3eb1 | |||
| e3524cab97 | |||
| 303261f2d7 | |||
| 20a70fad2a |
1409
src/index.tsx
1409
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
|
uploadCompletionCursor
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
isCompleted
|
||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
@@ -77,6 +78,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
replies {
|
replies {
|
||||||
id
|
id
|
||||||
message
|
message
|
||||||
|
replyToCommentId
|
||||||
user {
|
user {
|
||||||
...UserSocialsFields
|
...UserSocialsFields
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -13,8 +29,24 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
|
|||||||
25
src/operations/legacy_shotsim.gql
Normal file
25
src/operations/legacy_shotsim.gql
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Legacy shot-sim operations still used by mobile master's
|
||||||
|
# LiveStreamPicker / RecordedShotPicker; remove when those are deleted.
|
||||||
|
|
||||||
|
query GetRecordedStreams($limit: Int! = 25) {
|
||||||
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
||||||
|
includePrivate: MINE
|
||||||
|
feedInput: { allUsers: true }
|
||||||
|
) {
|
||||||
|
videos {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
createdAt
|
||||||
|
screenshotUri
|
||||||
|
framesPerSecond
|
||||||
|
totalShots
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
54
src/operations/recorded_shots.gql
Normal file
54
src/operations/recorded_shots.gql
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# Lightweight two-step picker data for Shot Lab's video-first source: the
|
||||||
|
# caller's recent videos (completed or still uploading), then that video's
|
||||||
|
# shots. The stream fields hint at "actively updating" without gating.
|
||||||
|
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
||||||
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
includeCallersVideos: false
|
||||||
|
includePrivate: MINE
|
||||||
|
feedInput: { userId: $userId }
|
||||||
|
) {
|
||||||
|
videos {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
createdAt
|
||||||
|
screenshotUri
|
||||||
|
framesPerSecond
|
||||||
|
totalShots
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
lastSegmentUploadedAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: { videoId: [$videoId] }
|
||||||
|
shotsOrdering: { orderings: [{ startFrame: { descending: false } }] }
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
|
shots {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
startFrame
|
||||||
|
endFrame
|
||||||
|
serializedShotPaths {
|
||||||
|
b64EncodedBuffer
|
||||||
|
}
|
||||||
|
pocketingIntentionFeatures {
|
||||||
|
make
|
||||||
|
}
|
||||||
|
pocketingIntentionInfo {
|
||||||
|
pocketId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
99
src/operations/session-coach.gql
Normal file
99
src/operations/session-coach.gql
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
query GetSessionCoach($videoId: Int!) {
|
||||||
|
getSessionCoach(videoId: $videoId) {
|
||||||
|
videoId
|
||||||
|
processingId
|
||||||
|
analysisVersion
|
||||||
|
state
|
||||||
|
generatedAt
|
||||||
|
processingStatus
|
||||||
|
ineligibilityReason
|
||||||
|
summary
|
||||||
|
shotCount
|
||||||
|
madeCount
|
||||||
|
missedCount
|
||||||
|
unknownOutcomeCount
|
||||||
|
analyzedShotCount
|
||||||
|
makePercentage
|
||||||
|
primaryCandidate {
|
||||||
|
...SessionCoachCandidateFields
|
||||||
|
}
|
||||||
|
candidates {
|
||||||
|
...SessionCoachCandidateFields
|
||||||
|
}
|
||||||
|
agentGeneration {
|
||||||
|
...SessionCoachGenerationFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RequestSessionCoachGeneration($videoId: Int!) {
|
||||||
|
requestSessionCoachGeneration(videoId: $videoId) {
|
||||||
|
state
|
||||||
|
agentGeneration {
|
||||||
|
...SessionCoachGenerationFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment SessionCoachCandidateFields on SessionCoachCandidateGQL {
|
||||||
|
id
|
||||||
|
rank
|
||||||
|
family
|
||||||
|
kind
|
||||||
|
title
|
||||||
|
body
|
||||||
|
action
|
||||||
|
supportingShotIds
|
||||||
|
drillId
|
||||||
|
limitations
|
||||||
|
evidence {
|
||||||
|
bucketKey
|
||||||
|
bucketLabel
|
||||||
|
attemptCount
|
||||||
|
madeCount
|
||||||
|
missedCount
|
||||||
|
makePercentage
|
||||||
|
comparisonAttemptCount
|
||||||
|
comparisonMadeCount
|
||||||
|
comparisonMakePercentage
|
||||||
|
patternShotCount
|
||||||
|
score
|
||||||
|
rankReason
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment SessionCoachGenerationFields on SessionCoachGenerationGQL {
|
||||||
|
id
|
||||||
|
state
|
||||||
|
createdAt
|
||||||
|
completedAt
|
||||||
|
decision {
|
||||||
|
selectedCandidateId
|
||||||
|
title
|
||||||
|
body
|
||||||
|
suggestedAction
|
||||||
|
drillId
|
||||||
|
drillReason
|
||||||
|
practiceAttemptCount
|
||||||
|
practiceTarget
|
||||||
|
}
|
||||||
|
diagnostics {
|
||||||
|
analysisVersion
|
||||||
|
promptVersion
|
||||||
|
providerKey
|
||||||
|
modelName
|
||||||
|
inputHash
|
||||||
|
attemptCount
|
||||||
|
maxAttempts
|
||||||
|
enqueueCount
|
||||||
|
latencyMs
|
||||||
|
inputTokens
|
||||||
|
cachedInputTokens
|
||||||
|
outputTokens
|
||||||
|
failureCode
|
||||||
|
updatedAt
|
||||||
|
startedAt
|
||||||
|
lastEnqueuedAt
|
||||||
|
abstentionReason
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,8 +24,19 @@ query GetLiveTableState($videoId: Int!) {
|
|||||||
identifierToColor {
|
identifierToColor {
|
||||||
hex
|
hex
|
||||||
}
|
}
|
||||||
homography {
|
}
|
||||||
...HomographyInfo
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetShotTableState($shotId: Int!) {
|
||||||
|
getShotTableState(shotId: $shotId) {
|
||||||
|
shotId
|
||||||
|
videoId
|
||||||
|
frameIndex
|
||||||
|
tableState {
|
||||||
|
identifierToPosition
|
||||||
|
identifierToColor {
|
||||||
|
hex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ query GetVideoSocialDetailsById($videoId: Int!) {
|
|||||||
replies {
|
replies {
|
||||||
id
|
id
|
||||||
message
|
message
|
||||||
|
replyToCommentId
|
||||||
user {
|
user {
|
||||||
...UserSocialsFields
|
...UserSocialsFields
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,52 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
|
uploadCompletionCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation GetUploadLinks($videoId: Int!, $segmentIndexes: [Int!]!) {
|
||||||
|
getUploadLinks(videoId: $videoId, segmentIndexes: $segmentIndexes) {
|
||||||
|
value {
|
||||||
|
... on UploadLinkBatch {
|
||||||
|
links {
|
||||||
|
segmentIndex
|
||||||
|
uploadUrl
|
||||||
|
headers {
|
||||||
|
key
|
||||||
|
value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
alreadyUploaded
|
||||||
|
}
|
||||||
|
... on GetUploadLinkErrors {
|
||||||
|
error {
|
||||||
|
... on MustHaveSetForUploadLinkErr {
|
||||||
|
resolution
|
||||||
|
framesPerSecond
|
||||||
|
}
|
||||||
|
... on ProcessingFailedErr {
|
||||||
|
processing {
|
||||||
|
status
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
... on StorageLimitExceededErr {
|
||||||
|
reason
|
||||||
|
tierName
|
||||||
|
retainedStorageUsedBytes
|
||||||
|
retainedStorageLimitBytes
|
||||||
|
remainingStorageBytes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,6 +173,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
|||||||
name
|
name
|
||||||
startTime
|
startTime
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
isCompleted
|
isCompleted
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
|
|||||||
3191
src/schema.gql
3191
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user