Episodes_ReviewSplitProposals
const url = 'https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:reviewSplitProposals';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"parent":"example","episodes":["example"],"run":"example","decision":"DECISION_UNSPECIFIED","validateOnly":true,"requestId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:reviewSplitProposals \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "parent": "example", "episodes": [ "example" ], "run": "example", "decision": "DECISION_UNSPECIFIED", "validateOnly": true, "requestId": "example" }'Accepts or rejects the splits preparation proposed for an upload’s takes (SplitProposal). Accept draws each proposal on its take’s draft, as a person’s split is drawn: the pieces exist only in a version published from it. Reject closes the proposal and leaves the take as it is; a rejected proposal can be accepted later. A take that cannot be decided is left, with its reason, and the others go on. A person or an API key decides; no model does.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The account id.
The dataset id.
Request Body required
Section titled “Request Body required ”Request for Episodes.ReviewSplitProposals.
object
Accounts/{account}/datasets/{dataset}: must be the upload.
The takes whose proposals to decide. Empty: every open proposal of
run.
The run whose proposals to decide: a preparation run (Preparation.run_id) or a check run. On each take it names one row: of the proposals it wrote and those that carry its windows, in any state, the open one, else the newest. Empty: the upload’s newest preparation run.
Accept or reject.
Report what would be decided and left, without writing it.
Optional UUID identifying this logical edit. Reusing it with the same caller and request returns the original result; different input conflicts. When absent, each call starts a new logical edit.
Responses
Section titled “ Responses ”OK
Response for Episodes.ReviewSplitProposals.
object
The proposals decided, as they stand now.
Where preparation or a check would cut or trim one take: the windows it would keep, and what became of that. Nothing is published: the take stays one episode until a person or an API key accepts the proposal (ReviewSplitProposals). A take has one open proposal, whoever proposed it: its windows are where every source’s windows overlap. When they overlap nowhere, nothing is proposed: the take has no proposal, and GetPreparation lists it as a take the run did not cut. A split preparation published before proposals existed reads as APPLIED.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}: the take.
The run that proposed it: a preparation run (Preparation.run_id) or a check run.
The windows kept, one or more, in time order, in seconds from the take’s start. Two or more are pieces; one is a trim. What lies between them, before the first and after the last is dropped.
The trim window, in seconds from the start of the recording.
object
First second kept.
Last second kept.
Where it stands.
Who made the last decision: a person, or an API key acting for none. A
person’s own API key decides as that person, with the key in api_key.
Unset while PROPOSED, and for APPLIED.
object
What kind of actor it is.
The person’s user id when kind is PERSON; empty otherwise.
The person’s display name at the time, for rendering without a lookup.
The rule code, or for a MODEL the Qualia model tier (e.g. “qualia-vlm”; “qualia” for any other model), when not a person.
The run a model or rule finding came from, when it has one.
The API key’s id when a person acted through one; empty for a session. Never the key itself.
Signed identity evidence recorded with the change, kept apart from the principal above. Unset on older records and wherever none was signed.
object
How the principal authenticated.
The user id of a person verified as starting the work: the person of a session, or the person a trusted service’s signed job record names. Empty when nobody was verified.
The initiator’s display name at the time, never their email.
The user id of the key’s creator at the time. Not who used the key.
Who owned the key at the time.
The owning space’s id (a workspace or the organization) when
credential_owner is SPACE.
When.
For APPLIED: empty when UnsplitEpisodes can restore the take, else why it cannot (“piece 18.2: relabelled by Fabian”). Empty in every other state.
Each cut between two windows, in time order: one fewer than windows,
so none for a trim.
Why preparation would cut the take at one place: the model’s answer when it checked the frames there.
object
Where the window after the cut starts, in seconds from the take’s start.
How sure the model was.
The model’s reason, in its own words (“the person resets the cloth and starts folding again”). Empty when not recorded.
Why the first window starts after the take does (a trimmed start), in its proposer’s words (“Tracking lost 0.00-0.50 s (0.50 s)”). Empty when nothing before it is dropped, or the proposer said nothing.
Why the last window ends before the take does (a trimmed end), in its proposer’s words. Empty when nothing after it is dropped, or the proposer said nothing.
The checks whose part the proposal carries, by check id (“heuristic.nan”), whichever run wrote it; none for preparation’s own cut. An issue of the free NaN check opens a proposal that carries “heuristic.nan”.
The takes left as they were, each with why.
A take a call left as it was, and why. The call goes on with the others.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}
Why, in one sentence (“the take has a saved drawing; open it in the studio”).
Example
{ "reviewed": [ { "state": "STATE_UNSPECIFIED", "decidedBy": { "kind": "KIND_UNSPECIFIED", "attribution": { "authentication": "AUTHENTICATION_UNSPECIFIED", "credentialOwner": "CREDENTIAL_OWNER_UNSPECIFIED" } }, "cuts": [ { "confidence": "CONFIDENCE_UNSPECIFIED" } ] } ]}default
Section titled “default ”Default error response
A refusal from the API itself.
object
The gRPC code name in upper case, e.g. NOT_FOUND.
Whether the same call may succeed if retried.
Empty, except when a dataset copy or move is refused: then one google.rpc.ErrorInfo with the refusal’s reason code, its domain and, in metadata, the datasets it names.
object
A refusal from the gateway before the call reaches the API, for example 401 bad or missing API key, 403 key lacks the scope or environment closed, 413 body too large.
object
What went wrong.
Example generated
{ "code": "example", "message": "example", "retryable": true, "details": [ {} ]}