@clipwright/core 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +5 -0
- package/dist/api-failure.d.ts +21 -1
- package/dist/api-failure.js +38 -1
- package/dist/api-failure.js.map +1 -1
- package/dist/edit-document.d.ts +335 -0
- package/dist/edit-document.js +110 -0
- package/dist/edit-document.js.map +1 -0
- package/dist/edit-faceless.d.ts +24 -0
- package/dist/edit-faceless.js +39 -0
- package/dist/edit-faceless.js.map +1 -0
- package/dist/edit-operations.d.ts +34 -0
- package/dist/edit-operations.js +13 -0
- package/dist/edit-operations.js.map +1 -0
- package/dist/edit-primitives.d.ts +8 -0
- package/dist/edit-primitives.js +12 -0
- package/dist/edit-primitives.js.map +1 -0
- package/dist/edit-rules.d.ts +60 -0
- package/dist/edit-rules.js +44 -0
- package/dist/edit-rules.js.map +1 -0
- package/dist/edit-shots.d.ts +548 -0
- package/dist/edit-shots.js +61 -0
- package/dist/edit-shots.js.map +1 -0
- package/dist/edit-validate.d.ts +57 -0
- package/dist/edit-validate.js +248 -0
- package/dist/edit-validate.js.map +1 -0
- package/dist/edit.d.ts +6 -0
- package/dist/edit.js +8 -0
- package/dist/edit.js.map +1 -0
- package/dist/endpoints.d.ts +5 -0
- package/dist/endpoints.js +33 -19
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +30 -0
- package/dist/errors.js +42 -0
- package/dist/errors.js.map +1 -1
- package/dist/faceless-media-record.d.ts +100 -0
- package/dist/faceless-media-record.js +25 -0
- package/dist/faceless-media-record.js.map +1 -0
- package/dist/faceless-public-plan.d.ts +1 -0
- package/dist/faceless-public-plan.js +2 -1
- package/dist/faceless-public-plan.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/uploads.d.ts +4 -2
- package/dist/uploads.js +5 -3
- package/dist/uploads.js.map +1 -1
- package/package.json +5 -1
- package/dist/__fixtures__/queue-promises.d.ts +0 -8
- package/dist/__fixtures__/queue-promises.js +0 -22
- package/dist/__fixtures__/queue-promises.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,65 @@ a customer reading it should not miss what appeared in the product. Like *Server
|
|
|
16
16
|
they are live from the day the web app was deployed, not from the package release they are
|
|
17
17
|
listed under.
|
|
18
18
|
|
|
19
|
+
## [0.27.0] - 2026-10-13
|
|
20
|
+
|
|
21
|
+
The shots of a finished video can be read, and the draft of an edit can be kept: `getRunShots`, `getRunEdit` and
|
|
22
|
+
`saveRunEdit` in the SDK, `shots`, `edit-show` and `edit-save` in the CLI, and the MCP tool `get_run_shots`. A draft
|
|
23
|
+
charges nothing and renders nothing, and no call makes a video from it yet.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- *Server-side:* the API reads the shots of a run and keeps the draft of an edit. `GET /v1/runs/{id}/shots` returns
|
|
28
|
+
each shot of a finished video: its span in frames, its kind, the words it covers, its description and a signed link
|
|
29
|
+
to its source picture or clip. A run with no shots to show answers `planned: false` with the reason, which is an
|
|
30
|
+
answer and not an error. `GET` and `POST /v1/runs/{id}/edit` read and save a draft: a document of the wanted
|
|
31
|
+
timeline, stored with a version. A save names the version it was written against and is refused with 409
|
|
32
|
+
`edit_conflict` when the draft has another. The three calls are free. A draft charges nothing and renders
|
|
33
|
+
nothing, and no call makes a video from it. (clipwright#604)
|
|
34
|
+
- `@clipwright/sdk`: `getRunShots(runId)`, `getRunEdit(runId)` and `saveRunEdit(runId, { base_version, document })`.
|
|
35
|
+
The two 409 refusals of a draft arrive as `ClipwrightApiError` with their fields: `failure.version` on
|
|
36
|
+
`edit_conflict`, `failure.state` and `failure.reason` on `run_not_editable`. `saveRunEdit` sends one request and
|
|
37
|
+
never repeats it. (clipwright#604)
|
|
38
|
+
- `@clipwright/cli`: `shots <run>` lists the shots of a run, `edit-show <run>` prints the draft as JSON, and
|
|
39
|
+
`edit-save <run> --file <path>` saves the file `edit-show` printed. A save answered 409 reads the draft once: when
|
|
40
|
+
the draft already holds the file's document one version later, an earlier send went through and the save is
|
|
41
|
+
reported as done; otherwise the command reports the conflict and the stored version. (clipwright#604)
|
|
42
|
+
- `@clipwright/mcp-server`: the tool `get_run_shots`, read-only. The MCP server now lists fifteen tools. The draft
|
|
43
|
+
of an edit has no tool: it is read and saved over REST, the SDK and the CLI. (clipwright#604)
|
|
44
|
+
- `@clipwright/core` exports the contract of these calls, also on the subpath `@clipwright/core/edit`: `runShots`,
|
|
45
|
+
`runEdit` and `saveRunEdit`, which the API emits and takes, and `runShotsRead` and `runEditRead`, which a client
|
|
46
|
+
parses a response with. The read schemas take as plain strings the names a later API may add: a kind of shot, an
|
|
47
|
+
action, a line, the code of an issue. The document of a draft keeps the keys a client does not know.
|
|
48
|
+
`parseApiFailure` returns the kinds `edit_conflict` and `run_not_editable` for the two 409 bodies, and
|
|
49
|
+
`agentFailureReport` carries `version`, `state` and `reason`. (clipwright#604)
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- **Breaking:** `@clipwright/core`, for TypeScript callers: the union `ApiFailure` has two more members,
|
|
54
|
+
`edit_conflict` and `run_not_editable`. A `switch` over `failure.kind` that is checked for exhaustiveness does not
|
|
55
|
+
compile until it handles them, and a 409 body with either code no longer parses as `client_error`. Code that
|
|
56
|
+
does not switch on the kind is not affected. (clipwright#604)
|
|
57
|
+
- `@clipwright/sdk`: a `ClipwrightResponseError` of a call that starts no run now reads "No run was created and no
|
|
58
|
+
credits were spent, and a retry creates no run and spends none." in place of "Nothing was created; retrying is
|
|
59
|
+
safe.". The old sentence was false of `setActorDefaults` and would be of `saveRunEdit`: such a call may have
|
|
60
|
+
stored what it was sent. (clipwright#604)
|
|
61
|
+
- *Dashboard:* the table "When a call fails" of the API docs lists the two refusals of a draft, and its row of
|
|
62
|
+
ordinary refusals names status 422, which an upload that is not a readable image is answered with.
|
|
63
|
+
(clipwright#604)
|
|
64
|
+
- *Server-side:* an uploaded image is kept for 30 days instead of 7, as long as the media of a finished run. The
|
|
65
|
+
link returned by `POST /v1/uploads` is still valid for 24 hours; upload the same file again to get a fresh one.
|
|
66
|
+
`@clipwright/core` states the period as `UPLOAD_OBJECT_RETENTION_DAYS`, now 30. (clipwright#607)
|
|
67
|
+
|
|
68
|
+
## [0.26.1] - 2026-10-09
|
|
69
|
+
|
|
70
|
+
A metadata patch: the npm description of `@clipwright/mcp-server` no longer carries a catalog claim token.
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- `@clipwright/mcp-server`: the package description on npm returns to its text before 0.26.0. That release appended
|
|
75
|
+
a one-time token, which a catalog read to confirm who owns its listing of the server. The catalog has confirmed it,
|
|
76
|
+
so the token is gone. No tool, flag or behavior changed. (clipwright#570)
|
|
77
|
+
|
|
19
78
|
## [0.26.0] - 2026-10-09
|
|
20
79
|
|
|
21
80
|
`make_faceless` takes a narration voice by name: `list_voices` with `skill=make_faceless` lists seventeen voices in
|
package/README.md
CHANGED
|
@@ -11,6 +11,11 @@ resolution resolution rules, speech-pacing rules, the voice catalog, and the fie
|
|
|
11
11
|
disposition registry — the table that records, per input field, whether it is
|
|
12
12
|
honored, rejected, or accepted-with-a-warning.
|
|
13
13
|
|
|
14
|
+
The `./edit` subpath holds the contract of a run's shots and of the draft of an
|
|
15
|
+
edit: `runShots`, `runEdit` and `saveRunEdit` are what the API emits and takes;
|
|
16
|
+
`runShotsRead` and `runEditRead` are what a client parses a response with, so
|
|
17
|
+
that a name a later API adds does not break it.
|
|
18
|
+
|
|
14
19
|
The `./idempotency` subpath export is separate because it pulls in a Node
|
|
15
20
|
built-in and would otherwise break bundlers targeting the browser.
|
|
16
21
|
|
package/dist/api-failure.d.ts
CHANGED
|
@@ -32,6 +32,21 @@ export interface NotAdmittedFailure {
|
|
|
32
32
|
status: number;
|
|
33
33
|
message: string;
|
|
34
34
|
}
|
|
35
|
+
/** A save of a draft lost to another save. Terminal for this body: `version` is what is stored now. */
|
|
36
|
+
export interface EditConflictFailure {
|
|
37
|
+
kind: "edit_conflict";
|
|
38
|
+
status: number;
|
|
39
|
+
message: string;
|
|
40
|
+
version: number;
|
|
41
|
+
}
|
|
42
|
+
/** The run has no draft to read or to save: `state` and `reason` are the ones its shots state. */
|
|
43
|
+
export interface RunNotEditableFailure {
|
|
44
|
+
kind: "run_not_editable";
|
|
45
|
+
status: number;
|
|
46
|
+
message: string;
|
|
47
|
+
state: string;
|
|
48
|
+
reason: string | null;
|
|
49
|
+
}
|
|
35
50
|
/** 5xx: the server says the fault is its own. Safe to retry. */
|
|
36
51
|
export interface ServerFailure {
|
|
37
52
|
kind: "server_error";
|
|
@@ -47,7 +62,7 @@ export interface ClientFailure {
|
|
|
47
62
|
/** Code from the body, if the body followed the contract at all. */
|
|
48
63
|
code: string | undefined;
|
|
49
64
|
}
|
|
50
|
-
export type ApiFailure = RateLimitedFailure | InsufficientCreditsFailure | DebtOutstandingFailure | NotAdmittedFailure | ServerFailure | ClientFailure;
|
|
65
|
+
export type ApiFailure = RateLimitedFailure | InsufficientCreditsFailure | DebtOutstandingFailure | NotAdmittedFailure | EditConflictFailure | RunNotEditableFailure | ServerFailure | ClientFailure;
|
|
51
66
|
/** Retry decision in one place. Not retrying a 429 aborts a paid run; retrying a 402 */
|
|
52
67
|
/** loops on a money refusal and burns the rate limit. */
|
|
53
68
|
export declare function isRetryableFailure(failure: ApiFailure): boolean;
|
|
@@ -87,5 +102,10 @@ export interface AgentFailureReport {
|
|
|
87
102
|
balance_credits?: number;
|
|
88
103
|
required_credits?: number;
|
|
89
104
|
debt_credits?: number;
|
|
105
|
+
/** The stored version of a draft, on `edit_conflict`. */
|
|
106
|
+
version?: number;
|
|
107
|
+
/** Why a run has no draft, on `run_not_editable`. */
|
|
108
|
+
state?: string;
|
|
109
|
+
reason?: string | null;
|
|
90
110
|
}
|
|
91
111
|
export declare function agentFailureReport(failure: ApiFailure): AgentFailureReport;
|
package/dist/api-failure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accountNotAdmittedError, apiError, debtOutstandingError, insufficientCreditsError, } from "./errors.js";
|
|
1
|
+
import { accountNotAdmittedError, apiError, debtOutstandingError, editConflictError, insufficientCreditsError, runNotEditableError, } from "./errors.js";
|
|
2
2
|
import { rateLimitedError } from "./rate-limit.js";
|
|
3
3
|
/** Retry decision in one place. Not retrying a 429 aborts a paid run; retrying a 402 */
|
|
4
4
|
/** loops on a money refusal and burns the rate limit. */
|
|
@@ -138,6 +138,8 @@ const BEHAVIOURAL_CODES = new Set([
|
|
|
138
138
|
// Recognized only on its own status, like the three above, so a cached body on a
|
|
139
139
|
// 402 cannot tell the agent that buying credits is pointless.
|
|
140
140
|
accountNotAdmittedError.shape.error.shape.code.value,
|
|
141
|
+
editConflictError.shape.error.shape.code.value,
|
|
142
|
+
runNotEditableError.shape.error.shape.code.value,
|
|
141
143
|
]);
|
|
142
144
|
/** Status + body + header to an actionable failure. The body refines the status but never */
|
|
143
145
|
/** overrides it; on a mismatch the class comes from the status, the text from the body. */
|
|
@@ -189,6 +191,17 @@ export function parseApiFailure(input) {
|
|
|
189
191
|
message: notAdmitted.data.error.message,
|
|
190
192
|
};
|
|
191
193
|
}
|
|
194
|
+
// The two refusals of a draft are recognized on 409 only, each with the fields the caller acts on.
|
|
195
|
+
const conflict = status === 409 ? editConflictError.safeParse(body) : undefined;
|
|
196
|
+
if (conflict?.success === true) {
|
|
197
|
+
const { error } = conflict.data;
|
|
198
|
+
return { kind: "edit_conflict", status, message: error.message, version: error.version };
|
|
199
|
+
}
|
|
200
|
+
const notEditable = status === 409 ? runNotEditableError.safeParse(body) : undefined;
|
|
201
|
+
if (notEditable?.success === true) {
|
|
202
|
+
const { error } = notEditable.data;
|
|
203
|
+
return { kind: "run_not_editable", status, message: error.message, state: error.state, reason: error.reason };
|
|
204
|
+
}
|
|
192
205
|
// From here the body is foreign or unparsed. The generic envelope still gives
|
|
193
206
|
// text and code; otherwise the message is built from the status.
|
|
194
207
|
const generic = apiError.safeParse(body);
|
|
@@ -304,6 +317,30 @@ export function agentFailureReport(failure) {
|
|
|
304
317
|
"credits: neither changes the answer. Tell the user the account has no beta access and " +
|
|
305
318
|
"to ask the operator about it.",
|
|
306
319
|
};
|
|
320
|
+
case "edit_conflict":
|
|
321
|
+
return {
|
|
322
|
+
...base,
|
|
323
|
+
status: "FAILED",
|
|
324
|
+
code: "edit_conflict",
|
|
325
|
+
retryable: false,
|
|
326
|
+
// A save repeated after a lost answer meets its own write here, so the advice starts with a read.
|
|
327
|
+
next_action: `STOP. Do NOT repeat this save unchanged: the draft is at version ${failure.version}, and this call ` +
|
|
328
|
+
"stored nothing. Read the draft. If it already holds your document, an earlier save of it went " +
|
|
329
|
+
"through; otherwise apply your change to the draft you read and save it with that draft's version.",
|
|
330
|
+
version: failure.version,
|
|
331
|
+
};
|
|
332
|
+
case "run_not_editable":
|
|
333
|
+
return {
|
|
334
|
+
...base,
|
|
335
|
+
status: "FAILED",
|
|
336
|
+
code: "run_not_editable",
|
|
337
|
+
retryable: false,
|
|
338
|
+
next_action: `STOP. This run has no draft to read or to save: its state is ${failure.state}` +
|
|
339
|
+
`${failure.reason === null ? "" : ` (${failure.reason})`}. Nothing was stored, and the same call ` +
|
|
340
|
+
"gives the same answer while that state stands. The shots of the run state the same state and reason.",
|
|
341
|
+
state: failure.state,
|
|
342
|
+
reason: failure.reason,
|
|
343
|
+
};
|
|
307
344
|
case "client_error":
|
|
308
345
|
return {
|
|
309
346
|
...base,
|
package/dist/api-failure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-failure.js","sourceRoot":"","sources":["../src/api-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,C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B,OAAO;gBACL,GAAG,IAAI;gBACP,MAAM,EAAE,QAAQ;gBAChB,IAAI,EAAE,eAAe;gBACrB,SAAS,EAAE,KAAK;gBAChB,kGAAkG;gBAClG,WAAW,EACT,oEAAoE,OAAO,CAAC,OAAO,kBAAkB;oBACrG,gGAAgG;oBAChG,mGAAmG;gBACrG,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB,CAAC;QAEJ,KAAK,kBAAkB;YACrB,OAAO;gBACL,GAAG,IAAI;gBACP,MAAM,EAAE,QAAQ;gBAChB,IAAI,EAAE,kBAAkB;gBACxB,SAAS,EAAE,KAAK;gBAChB,WAAW,EACT,gEAAgE,OAAO,CAAC,KAAK,EAAE;oBAC/E,GAAG,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,0CAA0C;oBAClG,sGAAsG;gBACxG,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC;QAEJ,KAAK,cAAc;YACjB,OAAO;gBACL,GAAG,IAAI;gBACP,MAAM,EAAE,QAAQ;gBAChB,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,QAAQ,OAAO,CAAC,MAAM,EAAE;gBAC9C,SAAS,EAAE,KAAK;gBAChB,WAAW,EACT,uFAAuF;oBACvF,kFAAkF;aACrF,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ShotChange } from "./edit-operations.js";
|
|
3
|
+
import type { PlannedRunShots } from "./edit-shots.js";
|
|
4
|
+
/** Where a shot's media comes from: the source run, a kept candidate, an upload, or a generation to pay for. */
|
|
5
|
+
export declare const editAsset: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
from: z.ZodLiteral<"source">;
|
|
7
|
+
shot_id: z.ZodString;
|
|
8
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
+
from: z.ZodLiteral<"candidate">;
|
|
10
|
+
run_id: z.ZodString;
|
|
11
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12
|
+
from: z.ZodLiteral<"upload">;
|
|
13
|
+
upload_id: z.ZodString;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
from: z.ZodLiteral<"generate">;
|
|
16
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
+
mode: z.ZodLiteral<"retake">;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
mode: z.ZodLiteral<"new_picture">;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
mode: z.ZodLiteral<"edit_picture">;
|
|
23
|
+
instruction: z.ZodString;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
mode: z.ZodLiteral<"animate">;
|
|
26
|
+
motion: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strict>], "mode">;
|
|
28
|
+
}, z.core.$strict>], "from">;
|
|
29
|
+
export type EditAsset = z.infer<typeof editAsset>;
|
|
30
|
+
export declare const editShot: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
track: z.ZodEnum<{
|
|
33
|
+
presenter: "presenter";
|
|
34
|
+
visual: "visual";
|
|
35
|
+
}>;
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
clip: "clip";
|
|
38
|
+
picture: "picture";
|
|
39
|
+
presenter: "presenter";
|
|
40
|
+
}>;
|
|
41
|
+
start_frame: z.ZodNumber;
|
|
42
|
+
end_frame: z.ZodNumber;
|
|
43
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
from: z.ZodLiteral<"source">;
|
|
46
|
+
shot_id: z.ZodString;
|
|
47
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
48
|
+
from: z.ZodLiteral<"candidate">;
|
|
49
|
+
run_id: z.ZodString;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
from: z.ZodLiteral<"upload">;
|
|
52
|
+
upload_id: z.ZodString;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
from: z.ZodLiteral<"generate">;
|
|
55
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
mode: z.ZodLiteral<"retake">;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
mode: z.ZodLiteral<"new_picture">;
|
|
59
|
+
description: z.ZodString;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
mode: z.ZodLiteral<"edit_picture">;
|
|
62
|
+
instruction: z.ZodString;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
mode: z.ZodLiteral<"animate">;
|
|
65
|
+
motion: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strict>], "mode">;
|
|
67
|
+
}, z.core.$strict>], "from">;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type EditShot = z.infer<typeof editShot>;
|
|
70
|
+
/** The whole timeline a revision asks for, written against one source run. */
|
|
71
|
+
export declare const editDocument: z.ZodObject<{
|
|
72
|
+
v: z.ZodLiteral<1>;
|
|
73
|
+
source_run_id: z.ZodString;
|
|
74
|
+
timebase: z.ZodObject<{
|
|
75
|
+
fps: z.ZodNumber;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
duration_frames: z.ZodNumber;
|
|
78
|
+
shots: z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
track: z.ZodEnum<{
|
|
81
|
+
presenter: "presenter";
|
|
82
|
+
visual: "visual";
|
|
83
|
+
}>;
|
|
84
|
+
kind: z.ZodEnum<{
|
|
85
|
+
clip: "clip";
|
|
86
|
+
picture: "picture";
|
|
87
|
+
presenter: "presenter";
|
|
88
|
+
}>;
|
|
89
|
+
start_frame: z.ZodNumber;
|
|
90
|
+
end_frame: z.ZodNumber;
|
|
91
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
from: z.ZodLiteral<"source">;
|
|
94
|
+
shot_id: z.ZodString;
|
|
95
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
96
|
+
from: z.ZodLiteral<"candidate">;
|
|
97
|
+
run_id: z.ZodString;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
from: z.ZodLiteral<"upload">;
|
|
100
|
+
upload_id: z.ZodString;
|
|
101
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
102
|
+
from: z.ZodLiteral<"generate">;
|
|
103
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
|
+
mode: z.ZodLiteral<"retake">;
|
|
105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
106
|
+
mode: z.ZodLiteral<"new_picture">;
|
|
107
|
+
description: z.ZodString;
|
|
108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
109
|
+
mode: z.ZodLiteral<"edit_picture">;
|
|
110
|
+
instruction: z.ZodString;
|
|
111
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
112
|
+
mode: z.ZodLiteral<"animate">;
|
|
113
|
+
motion: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>], "mode">;
|
|
115
|
+
}, z.core.$strict>], "from">;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export type EditDocument = z.infer<typeof editDocument>;
|
|
120
|
+
/** The most a stored draft's document weighs, in bytes of its JSON; the table's check states the same number. */
|
|
121
|
+
export declare const EDIT_DOCUMENT_MAX_BYTES = 256000;
|
|
122
|
+
/** The JSON a document is stored as and its length in bytes: the one place either is computed. */
|
|
123
|
+
export declare function serializeEditDocument(document: EditDocument): {
|
|
124
|
+
json: string;
|
|
125
|
+
bytes: number;
|
|
126
|
+
};
|
|
127
|
+
/** A save of the draft: the whole document and the version it was written against, 0 when no draft was read. */
|
|
128
|
+
export declare const saveRunEdit: z.ZodObject<{
|
|
129
|
+
base_version: z.ZodNumber;
|
|
130
|
+
document: z.ZodObject<{
|
|
131
|
+
v: z.ZodLiteral<1>;
|
|
132
|
+
source_run_id: z.ZodString;
|
|
133
|
+
timebase: z.ZodObject<{
|
|
134
|
+
fps: z.ZodNumber;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
duration_frames: z.ZodNumber;
|
|
137
|
+
shots: z.ZodArray<z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
track: z.ZodEnum<{
|
|
140
|
+
presenter: "presenter";
|
|
141
|
+
visual: "visual";
|
|
142
|
+
}>;
|
|
143
|
+
kind: z.ZodEnum<{
|
|
144
|
+
clip: "clip";
|
|
145
|
+
picture: "picture";
|
|
146
|
+
presenter: "presenter";
|
|
147
|
+
}>;
|
|
148
|
+
start_frame: z.ZodNumber;
|
|
149
|
+
end_frame: z.ZodNumber;
|
|
150
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
|
+
from: z.ZodLiteral<"source">;
|
|
153
|
+
shot_id: z.ZodString;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
from: z.ZodLiteral<"candidate">;
|
|
156
|
+
run_id: z.ZodString;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
from: z.ZodLiteral<"upload">;
|
|
159
|
+
upload_id: z.ZodString;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
from: z.ZodLiteral<"generate">;
|
|
162
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
|
+
mode: z.ZodLiteral<"retake">;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
mode: z.ZodLiteral<"new_picture">;
|
|
166
|
+
description: z.ZodString;
|
|
167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
168
|
+
mode: z.ZodLiteral<"edit_picture">;
|
|
169
|
+
instruction: z.ZodString;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
mode: z.ZodLiteral<"animate">;
|
|
172
|
+
motion: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>], "mode">;
|
|
174
|
+
}, z.core.$strict>], "from">;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
export type SaveRunEdit = z.infer<typeof saveRunEdit>;
|
|
180
|
+
/** The draft of a run's edit. Version 0 is a run with nothing stored: its document changes nothing. */
|
|
181
|
+
export declare const runEdit: z.ZodObject<{
|
|
182
|
+
run_id: z.ZodString;
|
|
183
|
+
version: z.ZodNumber;
|
|
184
|
+
document: z.ZodObject<{
|
|
185
|
+
v: z.ZodLiteral<1>;
|
|
186
|
+
source_run_id: z.ZodString;
|
|
187
|
+
timebase: z.ZodObject<{
|
|
188
|
+
fps: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
duration_frames: z.ZodNumber;
|
|
191
|
+
shots: z.ZodArray<z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
track: z.ZodEnum<{
|
|
194
|
+
presenter: "presenter";
|
|
195
|
+
visual: "visual";
|
|
196
|
+
}>;
|
|
197
|
+
kind: z.ZodEnum<{
|
|
198
|
+
clip: "clip";
|
|
199
|
+
picture: "picture";
|
|
200
|
+
presenter: "presenter";
|
|
201
|
+
}>;
|
|
202
|
+
start_frame: z.ZodNumber;
|
|
203
|
+
end_frame: z.ZodNumber;
|
|
204
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
asset: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
|
+
from: z.ZodLiteral<"source">;
|
|
207
|
+
shot_id: z.ZodString;
|
|
208
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
209
|
+
from: z.ZodLiteral<"candidate">;
|
|
210
|
+
run_id: z.ZodString;
|
|
211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
212
|
+
from: z.ZodLiteral<"upload">;
|
|
213
|
+
upload_id: z.ZodString;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
from: z.ZodLiteral<"generate">;
|
|
216
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
217
|
+
mode: z.ZodLiteral<"retake">;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
mode: z.ZodLiteral<"new_picture">;
|
|
220
|
+
description: z.ZodString;
|
|
221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
222
|
+
mode: z.ZodLiteral<"edit_picture">;
|
|
223
|
+
instruction: z.ZodString;
|
|
224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
225
|
+
mode: z.ZodLiteral<"animate">;
|
|
226
|
+
motion: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strict>], "mode">;
|
|
228
|
+
}, z.core.$strict>], "from">;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
233
|
+
code: z.ZodEnum<{
|
|
234
|
+
action_not_allowed: "action_not_allowed";
|
|
235
|
+
candidate_for_other_shot: "candidate_for_other_shot";
|
|
236
|
+
duplicate_picture_asset: "duplicate_picture_asset";
|
|
237
|
+
duplicate_shot_id: "duplicate_shot_id";
|
|
238
|
+
duration_mismatch: "duration_mismatch";
|
|
239
|
+
first_shot_fixed: "first_shot_fixed";
|
|
240
|
+
footage_exceeded: "footage_exceeded";
|
|
241
|
+
foreign_source_asset: "foreign_source_asset";
|
|
242
|
+
kind_asset_mismatch: "kind_asset_mismatch";
|
|
243
|
+
kind_changed: "kind_changed";
|
|
244
|
+
not_movable: "not_movable";
|
|
245
|
+
not_resizable: "not_resizable";
|
|
246
|
+
overlap: "overlap";
|
|
247
|
+
presenter_out_of_sync: "presenter_out_of_sync";
|
|
248
|
+
presenter_outside_recording: "presenter_outside_recording";
|
|
249
|
+
shot_added_not_allowed: "shot_added_not_allowed";
|
|
250
|
+
source_mismatch: "source_mismatch";
|
|
251
|
+
span_out_of_range: "span_out_of_range";
|
|
252
|
+
timebase_mismatch: "timebase_mismatch";
|
|
253
|
+
too_long: "too_long";
|
|
254
|
+
too_many_generated: "too_many_generated";
|
|
255
|
+
too_short: "too_short";
|
|
256
|
+
tracks_overlap: "tracks_overlap";
|
|
257
|
+
uncovered: "uncovered";
|
|
258
|
+
unknown_asset: "unknown_asset";
|
|
259
|
+
upload_shape_refused: "upload_shape_refused";
|
|
260
|
+
}>;
|
|
261
|
+
shot_id: z.ZodOptional<z.ZodString>;
|
|
262
|
+
from_frame: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
to_frame: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
message: z.ZodString;
|
|
265
|
+
}, z.core.$strip>>;
|
|
266
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
export type RunEdit = z.infer<typeof runEdit>;
|
|
269
|
+
/** The document as a client reads it: kind, track, asset source and operation are open, and no limit of a save applies. */
|
|
270
|
+
export declare const editDocumentRead: z.ZodObject<{
|
|
271
|
+
v: z.ZodLiteral<1>;
|
|
272
|
+
source_run_id: z.ZodString;
|
|
273
|
+
timebase: z.ZodObject<{
|
|
274
|
+
fps: z.ZodNumber;
|
|
275
|
+
}, z.core.$loose>;
|
|
276
|
+
duration_frames: z.ZodNumber;
|
|
277
|
+
shots: z.ZodArray<z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
track: z.ZodString;
|
|
280
|
+
kind: z.ZodString;
|
|
281
|
+
start_frame: z.ZodNumber;
|
|
282
|
+
end_frame: z.ZodNumber;
|
|
283
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
asset: z.ZodObject<{
|
|
285
|
+
from: z.ZodString;
|
|
286
|
+
}, z.core.$loose>;
|
|
287
|
+
}, z.core.$loose>>;
|
|
288
|
+
discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
289
|
+
}, z.core.$loose>;
|
|
290
|
+
export type EditDocumentRead = z.infer<typeof editDocumentRead>;
|
|
291
|
+
/** The draft as a client reads it: the code of an issue is an open string. */
|
|
292
|
+
export declare const runEditRead: z.ZodObject<{
|
|
293
|
+
run_id: z.ZodString;
|
|
294
|
+
version: z.ZodNumber;
|
|
295
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
296
|
+
document: z.ZodObject<{
|
|
297
|
+
v: z.ZodLiteral<1>;
|
|
298
|
+
source_run_id: z.ZodString;
|
|
299
|
+
timebase: z.ZodObject<{
|
|
300
|
+
fps: z.ZodNumber;
|
|
301
|
+
}, z.core.$loose>;
|
|
302
|
+
duration_frames: z.ZodNumber;
|
|
303
|
+
shots: z.ZodArray<z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
track: z.ZodString;
|
|
306
|
+
kind: z.ZodString;
|
|
307
|
+
start_frame: z.ZodNumber;
|
|
308
|
+
end_frame: z.ZodNumber;
|
|
309
|
+
media_offset_frames: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
asset: z.ZodObject<{
|
|
311
|
+
from: z.ZodString;
|
|
312
|
+
}, z.core.$loose>;
|
|
313
|
+
}, z.core.$loose>>;
|
|
314
|
+
discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
315
|
+
}, z.core.$loose>;
|
|
316
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
317
|
+
shot_id: z.ZodOptional<z.ZodString>;
|
|
318
|
+
from_frame: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
to_frame: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
message: z.ZodString;
|
|
321
|
+
code: z.ZodString;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
}, z.core.$strip>;
|
|
324
|
+
export type RunEditRead = z.infer<typeof runEditRead>;
|
|
325
|
+
/** What a client passes to a save: the version it read and the document, as read or as written. */
|
|
326
|
+
export type SaveRunEditArgs = {
|
|
327
|
+
base_version: number;
|
|
328
|
+
document: z.input<typeof editDocumentRead>;
|
|
329
|
+
};
|
|
330
|
+
/** The path of a run's draft. The id is encoded, since it comes from the caller. */
|
|
331
|
+
export declare const runEditPath: (id: string) => string;
|
|
332
|
+
/** The document that changes nothing: every shot of the view on its own source asset. */
|
|
333
|
+
export declare function identityEditDocument(shots: PlannedRunShots): EditDocument;
|
|
334
|
+
/** Replaces only the asset of each named shot with a generation; spans and every other shot stay. */
|
|
335
|
+
export declare function applyShotChanges(document: EditDocument, changes: ShotChange[]): EditDocument;
|