@clipwright/sdk 0.27.0 → 0.29.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 CHANGED
@@ -16,6 +16,74 @@ 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
+ ## [Unreleased]
20
+
21
+ ## [0.29.0] - 2026-10-16
22
+
23
+ ### Added
24
+
25
+ - Workflow plans: a method from the public workflow catalog becomes a plan that you prepare, save, approve and
26
+ quote for free, and then start as one paid UGC or faceless run with an explicit idempotency key. `listWorkflows`,
27
+ `getWorkflow`, `createWorkflowPlan`, `getWorkflowPlan`, `saveWorkflowPlan`, `approveWorkflowPlan`,
28
+ `quoteWorkflowPlan` and `runWorkflowPlan` in the SDK; `workflows`, `workflow-show`, `plan-create`, `plan-show`,
29
+ `plan-save`, `plan-approve`, `plan-quote` and `plan-run` in the CLI; the MCP tools `list_workflows`, `get_workflow`,
30
+ `prepare_workflow_plan`, `get_workflow_plan`, `approve_workflow_plan`, `quote_workflow_plan` and
31
+ `run_workflow_plan`. Approval and the paid start are separate explicit calls; nothing quotes, approves or starts on
32
+ its own. A method starts only once it is enabled on the server; until then its availability says why. `getRun` of a
33
+ workflow run carries the purchased plan revision and its receipt. *Dashboard:* the videos list labels a workflow
34
+ run with its plan, method and revision. (clipwright#631)
35
+ - *Dashboard:* the editor of a faceless video edits its draft: move a cut by dragging it or with the keys, set a shot's
36
+ start, end or length, start or end it on a word, remove a picture, and regenerate a picture or describe a new one.
37
+ The draft saves itself. "Copy as API call" copies the revision as `curl` and as the MCP `revise_run` call, and
38
+ "Render new version" shows the quote and starts the revision, which the header then follows to "Version ready".
39
+ An answer that does not come is held in the browser, so a retry starts no second revision. (clipwright#604)
40
+ - A shot of a faceless video can get a candidate: one picture or clip made for that shot, to keep or discard in a
41
+ revision. `quoteCandidate`, `createCandidate` and `listCandidates` in the SDK, `candidate-quote`, `candidate` and
42
+ `candidates` in the CLI, and the MCP tools `quote_candidate` and `create_candidate`. The quote charges nothing. A
43
+ delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing,
44
+ even when its paid work was already done. An identical request returns the same run; `take` (`--take` in the CLI)
45
+ makes another candidate on purpose. `candidate` prints the quote and starts nothing without `--yes`. While shot
46
+ candidates are closed on the server, every call answers `editing_disabled`. (clipwright#604)
47
+
48
+ ### Changed
49
+
50
+ - **Breaking:** `ApiFailure` gains the kinds `workflow_invalid`, `workflow_conflict` and `workflow_not_ready`, for
51
+ TypeScript callers that switch on the kind. Each keeps every issue and warning of the refusal. (clipwright#631)
52
+ - The agent report of `edit_ceiling_reached` and `edit_invalid` names a paid edit and the request, not a revision and
53
+ a document, since shot candidates are refused with the same codes. *Dashboard:* the docs page lists the prices of a
54
+ shot candidate. (clipwright#604)
55
+
56
+ ## [0.28.0] - 2026-10-15
57
+
58
+ The revision of a faceless video is paid and open: `quoteRevision` and `startRevision` in the SDK, `revise-quote` and
59
+ `revise` in the CLI, and the MCP tools `quote_revision` and `revise_run`, which make the server list 17 tools. Three
60
+ failure kinds are new: `editing_closed`, `edit_ceiling_reached` and `edit_invalid`.
61
+
62
+ ### Added
63
+
64
+ - A finished faceless video can be revised: `quoteRevision` and `startRevision` in the SDK, `revise-quote` and
65
+ `revise` in the CLI, and the MCP tools `quote_revision` and `revise_run`. A revision is a new run made from the
66
+ edited document, or from shots named to be generated anew. The quote charges nothing. An identical request returns
67
+ the same run; `attempt` (`--retry` in the CLI) starts a second revision on purpose. A revision that delivers is
68
+ charged its quoted total; one that fails is charged nothing, even when its paid work was already done. While paid
69
+ edits are closed on the server, both calls answer `editing_disabled`. (clipwright#604)
70
+
71
+ ### Changed
72
+
73
+ - **Breaking:** `@clipwright/core`, for TypeScript callers: the union `ApiFailure` has three more members,
74
+ `editing_closed`, `edit_ceiling_reached` and `edit_invalid`. A `switch` over `failure.kind` that is checked for
75
+ exhaustiveness does not compile until it handles them. Code that does not switch on the kind is not affected.
76
+ (clipwright#604)
77
+ - The refusals of the revision routes have failure kinds of their own: `editing_closed` for the 503s
78
+ `editing_disabled`, `editing_not_priced` and `editing_window_not_set`, which are no longer retried as server errors;
79
+ `edit_ceiling_reached` with the limit, the count and the runs counted; `edit_invalid` with the issues of the
80
+ document. They were `server_error` and a `client_error` without their fields. (clipwright#604)
81
+ - *Dashboard:* `/videos` lists faceless videos as well as UGC videos. A faceless video has no still frame, so its
82
+ tile says that no preview was recorded, and a click plays it like any other tile. "Get video link" on the Balance
83
+ page now gives the link of a faceless video, where it used to answer "No video for this run.". (clipwright#604)
84
+ - *Dashboard:* a revision is labelled with the run it revises on the Balance page and on `/videos`, and the docs page
85
+ lists the prices of a revision. (clipwright#604)
86
+
19
87
  ## [0.27.0] - 2026-10-13
20
88
 
21
89
  The shots of a finished video can be read, and the draft of an edit can be kept: `getRunShots`, `getRunEdit` and
package/README.md CHANGED
@@ -12,11 +12,100 @@ const quote = await client.quoteUgc({ script: "Hello from Clipwright." });
12
12
  const run = await client.makeUgc({ script: "Hello from Clipwright." });
13
13
  ```
14
14
 
15
- `makeUgc` renders a clip and **costs money**; `quoteUgc` does not. Every call
16
- carries an idempotency key derived from the input and from this installation's
15
+ `makeUgc` renders a clip and **costs money**; `quoteUgc` does not. Native render starts
16
+ carry an idempotency key derived from the input and from this installation's
17
17
  id, so a retried request returns the original run instead of paying twice. Pass
18
18
  `idempotencyKey` explicitly when you deliberately want a fresh run.
19
19
 
20
+ ## Workflow plans
21
+
22
+ | Method | Request and result |
23
+ | --- | --- |
24
+ | `listWorkflows()` | Six public methods and deployment availability. Free. |
25
+ | `getWorkflow(methodId)` | One method's guidance, limitations and capability snapshot. Free. |
26
+ | `createWorkflowPlan({ document })` | Store a complete account-owned document. Free; starts no run. |
27
+ | `getWorkflowPlan(planId)` | Read the current revision, readiness issues and warnings. Free. |
28
+ | `saveWorkflowPlan(planId, { base_version, document })` | Save an edited revision. Free; approval is separate. |
29
+ | `approveWorkflowPlan(planId, { revision, content_digest })` | Explicitly approve that revision. Free; starts no run. |
30
+ | `quoteWorkflowPlan(planId)` | Quote the approved revision with an empty POST body. Free. |
31
+ | `runWorkflowPlan(planId, request)` | Start one paid intent and return its captured receipt and native run immediately. |
32
+
33
+ The four native methods are `ugc-product-intro`, `ugc-faq-answer`,
34
+ `faceless-explainer` and `product-image-story`. Their executors must each be
35
+ configured, qualified and enabled. `website-proof-demo` and `kinetic-launch`
36
+ remain `execution_blocked`; catalog availability grants no account permission.
37
+ Use the method and capability pins from the method response in the document.
38
+
39
+ Preparation, saving, approval and quoting never call one another or launch a
40
+ run. Inspect the chosen revision's issues and warnings before approving it;
41
+ show the quote's native price before a paid launch. For a complete
42
+ `{ "document": ... }` in `create.json`, these are separate free calls:
43
+
44
+ ```ts
45
+ import { readFile } from "node:fs/promises";
46
+
47
+ const plan = await client.createWorkflowPlan(JSON.parse(await readFile("create.json", "utf8")));
48
+ console.log(plan);
49
+ // After inspecting the plan and choosing this exact revision:
50
+ await client.approveWorkflowPlan(plan.plan_id, {
51
+ revision: plan.revision,
52
+ content_digest: plan.content_digest,
53
+ });
54
+ const workflowQuote = await client.quoteWorkflowPlan(plan.plan_id);
55
+ console.log(workflowQuote);
56
+ ```
57
+
58
+ After the user accepts this quote, the paid launch body has exactly five fields:
59
+
60
+ ```ts
61
+ const request = {
62
+ revision: workflowQuote.revision,
63
+ content_digest: workflowQuote.content_digest,
64
+ semantic_input_digest: workflowQuote.semantic_input_digest,
65
+ quote_id: workflowQuote.quote_id,
66
+ idempotency_key: "workflow-example:1",
67
+ };
68
+ const launched = await client.runWorkflowPlan(workflowQuote.plan_id, request);
69
+ const status = await client.getRun(launched.receipt.run_id);
70
+ ```
71
+
72
+ Choose and keep one explicit key per purchase intent. The SDK sends that same
73
+ key in the body and `Idempotency-Key`; it refuses a key changed or rejected by
74
+ HTTP header encoding before sending. Workflow launches use no installation id
75
+ or automatic attempt suffix. If fetch, body reading or response validation
76
+ fails after send, `ClipwrightResponseError.mayHaveTakenEffect` is true: preserve
77
+ the original request and key to recover that purchase. A new key can pay twice.
78
+ There is no automatic paid retry, quote refresh or source re-signing on replay.
79
+
80
+ Writes reject unknown fields and documents over 256000 JSON bytes. Reads accept
81
+ future fields and enum values and preserve unknown fields inside documents;
82
+ an older client refuses an unsupported save instead of erasing intent. Keep
83
+ accepted raw narration unchanged. After a lost save answer, repeating the same
84
+ explicit base version and document returns the already-saved current revision
85
+ without resetting approval; a genuinely different current document conflicts.
86
+ Workflow refusals retain every structured issue and warning in `failure` and
87
+ `report()`, with kinds `workflow_invalid`, `workflow_conflict` or
88
+ `workflow_not_ready` and no automatic retry.
89
+
90
+ `getRun` includes optional `workflow` evidence: the immutable receipt and
91
+ `approved_plan`, native state/warnings, `actual_output`, `asset_placements`,
92
+ advisory beat dispositions and validation issues. Verified native faceless
93
+ settlement can prove the artifact digest, format and measured duration without
94
+ later optional geometry. Placement proof needs an intact owned checkpoint;
95
+ unavailable evidence is `null` with an issue, while a measured empty list is
96
+ `[]`. UGC without byte/format proof retains its native video URL and reports
97
+ `actual_output: null`. Historical evidence does not renew expired media links.
98
+ `creative_acceptance` remains `not_reviewed`; a technical delivery is separate
99
+ from a person's review of the creative result.
100
+
101
+ Original image instances use stable owned upload ids and source digests with
102
+ nonoverlapping word/quote anchors. The generated opener is illustrative;
103
+ original product proof belongs in supported IMAGE shots. Protected areas must
104
+ survive native crop, PAN and captions; unsupported layouts, source orientation
105
+ or placement are refused. See the [workflow API contract](https://clipwright.io/docs).
106
+
107
+ ## Native video methods
108
+
20
109
  `quoteFaceless(input)` prices a faceless video for a `duration_seconds` of 30 to 90
21
110
  (the delivered video runs from 25 seconds to a quarter past it, never past 90, and
22
111
  never costs more than the quote), and
@@ -70,6 +159,28 @@ treat that as a conflict. The three calls are free. A draft charges nothing and
70
159
  renders nothing. Responses are parsed tolerantly: a kind of shot, an action or
71
160
  the code of an issue that a later API adds arrives as a plain string.
72
161
 
162
+ `quoteRevision(runId, request)` prices a revision of a faceless video for
163
+ nothing, and `startRevision(runId, request, { attempt })` starts it: a new run,
164
+ returned at once, that renders the video again with the shots you change. The
165
+ request is `{ document }`, the edited document of the draft, or
166
+ `{ changes: [{ shot_id, operation }] }`. A revision that delivers is charged its
167
+ quoted total; one that fails is charged nothing, even when its paid work was
168
+ already done. The same request and attempt send the same idempotency key, so a
169
+ resend returns the first run; `attempt: 2` starts a second one. While paid edits
170
+ are closed on the server, both calls throw a `ClipwrightApiError` of kind
171
+ `editing_closed`, which is not retried.
172
+
173
+ `quoteCandidate(runId, request)` prices a shot candidate for nothing,
174
+ `createCandidate(runId, request)` makes it and `listCandidates(runId)` lists the
175
+ candidates of the run's family. A candidate is one picture or clip for one
176
+ shot, to keep or discard in a revision; the request is
177
+ `{ shot_id, operation, take }`. A delivered candidate is charged its one unit
178
+ whether it is kept or discarded; one that fails is charged nothing, even when
179
+ its paid work was already done. The idempotency key comes from the run and the
180
+ request, so a resend returns the first run and `take: 2` makes another one.
181
+ While shot candidates are closed on the server, the three calls throw a
182
+ `ClipwrightApiError` of kind `editing_closed`.
183
+
73
184
  Requires `CLIPWRIGHT_CLIENT_ID`, or a writable `~/.clipwright/` for the SDK to
74
185
  create one on first use. It fails loudly rather than generating a throwaway id,
75
186
  because a per-process id would disable duplicate protection without saying so.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { type Account, type ActorDefaults, type ActorDefaultsInput, type ActorCatalogEntry, type CreateActorInputArgs, type CreateActorQuote, type FacelessQuoteResponse, type MakeFacelessInputArgs, type RunEditRead, type RunShotsRead, type SaveRunEditArgs, type UploadMediaType, type UploadResponse, type VoicesQuery, type VoiceCatalogEntry as CoreVoiceCatalogEntry, type AgentFailureReport, type ApiFailure, type MakeUgcInput, type MakeUgcInputArgs, type QuoteResponse, type Run, type RunRead } from "@clipwright/core";
1
+ import { type Account, type ActorDefaults, type ActorDefaultsInput, type ActorCatalogEntry, type CreateActorInputArgs, type CreateActorQuote, type FacelessQuoteResponse, type MakeFacelessInputArgs, type RunEditRead, type RunShotsRead, type RevisionQuoteRead, type RevisionRequest, type CandidateQuoteRead, type CandidateRequest, type RunCandidatesRead, type SaveRunEditArgs, type UploadMediaType, type UploadResponse, type VoicesQuery, type VoiceCatalogEntry as CoreVoiceCatalogEntry, type AgentFailureReport, type ApiFailure, type MakeUgcInput, type MakeUgcInputArgs, type QuoteResponse, type Run, type RunRead } from "@clipwright/core";
2
+ import { type CreateWorkflowPlanArgs, type SaveWorkflowPlanArgs, type ApproveWorkflowPlanArgs, type LaunchWorkflowArgs, type WorkflowCatalogRead, type WorkflowMethodRead, type WorkflowPlanRead, type WorkflowQuoteRead, type WorkflowLaunchRead, type WorkflowRunRead } from '@clipwright/core/workflows';
2
3
  export interface ClipwrightClientOptions {
3
4
  apiKey: string;
4
5
  baseUrl?: string | undefined;
@@ -79,11 +80,33 @@ export declare class ClipwrightClient {
79
80
  quoteFaceless(input: MakeFacelessInputArgs): Promise<FacelessQuoteResponse>;
80
81
  /** Starts `make_faceless`; returns the run at once (state=queued), keyed like `createActor`. */
81
82
  startFaceless(input: MakeFacelessInputArgs, opts?: StartUgcOptions): Promise<Run>;
83
+ /** What a revision of a run would change and cost; spends no credits. Read tolerantly, as the shots are. */
84
+ quoteRevision(runId: string, request: RevisionRequest): Promise<RevisionQuoteRead>;
85
+ /** Starts a revision: a new run, returned at once (state=queued). The same request and attempt send the same key, */
86
+ /** so a resend returns the first run; `attempt: 2` starts a deliberate second one. */
87
+ startRevision(runId: string, request: RevisionRequest, opts?: StartUgcOptions): Promise<RunRead>;
88
+ /** What one shot candidate would cost; spends no credits. Read tolerantly, as a revision quote is. */
89
+ quoteCandidate(runId: string, request: CandidateRequest): Promise<CandidateQuoteRead>;
90
+ /** Starts a shot candidate: a new run, returned at once (state=queued). The key is the run and the request with */
91
+ /** its `take`, so a resend returns the first run; `take: 2` makes a deliberate second candidate. */
92
+ createCandidate(runId: string, request: CandidateRequest, opts?: {
93
+ idempotencyKey?: string | undefined;
94
+ }): Promise<RunRead>;
95
+ /** The shot candidates of a run's family, oldest first, each with its state, charge and preview. Free. */
96
+ listCandidates(runId: string): Promise<RunCandidatesRead>;
82
97
  /** Deletes a personal actor. The answer is 204 with no body. */
83
98
  deleteActor(id: string): Promise<void>;
84
99
  /** Reads a run tolerantly (`state: string`): a newer server stage must not */
85
100
  /** break installed clients, so parsing falls back to the raw body. */
86
- getRun(runId: string): Promise<RunRead>;
101
+ getRun(runId: string): Promise<WorkflowRunRead>;
102
+ listWorkflows(): Promise<WorkflowCatalogRead>;
103
+ getWorkflow(methodId: string): Promise<WorkflowMethodRead>;
104
+ createWorkflowPlan(input: CreateWorkflowPlanArgs): Promise<WorkflowPlanRead>;
105
+ getWorkflowPlan(planId: string): Promise<WorkflowPlanRead>;
106
+ saveWorkflowPlan(planId: string, input: SaveWorkflowPlanArgs): Promise<WorkflowPlanRead>;
107
+ approveWorkflowPlan(planId: string, input: ApproveWorkflowPlanArgs): Promise<WorkflowPlanRead>;
108
+ quoteWorkflowPlan(planId: string): Promise<WorkflowQuoteRead>;
109
+ runWorkflowPlan(planId: string, input: LaunchWorkflowArgs): Promise<WorkflowLaunchRead>;
87
110
  /** The shots of a run, read tolerantly: a kind, action or line of a newer server still parses. Free. */
88
111
  getRunShots(runId: string): Promise<RunShotsRead>;
89
112
  /** The draft of a run's edit, read as tolerantly. Version 0 is a run with nothing stored. Free. */
@@ -100,3 +123,6 @@ export type { AgentFailureReport, ApiFailure };
100
123
  export type { MakeUgcInput, MakeUgcInputArgs, QuoteResponse, Run, RunRead };
101
124
  export type { FacelessQuoteResponse, MakeFacelessInputArgs };
102
125
  export type { RunEditRead, RunShotsRead, SaveRunEditArgs };
126
+ export type { RevisionQuoteRead, RevisionRequest };
127
+ export type { CandidateQuoteRead, CandidateRequest, RunCandidatesRead };
128
+ export type { CreateWorkflowPlanArgs, SaveWorkflowPlanArgs, ApproveWorkflowPlanArgs, LaunchWorkflowArgs, WorkflowCatalogRead, WorkflowMethodRead, WorkflowPlanRead, WorkflowQuoteRead, WorkflowLaunchRead, WorkflowRunRead };
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
- import { account as accountSchema, ACTORS_PATH, actorDefaults, actorDefaultsPath, actorItemPath, actorsResponse, CREATE_ACTOR_QUOTE_PATH, CREATE_ACTOR_RUN_PATH, createActorQuote, FACELESS_QUOTE_PATH, FACELESS_RUN_PATH, facelessQuoteResponse, makeFacelessInput, agentFailureReport, isRetryableFailure, parseApiFailure, PUBLIC_API_BASE_URL, retryDelayMs, run as runSchema, runEditPath, runEditRead, runRead as runReadSchema, runShotsPath, runShotsRead, isTerminal, FAILED_STATE, quoteResponse, RETRY_AFTER_HEADER, UPLOADS_PATH, uploadResponse, voicesResponse, } from "@clipwright/core";
2
- import { actorIdempotencyKeyFor, facelessIdempotencyKeyFor, idempotencyKeyFor } from "@clipwright/core/idempotency";
1
+ import { account as accountSchema, ACTORS_PATH, actorDefaults, actorDefaultsPath, actorItemPath, actorsResponse, CREATE_ACTOR_QUOTE_PATH, CREATE_ACTOR_RUN_PATH, createActorQuote, FACELESS_QUOTE_PATH, FACELESS_RUN_PATH, facelessQuoteResponse, makeFacelessInput, agentFailureReport, isRetryableFailure, parseApiFailure, PUBLIC_API_BASE_URL, retryDelayMs, run as runSchema, runRead as runReadSchema, runEditPath, runEditRead, PUBLIC_WORKFLOWS_PATH, PUBLIC_WORKFLOW_PATH, WORKFLOW_PLANS_PATH, WORKFLOW_PLAN_PATH, WORKFLOW_REVISIONS_PATH, WORKFLOW_APPROVE_PATH, WORKFLOW_QUOTE_PATH, WORKFLOW_RUN_PATH, runShotsPath, runShotsRead, revisionQuoteRead, revisionRequest, runRevisionsPath, runRevisionsQuotePath, candidateQuoteRead, candidateRequest, runCandidatesPath, runCandidatesQuotePath, runCandidatesRead, isTerminal, FAILED_STATE, quoteResponse, RETRY_AFTER_HEADER, UPLOADS_PATH, uploadResponse, voicesResponse, } from "@clipwright/core";
2
+ import { actorIdempotencyKeyFor, candidateIdempotencyKeyFor, facelessIdempotencyKeyFor, idempotencyKeyFor, revisionIdempotencyKeyFor, } from "@clipwright/core/idempotency";
3
+ import { createWorkflowPlan, saveWorkflowPlan, approveWorkflowPlan, launchWorkflow, workflowCatalogResponseRead, workflowMethodResponseRead, workflowPlanRead, workflowQuoteBindingRead, workflowLaunchResponseRead, workflowRunRead, workflowRunIdentityRead } from '@clipwright/core/workflows';
3
4
  import { resolveClientId } from "./client-id.js";
4
5
  /** Production API by default; shared with core so every surface names one address. */
5
6
  const DEFAULT_BASE_URL = PUBLIC_API_BASE_URL;
7
+ const workflowPath = (pattern, id) => pattern.replace(':id', encodeURIComponent(id));
6
8
  /** Default polling deadline: several times the expected render time. */
7
9
  const DEFAULT_MAX_WAIT_MS = 600_000;
8
10
  /** Default per-request timeout. Node's `fetch` has none, so a silent */
@@ -318,6 +320,57 @@ export class ClipwrightClient {
318
320
  });
319
321
  return parseResponse(runSchema, body, FACELESS_RUN_PATH, true);
320
322
  }
323
+ /** What a revision of a run would change and cost; spends no credits. Read tolerantly, as the shots are. */
324
+ async quoteRevision(runId, request) {
325
+ const parsed = revisionRequest.parse(request);
326
+ const path = runRevisionsQuotePath(runId);
327
+ const body = await this.#request(path, false, { method: "POST", body: JSON.stringify(parsed) });
328
+ return parseResponse(revisionQuoteRead, body, path, false);
329
+ }
330
+ /** Starts a revision: a new run, returned at once (state=queued). The same request and attempt send the same key, */
331
+ /** so a resend returns the first run; `attempt: 2` starts a deliberate second one. */
332
+ async startRevision(runId, request, opts) {
333
+ const parsed = revisionRequest.parse(request);
334
+ const key = opts?.idempotencyKey ??
335
+ `${revisionIdempotencyKeyFor(runId, parsed, this.#getClientId())}:${attemptSuffix(opts?.attempt)}`;
336
+ const path = runRevisionsPath(runId);
337
+ // `true`: once sent, the run may have been created and its credits held.
338
+ const body = await this.#request(path, true, { method: "POST", body: JSON.stringify(parsed), headers: { "Idempotency-Key": key } });
339
+ // Read as `#getRun` reads: a billing unit of a newer server must not throw after the credits are held.
340
+ const read = runReadSchema.safeParse(body);
341
+ if (read.success)
342
+ return read.data;
343
+ if (typeof body !== "object" || body === null || Array.isArray(body))
344
+ throw new ClipwrightResponseError(path, true, read.error);
345
+ return body;
346
+ }
347
+ /** What one shot candidate would cost; spends no credits. Read tolerantly, as a revision quote is. */
348
+ async quoteCandidate(runId, request) {
349
+ const parsed = candidateRequest.parse(request);
350
+ const path = runCandidatesQuotePath(runId);
351
+ const body = await this.#request(path, false, { method: "POST", body: JSON.stringify(parsed) });
352
+ return parseResponse(candidateQuoteRead, body, path, false);
353
+ }
354
+ /** Starts a shot candidate: a new run, returned at once (state=queued). The key is the run and the request with */
355
+ /** its `take`, so a resend returns the first run; `take: 2` makes a deliberate second candidate. */
356
+ async createCandidate(runId, request, opts) {
357
+ const parsed = candidateRequest.parse(request);
358
+ const key = opts?.idempotencyKey ?? candidateIdempotencyKeyFor(runId, parsed, this.#getClientId());
359
+ const path = runCandidatesPath(runId);
360
+ // `true`: once sent, the run may have been created and its unit held.
361
+ const body = await this.#request(path, true, { method: "POST", body: JSON.stringify(parsed), headers: { "Idempotency-Key": key } });
362
+ const read = runReadSchema.safeParse(body);
363
+ if (read.success)
364
+ return read.data;
365
+ if (typeof body !== "object" || body === null || Array.isArray(body))
366
+ throw new ClipwrightResponseError(path, true, read.error);
367
+ return body;
368
+ }
369
+ /** The shot candidates of a run's family, oldest first, each with its state, charge and preview. Free. */
370
+ async listCandidates(runId) {
371
+ const path = runCandidatesPath(runId);
372
+ return parseResponse(runCandidatesRead, await this.#request(path, false), path, false);
373
+ }
321
374
  /** Deletes a personal actor. The answer is 204 with no body. */
322
375
  async deleteActor(id) {
323
376
  await this.#request(actorItemPath(id), true, { method: "DELETE" });
@@ -329,9 +382,53 @@ export class ClipwrightClient {
329
382
  }
330
383
  /** `signal` is internal only: the `makeUgc` deadline also aborts the poll. */
331
384
  async #getRun(runId, signal) {
332
- const body = await this.#request(`/v1/runs/${runId}`, false, { signal: signal ?? null });
333
- const parsed = runReadSchema.safeParse(body);
334
- return parsed.success ? parsed.data : body;
385
+ const path = `/v1/runs/${runId}`, body = await this.#request(path, false, { signal: signal ?? null });
386
+ const parsed = workflowRunRead.safeParse(body);
387
+ if (parsed.success)
388
+ return parsed.data;
389
+ if (body !== null && typeof body === 'object' && 'workflow' in body)
390
+ parseResponse(workflowRunIdentityRead, body, path, false);
391
+ return body;
392
+ }
393
+ async listWorkflows() {
394
+ return parseResponse(workflowCatalogResponseRead, await this.#request(PUBLIC_WORKFLOWS_PATH, false), PUBLIC_WORKFLOWS_PATH, false);
395
+ }
396
+ async getWorkflow(methodId) {
397
+ const path = workflowPath(PUBLIC_WORKFLOW_PATH, methodId);
398
+ return parseResponse(workflowMethodResponseRead, await this.#request(path, false), path, false);
399
+ }
400
+ async createWorkflowPlan(input) {
401
+ const parsed = createWorkflowPlan.parse(input), path = WORKFLOW_PLANS_PATH;
402
+ return parseResponse(workflowPlanRead, await this.#request(path, false, { method: 'POST', body: JSON.stringify(parsed) }), path, false);
403
+ }
404
+ async getWorkflowPlan(planId) {
405
+ const path = workflowPath(WORKFLOW_PLAN_PATH, planId);
406
+ return parseResponse(workflowPlanRead, await this.#request(path, false), path, false);
407
+ }
408
+ async saveWorkflowPlan(planId, input) {
409
+ const parsed = saveWorkflowPlan.parse(input), path = workflowPath(WORKFLOW_REVISIONS_PATH, planId);
410
+ return parseResponse(workflowPlanRead, await this.#request(path, false, { method: 'POST', body: JSON.stringify(parsed) }), path, false);
411
+ }
412
+ async approveWorkflowPlan(planId, input) {
413
+ const parsed = approveWorkflowPlan.parse(input), path = workflowPath(WORKFLOW_APPROVE_PATH, planId);
414
+ return parseResponse(workflowPlanRead, await this.#request(path, false, { method: 'POST', body: JSON.stringify(parsed) }), path, false);
415
+ }
416
+ async quoteWorkflowPlan(planId) {
417
+ const path = workflowPath(WORKFLOW_QUOTE_PATH, planId);
418
+ return parseResponse(workflowQuoteBindingRead, await this.#request(path, false, { method: 'POST' }), path, false);
419
+ }
420
+ async runWorkflowPlan(planId, input) {
421
+ const parsed = launchWorkflow.parse(input), path = workflowPath(WORKFLOW_RUN_PATH, planId);
422
+ const headers = new Headers({ 'Idempotency-Key': parsed.idempotency_key });
423
+ if (headers.get('Idempotency-Key') !== parsed.idempotency_key)
424
+ throw new TypeError('Idempotency key must survive HTTP header encoding unchanged');
425
+ const result = parseResponse(workflowLaunchResponseRead, await this.#request(path, true, {
426
+ method: 'POST', body: JSON.stringify(parsed), headers: Object.fromEntries(headers.entries()),
427
+ }), path, true);
428
+ if (result.receipt.plan_id !== planId || result.receipt.revision !== parsed.revision ||
429
+ result.receipt.content_digest !== parsed.content_digest || result.receipt.semantic_input_digest !== parsed.semantic_input_digest)
430
+ throw new ClipwrightResponseError(path, true, new Error('Workflow receipt must identify the requested purchase'));
431
+ return result;
335
432
  }
336
433
  /** The shots of a run, read tolerantly: a kind, action or line of a newer server still parses. Free. */
337
434
  async getRunShots(runId) {
@@ -385,6 +482,7 @@ export class ClipwrightClient {
385
482
  throw timedOut();
386
483
  await sleep(Math.min(nextDelayMs, remaining));
387
484
  try {
485
+ // Preserve makeUgc's legacy result type and its existing permissive native read fallback.
388
486
  current = await this.#getRun(current.run_id, callDeadline);
389
487
  nextDelayMs = this.#pollIntervalMs;
390
488
  onProgress?.(current);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,aAAa,EAExB,WAAW,EACX,aAAa,EACb,iBAAiB,EAGjB,aAAa,EACb,cAAc,EAEd,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAGhB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EAErB,iBAAiB,EAEjB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,GAAG,IAAI,SAAS,EAChB,WAAW,EACX,WAAW,EAEX,OAAO,IAAI,aAA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AAE,CAAC;YACnC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipwright/sdk",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "TypeScript client for the Clipwright UGC video API",
5
5
  "license": "MIT",
6
6
  "author": "Dimantika Sp. z o.o.",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "zod": "^4.4.3",
27
- "@clipwright/core": "0.27.0"
27
+ "@clipwright/core": "0.29.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^26.1.1"