@clipwright/core 0.34.0 → 0.35.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 +107 -0
- package/README.md +3 -1
- package/dist/account-actors.d.ts +173 -14
- package/dist/account-actors.js +142 -10
- package/dist/account-actors.js.map +1 -1
- package/dist/actor-bounds.d.ts +4 -0
- package/dist/actor-bounds.js +4 -0
- package/dist/actor-bounds.js.map +1 -1
- package/dist/actors.d.ts +31 -0
- package/dist/actors.js +26 -0
- package/dist/actors.js.map +1 -1
- package/dist/assets.d.ts +17 -1
- package/dist/assets.js +19 -2
- package/dist/assets.js.map +1 -1
- package/dist/billing-terms.d.ts +69 -0
- package/dist/billing-terms.js +8 -0
- package/dist/billing-terms.js.map +1 -1
- package/dist/contract-dispositions.d.ts +485 -1
- package/dist/contract-dispositions.js +27 -3
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +1420 -0
- package/dist/contracts/v1/workflow-brief.js +4 -0
- package/dist/contracts/v1/workflow-brief.js.map +1 -1
- package/dist/contracts/v1/workflow-catalog.d.ts +2141 -105
- package/dist/contracts/v1/workflow-catalog.js +4 -2
- package/dist/contracts/v1/workflow-catalog.js.map +1 -1
- package/dist/contracts/v1/workflow-client.d.ts +1631 -3
- package/dist/contracts/v1/workflow-client.js +6 -3
- package/dist/contracts/v1/workflow-client.js.map +1 -1
- package/dist/contracts/v1/workflow-execution.d.ts +161 -9
- package/dist/contracts/v1/workflow-execution.js +15 -7
- package/dist/contracts/v1/workflow-execution.js.map +1 -1
- package/dist/contracts/v1/workflow-plan.d.ts +3167 -142
- package/dist/contracts/v1/workflow-primitives.d.ts +3 -1
- package/dist/contracts/v1/workflow-primitives.js +1 -1
- package/dist/contracts/v1/workflow-primitives.js.map +1 -1
- package/dist/contracts/v1/workflow-run-read.d.ts +114 -1
- package/dist/edit-billing.d.ts +12 -0
- package/dist/edit-billing.js +8 -0
- package/dist/edit-billing.js.map +1 -1
- package/dist/edit-long-form.d.ts +1 -1
- package/dist/edit-long-form.js +12 -2
- package/dist/edit-long-form.js.map +1 -1
- package/dist/endpoint-notes.d.ts +3 -0
- package/dist/endpoint-notes.js +66 -0
- package/dist/endpoint-notes.js.map +1 -0
- package/dist/endpoints.d.ts +4 -0
- package/dist/endpoints.js +13 -0
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +6 -0
- package/dist/errors.js.map +1 -1
- package/dist/face-billing.d.ts +55 -0
- package/dist/face-billing.js +22 -0
- package/dist/face-billing.js.map +1 -1
- package/dist/faceless-price.d.ts +26 -2
- package/dist/faceless-price.js +33 -6
- package/dist/faceless-price.js.map +1 -1
- package/dist/faceless-public.d.ts +6 -1
- package/dist/faceless-public.js +2 -2
- package/dist/faceless-public.js.map +1 -1
- package/dist/generations.js +15 -16
- package/dist/generations.js.map +1 -1
- package/dist/idempotency.d.ts +2 -0
- package/dist/idempotency.js +7 -4
- package/dist/idempotency.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/long-form-pricing.d.ts +7 -4
- package/dist/long-form-pricing.js +13 -10
- package/dist/long-form-pricing.js.map +1 -1
- package/dist/long-form-revision.js +1 -1
- package/dist/long-form-revision.js.map +1 -1
- package/dist/openapi.d.ts +154 -0
- package/dist/openapi.js +334 -0
- package/dist/openapi.js.map +1 -0
- package/dist/pacing.d.ts +15 -0
- package/dist/pacing.js +30 -0
- package/dist/pacing.js.map +1 -1
- package/dist/parts-pricing.d.ts +84 -0
- package/dist/parts-pricing.js +105 -0
- package/dist/parts-pricing.js.map +1 -0
- package/dist/presenter-beats.d.ts +45 -0
- package/dist/presenter-beats.js +144 -0
- package/dist/presenter-beats.js.map +1 -0
- package/dist/prices.d.ts +98 -0
- package/dist/prices.js +189 -0
- package/dist/prices.js.map +1 -0
- package/dist/public-responses.d.ts +23 -0
- package/dist/public-responses.js +11 -0
- package/dist/public-responses.js.map +1 -0
- package/dist/reference-analysis.d.ts +683 -0
- package/dist/reference-analysis.js +91 -0
- package/dist/reference-analysis.js.map +1 -0
- package/dist/reference-kinds.d.ts +6 -0
- package/dist/reference-kinds.js +8 -0
- package/dist/reference-kinds.js.map +1 -0
- package/dist/reference-profile.d.ts +633 -0
- package/dist/reference-profile.js +151 -0
- package/dist/reference-profile.js.map +1 -0
- package/dist/reference-staging.d.ts +571 -0
- package/dist/reference-staging.js +151 -0
- package/dist/reference-staging.js.map +1 -0
- package/dist/reference-voice.d.ts +305 -0
- package/dist/reference-voice.js +108 -0
- package/dist/reference-voice.js.map +1 -0
- package/dist/resolved-timeline.d.ts +53 -1
- package/dist/resolved-timeline.js +50 -4
- package/dist/resolved-timeline.js.map +1 -1
- package/dist/run-static-warnings.js +14 -5
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +75 -3
- package/dist/runs.js +6 -1
- package/dist/runs.js.map +1 -1
- package/dist/skills.d.ts +1805 -24
- package/dist/skills.js +129 -19
- package/dist/skills.js.map +1 -1
- package/dist/templates/callout.d.ts +2 -2
- package/dist/templates/callout.js +6 -6
- package/dist/templates/callout.js.map +1 -1
- package/dist/templates/checklist.js +2 -2
- package/dist/templates/checklist.js.map +1 -1
- package/dist/templates/index.d.ts +14 -7
- package/dist/templates/index.js +29 -17
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/notification.js +2 -2
- package/dist/templates/notification.js.map +1 -1
- package/dist/templates/phone-call.d.ts +3 -0
- package/dist/templates/phone-call.js +14 -7
- package/dist/templates/phone-call.js.map +1 -1
- package/dist/templates/progress.js +2 -2
- package/dist/templates/progress.js.map +1 -1
- package/dist/templates/sounds.d.ts +357 -7
- package/dist/templates/sounds.js +34 -12
- package/dist/templates/sounds.js.map +1 -1
- package/dist/ugc-call.d.ts +89 -0
- package/dist/ugc-call.js +111 -0
- package/dist/ugc-call.js.map +1 -0
- package/dist/ugc-framing.d.ts +26 -0
- package/dist/ugc-framing.js +64 -0
- package/dist/ugc-framing.js.map +1 -0
- package/dist/ugc-layers.d.ts +5 -1
- package/dist/ugc-layers.js +6 -1
- package/dist/ugc-layers.js.map +1 -1
- package/dist/vendor-response.d.ts +4 -0
- package/dist/vendor-response.js +12 -0
- package/dist/vendor-response.js.map +1 -1
- package/dist/voice-admission.d.ts +409 -0
- package/dist/voice-listing.js +7 -1
- package/dist/voice-listing.js.map +1 -1
- package/dist/voice-pace.d.ts +34 -0
- package/dist/voice-pace.generated.json +72 -0
- package/dist/voice-pace.js +34 -0
- package/dist/voice-pace.js.map +1 -0
- package/dist/voices.d.ts +21 -8
- package/dist/voices.js +44 -19
- package/dist/voices.js.map +1 -1
- package/dist/workflows/catalog.js +2 -1
- package/dist/workflows/catalog.js.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.js +2 -0
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +377 -10
- package/dist/workflows/methods/kinetic-launch.d.ts +377 -10
- package/dist/workflows/methods/product-image-story.d.ts +377 -10
- package/dist/workflows/methods/reference-remake.d.ts +870 -0
- package/dist/workflows/methods/reference-remake.js +26 -0
- package/dist/workflows/methods/reference-remake.js.map +1 -0
- package/dist/workflows/methods/shared.d.ts +377 -10
- package/dist/workflows/methods/ugc-faq-answer.d.ts +377 -10
- package/dist/workflows/methods/ugc-product-intro.d.ts +377 -10
- package/dist/workflows/methods/website-proof-demo.d.ts +377 -10
- package/dist/workflows/reference-remake.d.ts +663 -0
- package/dist/workflows/reference-remake.js +598 -0
- package/dist/workflows/reference-remake.js.map +1 -0
- package/dist/workflows/validate.js +7 -4
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { assetId } from "./asset-identity.js";
|
|
3
|
+
import { ASSET_VIDEO_MAX_SECONDS } from "./assets.js";
|
|
4
|
+
import { referenceProfile } from "./reference-profile.js";
|
|
5
|
+
/** Reference analysis (reference-to-video S1c): an MP4 asset read into a `reference_profile`. Its status lives at its own */
|
|
6
|
+
/** path, as an asset's processing does; its money (#927) rides a run of skill `analyze_reference` that holds and settles it. */
|
|
7
|
+
export const REFERENCE_ANALYSES_PATH = "/v1/reference-analyses";
|
|
8
|
+
export const REFERENCE_ANALYSIS_PATH = "/v1/reference-analyses/:id";
|
|
9
|
+
export const REFERENCE_ANALYSIS_QUOTE_PATH = "/v1/reference-analyses/quote";
|
|
10
|
+
export const ANALYZE_REFERENCE_TASK = "analyze-reference";
|
|
11
|
+
/** The run skill that carries an analysis's hold and charge; not a `SKILLS` entry, since no `/v1/skills` route starts it. */
|
|
12
|
+
export const ANALYZE_REFERENCE_SKILL = "analyze_reference";
|
|
13
|
+
export const referenceAnalysisId = z.string().regex(/^ref_[a-f0-9]{32}$/);
|
|
14
|
+
/** The price of a delivered analysis (owner, 29.10, #800/#927): Argon video plus Flash stills cost us ≈ $0.23 today. */
|
|
15
|
+
/** Argon's price doubles on 2026-12-01 (≈ $0.45, ≈ 135 credits at ×2.5): the owner reprices then; nothing changes it by itself. */
|
|
16
|
+
export const REFERENCE_ANALYSIS_CREDITS = 70;
|
|
17
|
+
/** New analyses per account per hour: each costs us vendor money even when it fails, so the cap stays beside the price. */
|
|
18
|
+
export const REFERENCE_ANALYSIS_PER_HOUR = 10;
|
|
19
|
+
export const REFERENCE_ANALYSIS_WINDOW_SECONDS = 3600;
|
|
20
|
+
/** The worker stops its own work here, removes its temp copy and fails the analysis; under the task's ceiling. */
|
|
21
|
+
export const REFERENCE_ANALYSIS_WORK_SECONDS = 420;
|
|
22
|
+
export const REFERENCE_ANALYSIS_TASK_MAX_DURATION_SECONDS = 600;
|
|
23
|
+
/** Past this a read calls an unfinished analysis failed: a task killed at its ceiling writes nothing. */
|
|
24
|
+
export const REFERENCE_ANALYSIS_DEADLINE_SECONDS = 900;
|
|
25
|
+
export const REFERENCE_ANALYSIS_STATES = ["queued", "analyzing", "succeeded", "failed"];
|
|
26
|
+
export const REFERENCE_ANALYSIS_ERRORS = ["timed_out", "analysis_failed", "asset_gone", "enqueue_failed"];
|
|
27
|
+
export const REFERENCE_ANALYSIS_ERROR_MESSAGES = {
|
|
28
|
+
timed_out: "the analysis did not finish in time and was stopped; start it again",
|
|
29
|
+
analysis_failed: "the reference could not be analysed; start it again or use another clip",
|
|
30
|
+
asset_gone: "the asset was deleted before the analysis began",
|
|
31
|
+
enqueue_failed: "the analysis could not be handed to the worker; start it again",
|
|
32
|
+
};
|
|
33
|
+
/** What the API hands the worker: ids only, so no file name or reference text reaches Trigger.dev's log. */
|
|
34
|
+
export const analyzeReferencePayload = z.strictObject({ analysisId: referenceAnalysisId, accountId: z.string().min(1) });
|
|
35
|
+
export const analyzeReferenceRequest = z.strictObject({
|
|
36
|
+
asset_id: assetId.describe(`asset_id of an MP4 asset of this account, at most ${ASSET_VIDEO_MAX_SECONDS} s and 100 MiB`),
|
|
37
|
+
});
|
|
38
|
+
export const referenceAnalysis = z.strictObject({
|
|
39
|
+
analysis_id: referenceAnalysisId,
|
|
40
|
+
asset_id: assetId,
|
|
41
|
+
state: z.enum(REFERENCE_ANALYSIS_STATES),
|
|
42
|
+
/** Set once the analysis succeeded, `null` before and on failure. */
|
|
43
|
+
reference_profile: referenceProfile.nullable(),
|
|
44
|
+
warnings: z.array(z.string()),
|
|
45
|
+
error: z.strictObject({ code: z.enum(REFERENCE_ANALYSIS_ERRORS), message: z.string().min(1) }).nullable(),
|
|
46
|
+
/** Held at the start; 0 for an analysis started before it was paid (#927). */
|
|
47
|
+
credits_reserved: z.number().int().nonnegative(),
|
|
48
|
+
/** Set at settlement: the price once succeeded, 0 once failed; `null` while it runs. */
|
|
49
|
+
credits_charged: z.number().int().nonnegative().nullable(),
|
|
50
|
+
/** The account's balance right after the settlement, read in its transaction; `null` until settled. */
|
|
51
|
+
balance_after_credits: z.number().int().nullable(),
|
|
52
|
+
created_at: z.string().datetime(),
|
|
53
|
+
finished_at: z.string().datetime().nullable(),
|
|
54
|
+
});
|
|
55
|
+
export const analysisQuoteResponse = z.strictObject({
|
|
56
|
+
asset_id: assetId,
|
|
57
|
+
/** What starting it now holds and, once it succeeds, charges: 0 when the asset already has a live analysis to answer. */
|
|
58
|
+
credits_estimate: z.number().int().nonnegative(),
|
|
59
|
+
/** The analysis a start would answer for free, or `null` when a start would begin a new, paid one. */
|
|
60
|
+
replays_analysis_id: referenceAnalysisId.nullable(),
|
|
61
|
+
warnings: z.array(z.string()),
|
|
62
|
+
});
|
|
63
|
+
/** What a client reads: a new state, error code or profile field must not break an installed client. */
|
|
64
|
+
export const referenceAnalysisRead = referenceAnalysis.extend({
|
|
65
|
+
state: z.string(),
|
|
66
|
+
reference_profile: z.record(z.string(), z.unknown()).nullable(),
|
|
67
|
+
error: z.object({ code: z.string(), message: z.string() }).nullable(),
|
|
68
|
+
// A server from before #927 sends no money fields.
|
|
69
|
+
credits_reserved: referenceAnalysis.shape.credits_reserved.optional(),
|
|
70
|
+
credits_charged: referenceAnalysis.shape.credits_charged.optional(),
|
|
71
|
+
balance_after_credits: referenceAnalysis.shape.balance_after_credits.optional(),
|
|
72
|
+
});
|
|
73
|
+
/** Rule 3: every element we cannot draw is said in `warnings[]` too, not only inside the profile. */
|
|
74
|
+
export function referenceAnalysisWarnings(profile) {
|
|
75
|
+
return [...profile.unmapped.map((entry) => `beat ${entry.beat_index}: ${entry.what} is not drawn by our templates; substitute: ${entry.suggested_substitute}`), ...profile.analysis.warnings ?? []];
|
|
76
|
+
}
|
|
77
|
+
export const ANALYZE_REFERENCE_DESCRIPTION = "Read a reference ad into a reference_profile: its beats (role, timing as shares of the clip, whether the presenter " +
|
|
78
|
+
"speaks, listens or is off screen), the graphics in our template vocabulary, captions, pacing, palette and music. " +
|
|
79
|
+
"What we cannot draw is in unmapped with a substitute and in warnings. Pass asset_id of an MP4 asset (create_asset " +
|
|
80
|
+
`with kind: "video"), at most ${ASSET_VIDEO_MAX_SECONDS} s and 100 MiB; there is no url input. ` +
|
|
81
|
+
`${REFERENCE_ANALYSIS_CREDITS} credits are held at the start and charged once it succeeds; a failed analysis costs ` +
|
|
82
|
+
`nothing. ${REFERENCE_ANALYSIS_PER_HOUR} new analyses per hour per account. Answers at once with state queued; call ` +
|
|
83
|
+
"get_reference_analysis every 10 seconds until succeeded (about a minute) or failed. The same asset returns the " +
|
|
84
|
+
"same analysis, free, unless it failed. The asset is not changed. The profile names techniques; it copies no face, voice, " +
|
|
85
|
+
"music or brand of the reference.";
|
|
86
|
+
export const GET_REFERENCE_ANALYSIS_DESCRIPTION = "Read an analysis started by analyze_reference: state queued or analyzing, succeeded with reference_profile and " +
|
|
87
|
+
"warnings, or failed with error.code and error.message (timed_out, analysis_failed, asset_gone, enqueue_failed); " +
|
|
88
|
+
"credits_charged is the price once succeeded, 0 once failed. Free.";
|
|
89
|
+
export const QUOTE_ANALYSIS_DESCRIPTION = "Price analyze_reference for an asset before starting it: credits_estimate is what a start holds and charges once it " +
|
|
90
|
+
"succeeds, 0 when the asset already has an analysis that a start would answer (replays_analysis_id). Free; starts nothing.";
|
|
91
|
+
//# sourceMappingURL=reference-analysis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-analysis.js","sourceRoot":"","sources":["../src/reference-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAyB,MAAM,wBAAwB,CAAC;AAEjF,6HAA6H;AAC7H,gIAAgI;AAEhI,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG,4BAA4B,CAAC;AACpE,MAAM,CAAC,MAAM,6BAA6B,GAAG,8BAA8B,CAAC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pH,gCAAgC,uBAAuB,yCAAyC;IAChG,GAAG,0BAA0B,uFAAuF;IACpH,YAAY,2BAA2B,8EAA8E;IACrH,iHAAiH;IACjH,2HAA2H;IAC3H,kCAAkC,CAAC;AAErC,MAAM,CAAC,MAAM,kCAAkC,GAC7C,iHAAiH;IACjH,kHAAkH;IAClH,mEAAmE,CAAC;AAEtE,MAAM,CAAC,MAAM,0BAA0B,GACrC,sHAAsH;IACtH,2HAA2H,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Our template kinds, media laid over or instead of the presenter, a split layout, and what we cannot draw yet. */
|
|
2
|
+
export declare const REFERENCE_GRAPHIC_KINDS: readonly ["tag", "lower_third", "end_card", "title_card", "quote", "stat", "callout", "checklist", "phone_call", "compare", "notification", "progress", "rating", "overlay_media", "insert_media", "layout_split", "particles", "unmapped"];
|
|
3
|
+
export type ReferenceGraphicKind = (typeof REFERENCE_GRAPHIC_KINDS)[number];
|
|
4
|
+
/** The analyser's names for a graphic: its prompt's own list, plus ours. */
|
|
5
|
+
export declare const REFERENCE_SOURCE_KINDS: readonly ["toggle_checklist", "phone_call", "notification", "before_after_split", "split_screen", "stat", "product_ui", "screenshot", "title_card", "end_card", "particles", "tag", "lower_third", "end_card", "title_card", "quote", "stat", "callout", "checklist", "phone_call", "compare", "notification", "progress", "rating", "overlay_media", "insert_media", "layout_split", "particles", "unmapped", "other"];
|
|
6
|
+
export type ReferenceSourceKind = (typeof REFERENCE_SOURCE_KINDS)[number];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TEMPLATE_KIND_IDS } from "./templates/index.js";
|
|
2
|
+
// A reference graphic's kinds, shared by the profile's beats and its staging (#914): their own module, so neither imports the other.
|
|
3
|
+
/** Our template kinds, media laid over or instead of the presenter, a split layout, and what we cannot draw yet. */
|
|
4
|
+
export const REFERENCE_GRAPHIC_KINDS = [...TEMPLATE_KIND_IDS, "overlay_media", "insert_media", "layout_split", "particles", "unmapped"];
|
|
5
|
+
/** The analyser's names for a graphic: its prompt's own list, plus ours. */
|
|
6
|
+
export const REFERENCE_SOURCE_KINDS = ["toggle_checklist", "phone_call", "notification", "before_after_split", "split_screen", "stat", "product_ui",
|
|
7
|
+
"screenshot", "title_card", "end_card", "particles", ...REFERENCE_GRAPHIC_KINDS, "other"];
|
|
8
|
+
//# sourceMappingURL=reference-kinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-kinds.js","sourceRoot":"","sources":["../src/reference-kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qIAAqI;AAErI,oHAAoH;AACpH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAG,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,CAAU,CAAC;AAEjJ,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY;IACjJ,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,uBAAuB,EAAE,OAAO,CAAU,CAAC"}
|