@clipwright/core 0.34.0 → 0.36.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/README.md +6 -3
- package/dist/account-actors.d.ts +173 -15
- package/dist/account-actors.js +142 -11
- 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/api-failure.d.ts +1 -1
- package/dist/api-failure.js +2 -2
- package/dist/api-failure.js.map +1 -1
- package/dist/aspect.d.ts +1 -1
- package/dist/aspect.js +5 -5
- package/dist/aspect.js.map +1 -1
- package/dist/assets.d.ts +30 -6
- package/dist/assets.js +26 -8
- 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/canvas-fit.js +1 -1
- package/dist/canvas-fit.js.map +1 -1
- package/dist/contract-dispositions.d.ts +493 -9
- package/dist/contract-dispositions.js +38 -14
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +1441 -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 +2181 -103
- 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 +1673 -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 +164 -12
- 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 +3228 -140
- 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 +116 -3
- package/dist/edit-billing.d.ts +12 -0
- package/dist/edit-billing.js +7 -0
- package/dist/edit-billing.js.map +1 -1
- package/dist/edit-candidate.d.ts +2 -2
- package/dist/edit-candidate.js +2 -2
- package/dist/edit-candidate.js.map +1 -1
- package/dist/edit-long-form.d.ts +3 -3
- package/dist/edit-long-form.js +14 -4
- package/dist/edit-long-form.js.map +1 -1
- package/dist/edit-revision.d.ts +1 -1
- package/dist/edit-revision.js +1 -1
- package/dist/edit-revision.js.map +1 -1
- package/dist/endpoint-notes.d.ts +3 -0
- package/dist/endpoint-notes.js +70 -0
- package/dist/endpoint-notes.js.map +1 -0
- package/dist/endpoints.d.ts +4 -0
- package/dist/endpoints.js +16 -0
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +11 -2
- package/dist/errors.js.map +1 -1
- package/dist/face-billing.d.ts +55 -0
- package/dist/face-billing.js +24 -2
- package/dist/face-billing.js.map +1 -1
- package/dist/face-delivery.d.ts +1 -1
- package/dist/face-delivery.js +1 -1
- package/dist/face-delivery.js.map +1 -1
- package/dist/faceless-media-record.d.ts +1 -1
- package/dist/faceless-media-record.js +1 -1
- package/dist/faceless-media-record.js.map +1 -1
- package/dist/faceless-price.d.ts +49 -6
- package/dist/faceless-price.js +44 -10
- package/dist/faceless-price.js.map +1 -1
- package/dist/faceless-public-plan.d.ts +6 -2
- package/dist/faceless-public-plan.js +11 -7
- package/dist/faceless-public-plan.js.map +1 -1
- package/dist/faceless-public.d.ts +7 -2
- package/dist/faceless-public.js +5 -5
- package/dist/faceless-public.js.map +1 -1
- package/dist/faceless-voices.d.ts +6 -6
- package/dist/faceless-voices.js +5 -5
- package/dist/faceless-voices.js.map +1 -1
- package/dist/feedback.d.ts +29 -0
- package/dist/feedback.js +29 -0
- package/dist/feedback.js.map +1 -0
- package/dist/generations.d.ts +2 -19
- package/dist/generations.js +28 -49
- 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 +12 -0
- package/dist/index.js +15 -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/media-timebase.js +2 -2
- package/dist/media-timebase.js.map +1 -1
- package/dist/openapi.d.ts +155 -0
- package/dist/openapi.js +339 -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 +193 -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/rate-limit.d.ts +2 -2
- package/dist/rate-limit.js +2 -2
- package/dist/rate-limit.js.map +1 -1
- package/dist/reference-analysis.d.ts +915 -0
- package/dist/reference-analysis.js +210 -0
- package/dist/reference-analysis.js.map +1 -0
- package/dist/reference-kinds.d.ts +8 -0
- package/dist/reference-kinds.js +10 -0
- package/dist/reference-kinds.js.map +1 -0
- package/dist/reference-profile.d.ts +671 -0
- package/dist/reference-profile.js +198 -0
- package/dist/reference-profile.js.map +1 -0
- package/dist/reference-staging.d.ts +583 -0
- package/dist/reference-staging.js +153 -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/render-backend.d.ts +1 -1
- package/dist/resolved-timeline.d.ts +54 -2
- package/dist/resolved-timeline.js +52 -6
- package/dist/resolved-timeline.js.map +1 -1
- package/dist/run-static-warnings.js +15 -6
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +78 -6
- package/dist/runs.js +9 -4
- package/dist/runs.js.map +1 -1
- package/dist/semantic-inserts.d.ts +1 -1
- package/dist/semantic-inserts.js +2 -2
- package/dist/semantic-inserts.js.map +1 -1
- package/dist/skills.d.ts +1810 -29
- package/dist/skills.js +148 -35
- 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 +15 -8
- package/dist/templates/index.js +30 -18
- 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/size.d.ts +1 -1
- package/dist/templates/size.js +1 -1
- package/dist/templates/size.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-delivery.d.ts +1 -1
- package/dist/ugc-delivery.js +1 -1
- package/dist/ugc-delivery.js.map +1 -1
- 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/ugc-video-media.d.ts +1 -1
- package/dist/ugc-video-media.js +1 -1
- package/dist/ugc-video-media.js.map +1 -1
- package/dist/uploads.d.ts +2 -2
- package/dist/uploads.js +2 -2
- package/dist/uploads.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 +836 -420
- package/dist/voice-admission.js +22 -5
- package/dist/voice-admission.js.map +1 -1
- package/dist/voice-listing.d.ts +4 -4
- package/dist/voice-listing.js +11 -6
- 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 +32 -19
- package/dist/voices.js +81 -35
- 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 +388 -10
- package/dist/workflows/methods/kinetic-launch.d.ts +388 -10
- package/dist/workflows/methods/kinetic-launch.js +1 -1
- package/dist/workflows/methods/product-image-story.d.ts +388 -10
- package/dist/workflows/methods/reference-remake.d.ts +881 -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 +388 -10
- package/dist/workflows/methods/shared.js +2 -2
- package/dist/workflows/methods/shared.js.map +1 -1
- package/dist/workflows/methods/ugc-faq-answer.d.ts +388 -10
- package/dist/workflows/methods/ugc-product-intro.d.ts +388 -10
- package/dist/workflows/methods/website-proof-demo.d.ts +388 -10
- package/dist/workflows/methods/website-proof-demo.js +1 -1
- package/dist/workflows/reference-remake.d.ts +684 -0
- package/dist/workflows/reference-remake.js +602 -0
- package/dist/workflows/reference-remake.js.map +1 -0
- package/dist/workflows/validate.js +10 -7
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +9 -4
- package/CHANGELOG.md +0 -1393
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const WORKFLOW_METHOD_IDS: readonly ['ugc-product-intro', 'ugc-faq-answer', 'faceless-explainer', 'product-image-story', 'website-proof-demo', 'kinetic-launch'];
|
|
2
|
+
export declare const WORKFLOW_METHOD_IDS: readonly ['ugc-product-intro', 'ugc-faq-answer', 'faceless-explainer', 'product-image-story', 'website-proof-demo', 'kinetic-launch', 'reference-remake'];
|
|
3
3
|
export declare const workflowMethodId: z.ZodEnum<{
|
|
4
4
|
"faceless-explainer": "faceless-explainer";
|
|
5
5
|
"kinetic-launch": "kinetic-launch";
|
|
6
6
|
"product-image-story": "product-image-story";
|
|
7
|
+
"reference-remake": "reference-remake";
|
|
7
8
|
"ugc-faq-answer": "ugc-faq-answer";
|
|
8
9
|
"ugc-product-intro": "ugc-product-intro";
|
|
9
10
|
"website-proof-demo": "website-proof-demo";
|
|
@@ -35,6 +36,7 @@ export declare const workflowMethodPin: z.ZodObject<{
|
|
|
35
36
|
"faceless-explainer": "faceless-explainer";
|
|
36
37
|
"kinetic-launch": "kinetic-launch";
|
|
37
38
|
"product-image-story": "product-image-story";
|
|
39
|
+
"reference-remake": "reference-remake";
|
|
38
40
|
"ugc-faq-answer": "ugc-faq-answer";
|
|
39
41
|
"ugc-product-intro": "ugc-product-intro";
|
|
40
42
|
"website-proof-demo": "website-proof-demo";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ASPECT_RATIOS, RESOLUTIONS } from '../../skills.js';
|
|
3
|
-
export const WORKFLOW_METHOD_IDS = ['ugc-product-intro', 'ugc-faq-answer', 'faceless-explainer', 'product-image-story', 'website-proof-demo', 'kinetic-launch'];
|
|
3
|
+
export const WORKFLOW_METHOD_IDS = ['ugc-product-intro', 'ugc-faq-answer', 'faceless-explainer', 'product-image-story', 'website-proof-demo', 'kinetic-launch', 'reference-remake'];
|
|
4
4
|
export const workflowMethodId = z.enum(WORKFLOW_METHOD_IDS);
|
|
5
5
|
export const workflowDigest = z.string().regex(/^[a-f0-9]{64}$/);
|
|
6
6
|
export const workflowId = z.string().regex(/^wfp_[a-zA-Z0-9_-]{1,64}$/);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-primitives.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,gBAAgB,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-primitives.js","sourceRoot":"","sources":["../../../src/contracts/v1/workflow-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAC7L,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,2BAA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,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC;AAC/K,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC;AAG5K,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEhI,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -84,6 +84,17 @@ export declare const workflowRunOutcomeRead: z.ZodObject<{
|
|
|
84
84
|
feature: z.ZodString;
|
|
85
85
|
required: z.ZodBoolean;
|
|
86
86
|
}, z.core.$loose>>>;
|
|
87
|
+
reference_profile: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
version: z.ZodString;
|
|
89
|
+
beats: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
90
|
+
role: z.ZodString;
|
|
91
|
+
}, z.core.$loose>>>;
|
|
92
|
+
unmapped: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
93
|
+
what: z.ZodString;
|
|
94
|
+
beat_index: z.ZodNumber;
|
|
95
|
+
suggested_substitute: z.ZodString;
|
|
96
|
+
}, z.core.$loose>>>;
|
|
97
|
+
}, z.core.$loose>>;
|
|
87
98
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
88
99
|
kind: z.ZodString;
|
|
89
100
|
reference: z.ZodString;
|
|
@@ -230,6 +241,17 @@ export declare const workflowRunIdentityRead: z.ZodObject<{
|
|
|
230
241
|
feature: z.ZodString;
|
|
231
242
|
required: z.ZodBoolean;
|
|
232
243
|
}, z.core.$loose>>>;
|
|
244
|
+
reference_profile: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
version: z.ZodString;
|
|
246
|
+
beats: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
247
|
+
role: z.ZodString;
|
|
248
|
+
}, z.core.$loose>>>;
|
|
249
|
+
unmapped: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
250
|
+
what: z.ZodString;
|
|
251
|
+
beat_index: z.ZodNumber;
|
|
252
|
+
suggested_substitute: z.ZodString;
|
|
253
|
+
}, z.core.$loose>>>;
|
|
254
|
+
}, z.core.$loose>>;
|
|
233
255
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
234
256
|
kind: z.ZodString;
|
|
235
257
|
reference: z.ZodString;
|
|
@@ -327,6 +349,7 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
327
349
|
}>;
|
|
328
350
|
credits_reserved: z.ZodNumber;
|
|
329
351
|
credits_charged: z.ZodNullable<z.ZodNumber>;
|
|
352
|
+
balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
330
353
|
billing_terms: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
331
354
|
mode: z.ZodLiteral<"face_seconds">;
|
|
332
355
|
tariffSnapshot: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
@@ -341,15 +364,32 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
341
364
|
minimumCredits: z.ZodNumber;
|
|
342
365
|
rounding: z.ZodLiteral<"ceil_aggregate_seconds">;
|
|
343
366
|
failurePolicy: z.ZodLiteral<"verified_delivery_only">;
|
|
367
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
368
|
+
version: z.ZodLiteral<3>;
|
|
369
|
+
pricingVersion: z.ZodString;
|
|
370
|
+
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
371
|
+
heygen: z.ZodNumber;
|
|
372
|
+
omnihuman: z.ZodNumber;
|
|
373
|
+
}, z.core.$strict>>;
|
|
374
|
+
productionCreditsPerSecond: z.ZodNumber;
|
|
375
|
+
liveAvatarStillCredits: z.ZodNumber;
|
|
376
|
+
minimumCredits: z.ZodNumber;
|
|
377
|
+
rounding: z.ZodLiteral<"ceil_aggregate_seconds">;
|
|
378
|
+
failurePolicy: z.ZodLiteral<"verified_delivery_only">;
|
|
344
379
|
}, z.core.$strict>>]>;
|
|
345
380
|
}, z.core.$strict>>>;
|
|
346
381
|
faceless_billing: z.ZodOptional<z.ZodObject<{
|
|
347
|
-
outputFrames: z.ZodNumber;
|
|
348
382
|
baseCredits: z.ZodNumber;
|
|
349
383
|
openerCredits: z.ZodNumber;
|
|
350
384
|
totalCredits: z.ZodNumber;
|
|
351
|
-
tariffId: z.
|
|
385
|
+
tariffId: z.ZodEnum<{
|
|
386
|
+
"faceless-image-i2v-v1": "faceless-image-i2v-v1";
|
|
387
|
+
"faceless-parts-v1": "faceless-parts-v1";
|
|
388
|
+
}>;
|
|
352
389
|
captions: z.ZodBoolean;
|
|
390
|
+
images: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
imageCredits: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
outputFrames: z.ZodNumber;
|
|
353
393
|
}, z.core.$strict>>;
|
|
354
394
|
revision: z.ZodOptional<z.ZodObject<{
|
|
355
395
|
source_run_id: z.ZodString;
|
|
@@ -449,6 +489,24 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
449
489
|
finalCreditsCharged: z.ZodNumber;
|
|
450
490
|
minimumApplied: z.ZodBoolean;
|
|
451
491
|
}, z.core.$strict>>>;
|
|
492
|
+
parts_billing: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
493
|
+
pricingVersion: z.ZodString;
|
|
494
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
495
|
+
label: z.ZodString;
|
|
496
|
+
unit: z.ZodEnum<{
|
|
497
|
+
face_second: "face_second";
|
|
498
|
+
second: "second";
|
|
499
|
+
still: "still";
|
|
500
|
+
}>;
|
|
501
|
+
quantity: z.ZodNumber;
|
|
502
|
+
unit_credits: z.ZodNumber;
|
|
503
|
+
credits: z.ZodNumber;
|
|
504
|
+
}, z.core.$strict>>;
|
|
505
|
+
minimumCredits: z.ZodNumber;
|
|
506
|
+
minimumApplied: z.ZodBoolean;
|
|
507
|
+
actualDurationSec: z.ZodNumber;
|
|
508
|
+
finalCreditsCharged: z.ZodNumber;
|
|
509
|
+
}, z.core.$strict>>>;
|
|
452
510
|
face_duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
453
511
|
full_speech_duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
454
512
|
face_credits_per_second: z.ZodOptional<z.ZodNumber>;
|
|
@@ -568,6 +626,17 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
568
626
|
feature: z.ZodString;
|
|
569
627
|
required: z.ZodBoolean;
|
|
570
628
|
}, z.core.$loose>>>;
|
|
629
|
+
reference_profile: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
version: z.ZodString;
|
|
631
|
+
beats: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
632
|
+
role: z.ZodString;
|
|
633
|
+
}, z.core.$loose>>>;
|
|
634
|
+
unmapped: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
635
|
+
what: z.ZodString;
|
|
636
|
+
beat_index: z.ZodNumber;
|
|
637
|
+
suggested_substitute: z.ZodString;
|
|
638
|
+
}, z.core.$loose>>>;
|
|
639
|
+
}, z.core.$loose>>;
|
|
571
640
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
572
641
|
kind: z.ZodString;
|
|
573
642
|
reference: z.ZodString;
|
|
@@ -645,6 +714,7 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
645
714
|
skill: z.ZodString;
|
|
646
715
|
credits_reserved: z.ZodNumber;
|
|
647
716
|
credits_charged: z.ZodNullable<z.ZodNumber>;
|
|
717
|
+
balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
648
718
|
revision: z.ZodOptional<z.ZodObject<{
|
|
649
719
|
source_run_id: z.ZodString;
|
|
650
720
|
root_run_id: z.ZodString;
|
|
@@ -732,11 +802,13 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
732
802
|
aspect_ratio: z.ZodString;
|
|
733
803
|
}, z.core.$loose>>;
|
|
734
804
|
faceless_billing: z.ZodOptional<z.ZodObject<{
|
|
735
|
-
outputFrames: z.ZodNumber;
|
|
736
805
|
baseCredits: z.ZodNumber;
|
|
737
806
|
openerCredits: z.ZodNumber;
|
|
738
807
|
totalCredits: z.ZodNumber;
|
|
739
808
|
captions: z.ZodBoolean;
|
|
809
|
+
images: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
imageCredits: z.ZodOptional<z.ZodNumber>;
|
|
811
|
+
outputFrames: z.ZodNumber;
|
|
740
812
|
tariffId: z.ZodString;
|
|
741
813
|
}, z.core.$loose>>;
|
|
742
814
|
billing_terms: z.ZodOptional<z.ZodObject<{
|
|
@@ -753,6 +825,18 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
753
825
|
version: z.ZodNumber;
|
|
754
826
|
rounding: z.ZodString;
|
|
755
827
|
failurePolicy: z.ZodString;
|
|
828
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
829
|
+
pricingVersion: z.ZodString;
|
|
830
|
+
productionCreditsPerSecond: z.ZodNumber;
|
|
831
|
+
liveAvatarStillCredits: z.ZodNumber;
|
|
832
|
+
minimumCredits: z.ZodNumber;
|
|
833
|
+
version: z.ZodNumber;
|
|
834
|
+
rounding: z.ZodString;
|
|
835
|
+
failurePolicy: z.ZodString;
|
|
836
|
+
presenterCreditsPerSecond: z.ZodObject<{
|
|
837
|
+
heygen: z.ZodNumber;
|
|
838
|
+
omnihuman: z.ZodNumber;
|
|
839
|
+
}, z.core.$loose>;
|
|
756
840
|
}, z.core.$loose>]>;
|
|
757
841
|
}, z.core.$loose>>;
|
|
758
842
|
resolved_broll_policy: z.ZodOptional<z.ZodString>;
|
|
@@ -783,6 +867,24 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
783
867
|
finalCreditsCharged: z.ZodNumber;
|
|
784
868
|
minimumApplied: z.ZodBoolean;
|
|
785
869
|
}, z.core.$strict>>>;
|
|
870
|
+
parts_billing: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
871
|
+
pricingVersion: z.ZodString;
|
|
872
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
873
|
+
label: z.ZodString;
|
|
874
|
+
unit: z.ZodEnum<{
|
|
875
|
+
face_second: "face_second";
|
|
876
|
+
second: "second";
|
|
877
|
+
still: "still";
|
|
878
|
+
}>;
|
|
879
|
+
quantity: z.ZodNumber;
|
|
880
|
+
unit_credits: z.ZodNumber;
|
|
881
|
+
credits: z.ZodNumber;
|
|
882
|
+
}, z.core.$strict>>;
|
|
883
|
+
minimumCredits: z.ZodNumber;
|
|
884
|
+
minimumApplied: z.ZodBoolean;
|
|
885
|
+
actualDurationSec: z.ZodNumber;
|
|
886
|
+
finalCreditsCharged: z.ZodNumber;
|
|
887
|
+
}, z.core.$strict>>>;
|
|
786
888
|
face_duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
787
889
|
full_speech_duration_seconds: z.ZodOptional<z.ZodNumber>;
|
|
788
890
|
face_credits_per_second: z.ZodOptional<z.ZodNumber>;
|
|
@@ -881,6 +983,17 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
881
983
|
feature: z.ZodString;
|
|
882
984
|
required: z.ZodBoolean;
|
|
883
985
|
}, z.core.$loose>>>;
|
|
986
|
+
reference_profile: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
version: z.ZodString;
|
|
988
|
+
beats: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
989
|
+
role: z.ZodString;
|
|
990
|
+
}, z.core.$loose>>>;
|
|
991
|
+
unmapped: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
992
|
+
what: z.ZodString;
|
|
993
|
+
beat_index: z.ZodNumber;
|
|
994
|
+
suggested_substitute: z.ZodString;
|
|
995
|
+
}, z.core.$loose>>>;
|
|
996
|
+
}, z.core.$loose>>;
|
|
884
997
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
885
998
|
kind: z.ZodString;
|
|
886
999
|
reference: z.ZodString;
|
package/dist/edit-billing.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** Credits of each unit a revision or a shot candidate generates; a kept candidate is already paid. */
|
|
3
|
+
export declare const EDIT_UNIT_PRICES: Readonly<{
|
|
4
|
+
picture: 7;
|
|
5
|
+
clip: 49;
|
|
6
|
+
clip_with_new_picture: 56;
|
|
7
|
+
kept_picture: 0;
|
|
8
|
+
kept_clip: 0;
|
|
9
|
+
}>;
|
|
10
|
+
/** The re-render fee of a revision that generates at least one unit. */
|
|
11
|
+
export declare const EDIT_RENDER_PRICE = 13;
|
|
12
|
+
/** The price of a revision that generates nothing. */
|
|
13
|
+
export declare const EDIT_ZERO_UNIT_PRICE = 13;
|
|
2
14
|
/** One priced line of a revision: a generated unit, or a kept candidate entering the video. */
|
|
3
15
|
export declare const revisionPriceLine: z.ZodObject<{
|
|
4
16
|
shot_id: z.ZodString;
|
package/dist/edit-billing.js
CHANGED
|
@@ -3,6 +3,13 @@ import { SHOT_OPERATION_MODES } from "./edit-operations.js";
|
|
|
3
3
|
import { shotId } from "./edit-primitives.js";
|
|
4
4
|
// A leaf: `runs.ts` imports it, so it reaches neither `edit-document.ts` nor `runs.ts`.
|
|
5
5
|
const credits = z.number().int().nonnegative().safe();
|
|
6
|
+
// Admission freezes these prices for the run.
|
|
7
|
+
/** Credits of each unit a revision or a shot candidate generates; a kept candidate is already paid. */
|
|
8
|
+
export const EDIT_UNIT_PRICES = Object.freeze({ picture: 7, clip: 49, clip_with_new_picture: 56, kept_picture: 0, kept_clip: 0 });
|
|
9
|
+
/** The re-render fee of a revision that generates at least one unit. */
|
|
10
|
+
export const EDIT_RENDER_PRICE = 13;
|
|
11
|
+
/** The price of a revision that generates nothing. */
|
|
12
|
+
export const EDIT_ZERO_UNIT_PRICE = 13;
|
|
6
13
|
const shotKind = z.enum(["picture", "clip", "presenter"]);
|
|
7
14
|
/** One priced line of a revision: a generated unit, or a kept candidate entering the video. */
|
|
8
15
|
export const revisionPriceLine = z.strictObject({
|
package/dist/edit-billing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-billing.js","sourceRoot":"","sources":["../src/edit-billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,wFAAwF;AACxF,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;AACtD,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAwC,CAAC,CAAC;AAEjG,+FAA+F;AAC/F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,uBAAuB,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;IACvF,OAAO;CACR,CAAC,CAAC;AAGH,mHAAmH;AACnH,MAAM,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;CACvB,CAAC,CAAC;AAGH,wDAAwD;AACxD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IACvG,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAC3G,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC"}
|
package/dist/edit-candidate.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const candidateQuote: z.ZodObject<{
|
|
|
43
43
|
contract_version: z.ZodString;
|
|
44
44
|
}, z.core.$strict>;
|
|
45
45
|
export type CandidateQuote = z.infer<typeof candidateQuote>;
|
|
46
|
-
/** The input a candidate run stores: the request, and what admission resolved for the
|
|
46
|
+
/** The input a candidate run stores: the request, and what admission resolved for the run. */
|
|
47
47
|
export declare const storedCandidateInput: z.ZodObject<{
|
|
48
48
|
shot_id: z.ZodString;
|
|
49
49
|
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -152,7 +152,7 @@ export declare const runCandidatesRead: z.ZodObject<{
|
|
|
152
152
|
}, z.core.$loose>;
|
|
153
153
|
export type RunCandidatesRead = z.infer<typeof runCandidatesRead>;
|
|
154
154
|
/** The one sentence every client and the docs page state a shot candidate's charge by. */
|
|
155
|
-
export declare const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing
|
|
155
|
+
export declare const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing.";
|
|
156
156
|
/** The paths of a run's candidate quote, start and list. The id is encoded, since it comes from the caller. */
|
|
157
157
|
export declare const runCandidatesQuotePath: (id: string) => string;
|
|
158
158
|
export declare const runCandidatesPath: (id: string) => string;
|
package/dist/edit-candidate.js
CHANGED
|
@@ -21,7 +21,7 @@ export const candidateQuote = z.strictObject({
|
|
|
21
21
|
warnings: z.array(z.string()),
|
|
22
22
|
contract_version: z.string().min(1),
|
|
23
23
|
});
|
|
24
|
-
/** The input a candidate run stores: the request, and what admission resolved for the
|
|
24
|
+
/** The input a candidate run stores: the request, and what admission resolved for the run. */
|
|
25
25
|
export const storedCandidateInput = z.strictObject({
|
|
26
26
|
source_run_id: runId,
|
|
27
27
|
...candidateRequest.shape,
|
|
@@ -57,7 +57,7 @@ export const runCandidatesRead = runCandidates.extend({
|
|
|
57
57
|
}).loose()),
|
|
58
58
|
}).loose();
|
|
59
59
|
/** The one sentence every client and the docs page state a shot candidate's charge by. */
|
|
60
|
-
export const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing
|
|
60
|
+
export const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing.";
|
|
61
61
|
/** The paths of a run's candidate quote, start and list. The id is encoded, since it comes from the caller. */
|
|
62
62
|
export const runCandidatesQuotePath = (id) => `/v1/runs/${encodeURIComponent(id)}/candidates/quote`;
|
|
63
63
|
export const runCandidatesPath = (id) => `/v1/runs/${encodeURIComponent(id)}/candidates`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-candidate.js","sourceRoot":"","sources":["../src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,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACpF,CAAC,CAAC,KAAK,EAAE,CAAC;AAGX,MAAM,eAAe,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;AAC/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAChG,CAAC,CAAC,KAAK,EAAE,CAAC;CACZ,CAAC,CAAC,KAAK,EAAE,CAAC;AAGX,0FAA0F;AAC1F,MAAM,CAAC,MAAM,qBAAqB,GAChC,mHAAmH,CAAC;AAEtH,+GAA+G;AAC/G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,YAAY,kBAAkB,CAAC,EAAE,CAAC,mBAAmB,CAAC;AACpH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,YAAY,kBAAkB,CAAC,EAAE,CAAC,aAAa,CAAC"}
|
package/dist/edit-long-form.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { PlannedRunShots } from "./edit-shots.js";
|
|
|
4
4
|
import type { LongFormBackground, LongFormOverlay, LongFormRevisionRecord } from "./long-form-revision.js";
|
|
5
5
|
import type { ResolvedTimeline } from "./resolved-timeline.js";
|
|
6
6
|
import type { AspectRatio } from "./skills.js";
|
|
7
|
-
/** The shortest picture over presenter time
|
|
7
|
+
/** The shortest picture over presenter time: one second. */
|
|
8
8
|
export declare const LONG_FORM_COVER_MIN_FRAMES = 25;
|
|
9
9
|
/** What a long-form timeline allows. Without a background nothing paints the bars, so an upload must fill the canvas (rule 4). */
|
|
10
10
|
export declare function longFormEditRules(background: LongFormBackground | null): EditRules;
|
|
@@ -19,7 +19,7 @@ export type LongFormWordTimings = z.infer<typeof longFormWordTimings>;
|
|
|
19
19
|
export declare const longFormTakeKey: (runId: string, position: number) => string;
|
|
20
20
|
/** The word timings a view needs, by key: each actor slot's own in `segments`, the one narration's in `script_inserts`. */
|
|
21
21
|
export declare function longFormTimingKeys(timeline: ResolvedTimeline): string[];
|
|
22
|
-
/** The canvas of a long-form run: the short side is 1080 at every aspect ratio
|
|
22
|
+
/** The canvas of a long-form run: the short side is 1080 at every aspect ratio. */
|
|
23
23
|
export declare function longFormFrame(aspect: AspectRatio): PlannedRunShots["frame"];
|
|
24
24
|
/** The run's words on the output's clock: a segment's words shifted to its slot, or the narration's as they are. */
|
|
25
25
|
export declare function longFormWords(timeline: ResolvedTimeline, timings: ReadonlyMap<string, LongFormWordTimings>): PlannedRunShots["narration"]["words"];
|
|
@@ -39,7 +39,7 @@ export interface LongFormShotsContext {
|
|
|
39
39
|
/** The source's `background`, `null` when it named none. */
|
|
40
40
|
background: LongFormBackground | null;
|
|
41
41
|
}
|
|
42
|
-
/** The shot id of a timeline slot: a take
|
|
42
|
+
/** The shot id of a timeline slot: a take, an insert, a listening take or a hold by its position. */
|
|
43
43
|
export declare const longFormSlotShotId: (slot: ResolvedTimeline["slots"][number]) => string;
|
|
44
44
|
/** The planned view of a long-form run: each actor slot a presenter take, each media slot an insert, together tiling the output. */
|
|
45
45
|
/** An overlay named after an insert replaces it on the visual track; any other overlay is a cover added by a revision. */
|
package/dist/edit-long-form.js
CHANGED
|
@@ -3,7 +3,7 @@ import { EXACT_FIT_EPSILON } from "./canvas-fit.js";
|
|
|
3
3
|
import { completeFrames } from "./media-timebase.js";
|
|
4
4
|
// The shots view of a long-form run (#604 S7), read from its resolved timeline and its word timings, or from a revision's record.
|
|
5
5
|
// A shot lists operations only while the run states `editable`.
|
|
6
|
-
/** The shortest picture over presenter time
|
|
6
|
+
/** The shortest picture over presenter time: one second. */
|
|
7
7
|
export const LONG_FORM_COVER_MIN_FRAMES = 25;
|
|
8
8
|
/** What a long-form timeline allows. Without a background nothing paints the bars, so an upload must fill the canvas (rule 4). */
|
|
9
9
|
export function longFormEditRules(background) {
|
|
@@ -29,7 +29,7 @@ export function longFormTimingKeys(timeline) {
|
|
|
29
29
|
return timeline.mode === "script_inserts" ? [`runs/${timeline.runId}/timings.json`]
|
|
30
30
|
: timeline.slots.flatMap((slot) => (slot.kind === "actor" ? [`runs/${timeline.runId}/seg${slot.position}/timings.json`] : []));
|
|
31
31
|
}
|
|
32
|
-
/** The canvas of a long-form run: the short side is 1080 at every aspect ratio
|
|
32
|
+
/** The canvas of a long-form run: the short side is 1080 at every aspect ratio. */
|
|
33
33
|
export function longFormFrame(aspect) {
|
|
34
34
|
if (aspect === "16:9")
|
|
35
35
|
return { width: 1920, height: 1080, aspect_ratio: aspect };
|
|
@@ -56,8 +56,8 @@ function wordRange(words, fps, start, end) {
|
|
|
56
56
|
const inside = words.filter((word) => word.start_ms * fps >= start * 1000 && word.start_ms * fps < end * 1000);
|
|
57
57
|
return inside.length === 0 ? [null, null] : [inside[0].index, inside.at(-1).index + 1];
|
|
58
58
|
}
|
|
59
|
-
/** The shot id of a timeline slot: a take
|
|
60
|
-
export const longFormSlotShotId = (slot) => `${slot.kind === "actor" ? "take" : "insert"}-${slot.position}`;
|
|
59
|
+
/** The shot id of a timeline slot: a take, an insert, a listening take or a hold by its position. */
|
|
60
|
+
export const longFormSlotShotId = (slot) => `${slot.kind === "actor" ? "take" : slot.kind === "media" ? "insert" : slot.kind}-${slot.position}`;
|
|
61
61
|
/** The planned view of a long-form run: each actor slot a presenter take, each media slot an insert, together tiling the output. */
|
|
62
62
|
/** An overlay named after an insert replaces it on the visual track; any other overlay is a cover added by a revision. */
|
|
63
63
|
export function longFormRunShots(timeline, words, context, overlays = []) {
|
|
@@ -76,6 +76,16 @@ export function longFormRunShots(timeline, words, context, overlays = []) {
|
|
|
76
76
|
preview_url: preview(longFormTakeKey(timeline.runId, slot.position)), source: "generated",
|
|
77
77
|
media_frames: slot.endFrame - slot.startFrame, media_offset_frames: 0, operations: offered(["cover"]) }];
|
|
78
78
|
}
|
|
79
|
+
// A hold is a still of the take before it (reference-elements S3): a picture, not face time, and the editor offers nothing on it yet.
|
|
80
|
+
if (slot.kind === "hold") {
|
|
81
|
+
return [{ ...placed(slot.startFrame, slot.endFrame), id, track: "visual", kind: "picture", preview_url: null, source: "generated",
|
|
82
|
+
media_frames: null, media_offset_frames: null, operations: [] }];
|
|
83
|
+
}
|
|
84
|
+
// The listening take (S4d) is face time the run is billed for, and the editor offers nothing on it yet.
|
|
85
|
+
if (slot.kind === "live") {
|
|
86
|
+
return [{ ...placed(slot.startFrame, slot.endFrame), id, track: "presenter", kind: "presenter", preview_url: null, source: "generated",
|
|
87
|
+
media_frames: slot.endFrame - slot.startFrame, media_offset_frames: 0, operations: [] }];
|
|
88
|
+
}
|
|
79
89
|
if (replaced.has(id))
|
|
80
90
|
return [];
|
|
81
91
|
const clip = slot.mediaType === "video";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-long-form.js","sourceRoot":"","sources":["../src/edit-long-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,kIAAkI;AAClI,gEAAgE;AAEhE,
|
|
1
|
+
{"version":3,"file":"edit-long-form.js","sourceRoot":"","sources":["../src/edit-long-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE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AAE,OAAO,CAAC,OAAO;QACpD,QAAQ,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aAAsB,CAAC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAuB,CAAC,CAAC,CAAC;QACnJ,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kCAAkC,EAAE;QACzF,gBAAgB,EAAE,OAAO,CAAC,eAAe;KAC1C,CAAC;AACJ,CAAC;AAED,wGAAwG;AACxG,MAAM,UAAU,qBAAqB,CAAC,MAA8B,EAAE,KAA4C,EAChH,OAA6B;IAC7B,OAAO,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;AACtE,CAAC"}
|
package/dist/edit-revision.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare const revisionQuoteRead: z.ZodObject<{
|
|
|
157
157
|
}, z.core.$loose>;
|
|
158
158
|
export type RevisionQuoteRead = z.infer<typeof revisionQuoteRead>;
|
|
159
159
|
/** The one sentence every client and the docs page state a revision's charge by. */
|
|
160
|
-
export declare const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing
|
|
160
|
+
export declare const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing.";
|
|
161
161
|
/** The paths of a run's revision quote and start. The id is encoded, since it comes from the caller. */
|
|
162
162
|
export declare const runRevisionsQuotePath: (id: string) => string;
|
|
163
163
|
export declare const runRevisionsPath: (id: string) => string;
|
package/dist/edit-revision.js
CHANGED
|
@@ -29,7 +29,7 @@ export const revisionQuoteRead = revisionQuote.extend({
|
|
|
29
29
|
billing: revisionBilling.extend({ lines: z.array(priceLineRead), zero_unit: z.string().min(1).nullable() }).loose(),
|
|
30
30
|
}).loose();
|
|
31
31
|
/** The one sentence every client and the docs page state a revision's charge by. */
|
|
32
|
-
export const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing
|
|
32
|
+
export const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing.";
|
|
33
33
|
/** The paths of a run's revision quote and start. The id is encoded, since it comes from the caller. */
|
|
34
34
|
export const runRevisionsQuotePath = (id) => `/v1/runs/${encodeURIComponent(id)}/revisions/quote`;
|
|
35
35
|
export const runRevisionsPath = (id) => `/v1/runs/${encodeURIComponent(id)}/revisions`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-revision.js","sourceRoot":"","sources":["../src/edit-revision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,+GAA+G;AAC/G,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAC1C,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;CAC5E,CAAC,CAAC;AAGH,2FAA2F;AAC3F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,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BAAqB,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,YAAY,kBAAkB,CAAC,EAAE,CAAC,kBAAkB,CAAC;AAClH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,YAAY,kBAAkB,CAAC,EAAE,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CANDIDATE_CHARGE_TEXT } from "./edit-candidate.js";
|
|
2
|
+
import { REVISION_CHARGE_TEXT } from "./edit-revision.js";
|
|
3
|
+
import { FEEDBACK_PER_HOUR } from "./feedback.js";
|
|
4
|
+
import { REFERENCE_ANALYSIS_CREDITS, REFERENCE_ANALYSIS_PER_HOUR, REFERENCE_DATA_CREDITS, REFERENCE_DATA_PER_HOUR } from "./reference-analysis.js";
|
|
5
|
+
/** What each route does, keyed by `endpointLabel`. `/docs` and `/openapi.json` print the same sentence; */
|
|
6
|
+
/** the web docs test proves every shown route has one and nothing else does. */
|
|
7
|
+
export const ENDPOINT_NOTES = {
|
|
8
|
+
"GET /v1/public/workflows": "Lists public workflow methods and whether each is available now, without account plans or an account admission claim.",
|
|
9
|
+
"GET /v1/public/workflows/{id}": "Reads a method's guidance, limitations and what it can do right now.",
|
|
10
|
+
"POST /v1/workflow-plans": "Creates an immutable account-owned workflow draft. Charges nothing and starts no render.",
|
|
11
|
+
"GET /v1/workflow-plans/{id}": "Reads the account's current workflow revision and readiness.",
|
|
12
|
+
"POST /v1/workflow-plans/reference-remake": "Compiles a reference profile and the accepted script into a new reference-remake draft; its warnings name what the plan does not reproduce. Charges nothing, generates nothing and starts no render.",
|
|
13
|
+
"POST /v1/workflow-plans/{id}/revisions": "Saves a new draft against base_version. A matching lost-response retry returns that revision.",
|
|
14
|
+
"POST /v1/workflow-plans/{id}/approve": "Approves a ready revision and its digest. Charges nothing and starts no render.",
|
|
15
|
+
"POST /v1/workflow-plans/{id}/quote": "Quotes an approved workflow through native preparation. The quote expires after five minutes; no credits are reserved. Its launch is the ready body of the run request, with a fresh idempotency_key.",
|
|
16
|
+
"POST /v1/workflow-plans/{id}/run": "Admits the exact quoted native request once, returning a receipt and the existing native Run. Send the quote's launch unchanged as the body, with the Idempotency-Key header equal to launch.idempotency_key; the same accepted request replays its run.",
|
|
17
|
+
"GET /health": "Liveness of the API itself. Answers without a key.",
|
|
18
|
+
"GET /": "Names the service and points to this document. Answers without a key.",
|
|
19
|
+
"GET /robots.txt": "Tells crawlers not to index the API host. Answers without a key.",
|
|
20
|
+
"GET /openapi.json": "The OpenAPI 3.1 description of this API, built from the same schemas the API validates with. Answers without a key.",
|
|
21
|
+
"GET /v1/voices": "Voices you can name in voice or voice_id for make_ugc; skill=make_faceless lists the narration voices of make_faceless instead.",
|
|
22
|
+
"GET /v1/template-sounds": "The sounds make_ugc templates play, by beat: where each beat plays, its default and every name template_sounds takes. Free.",
|
|
23
|
+
"GET /v1/account": "Balance, debt and holds of the account behind the key.",
|
|
24
|
+
"POST /v1/feedback": `Tells us what is missing, confusing, wrong or slow, optionally about a run of this account; we read every one. Free. The same kind, text and run within 24 hours answer the same feedback_id; ${FEEDBACK_PER_HOUR} per hour.`,
|
|
25
|
+
"GET /v1/public/skills": "Catalogue of skills and their input, without a key.",
|
|
26
|
+
"GET /v1/public/prices": "The price of every action in credits: a fixed number per unit, or a formula where the price depends on the input; the quote gives the exact number. Free, without a key.",
|
|
27
|
+
"GET /v1/actors": "Actors saved on the account, with the id make_ugc takes.",
|
|
28
|
+
"GET /v1/actors/{id}/defaults": "Reads the saved actor's default policy for people in inserts.",
|
|
29
|
+
"POST /v1/actors/{id}/defaults": "Sets the saved actor's default policy for people in inserts. A run can override it.",
|
|
30
|
+
"DELETE /v1/actors/{id}": "Forgets a saved actor. An actor used by a live run is kept.",
|
|
31
|
+
"GET /v1/runs/{id}": "State of one run of any skill, its warnings and its video url.",
|
|
32
|
+
"GET /v1/runs/{id}/shots": "The shots of one run: each shot's span, words, description and preview, and whether the run can be edited.",
|
|
33
|
+
"GET /v1/runs/{id}/edit": "The saved draft of an edit of one run, with its version. Version 0 is a run with no draft: its document changes nothing.",
|
|
34
|
+
"POST /v1/runs/{id}/edit": "Saves the draft of an edit against the version it was read at. Charges nothing and renders nothing.",
|
|
35
|
+
"POST /v1/runs/{id}/revisions/quote": `Prices a revision of a faceless run: what the document or the list of shot changes generates and what it costs. Charges nothing. ${REVISION_CHARGE_TEXT} While paid edits are closed it answers editing_disabled.`,
|
|
36
|
+
"POST /v1/runs/{id}/revisions": `Starts a revision, a new faceless run made from the document, and holds the quoted credits. The same Idempotency-Key with the same request returns the first revision; another key is another revision, charged again. ${REVISION_CHARGE_TEXT} While paid edits are closed it answers editing_disabled and charges nothing.`,
|
|
37
|
+
"POST /v1/runs/{id}/candidates/quote": `Prices one shot candidate of a faceless run: one picture or clip made for one shot, to keep or discard. Charges nothing. ${CANDIDATE_CHARGE_TEXT} While shot candidates are closed it answers editing_disabled.`,
|
|
38
|
+
"POST /v1/runs/{id}/candidates": `Starts a shot candidate and holds the price of its one unit. ${CANDIDATE_CHARGE_TEXT} The same Idempotency-Key with the same request and take returns the first candidate; take + 1 makes another, charged again. While shot candidates are closed it answers editing_disabled and charges nothing.`,
|
|
39
|
+
"GET /v1/runs/{id}/candidates": "The shot candidates of a faceless run's family, oldest first, each with its state, its charge and a preview once made. While shot candidates are closed it answers editing_disabled.",
|
|
40
|
+
"POST /v1/uploads": "Takes image bytes and returns a signed https url, upload_id and content_digest (SHA-256 of the original bytes). Use upload_id as a workflow asset_id and copy content_digest directly; native video and actor calls use url.",
|
|
41
|
+
"GET /v1/uploads": "Your uploads a revision still takes, newest first and one per picture, each with upload_id, the original content_digest, a freshly signed url and the moment it stops being usable. Free.",
|
|
42
|
+
"POST /v1/uploads/import": "Downloads a public https PNG or JPEG (up to 10 MB, 20 seconds, 3 redirects) and returns the same upload shape. Private addresses are refused; 30 downloads per hour per account. Free.",
|
|
43
|
+
"POST /v1/uploads/intents": "Returns a presigned PUT url for a local PNG or JPEG of the declared type, size and sha256. The upload_id is usable once the PUT lands; before that generations answer upload_not_finished. Free.",
|
|
44
|
+
"GET /v1/uploads/{id}": "One upload with a freshly signed url and its usable_until. After a presigned PUT it confirms the file: upload_not_finished until it is there, upload_expired after 24 hours. Free.",
|
|
45
|
+
"POST /v1/assets": "Saves a picture as an account asset, kept until you delete it: from a run_id, an upload_id, a public https url or base64. Your own material needs rights_confirmed: true, or analysis_only: true for a reference kept for analyze_reference alone, which no render or generation takes. 2000 assets and 20 GB per account, 100 new ones per day. Free.",
|
|
46
|
+
"POST /v1/assets/bytes": "Saves the PNG or JPEG in the body (up to 10 MB) as an asset; role, name and rights_confirmed=true (or analysis_only=true, for analyze_reference alone) travel in the query. Free.",
|
|
47
|
+
"GET /v1/assets": "The account's live assets, newest first, each with a link signed for an hour, and the usage of the caps; filters role and kind, paged by cursor. Free.",
|
|
48
|
+
"GET /v1/assets/{id}": "One live asset with a link signed for an hour. Free.",
|
|
49
|
+
"POST /v1/assets/{id}": "Renames an asset or changes its role. Free.",
|
|
50
|
+
"DELETE /v1/assets/{id}": "Deletes an asset: it leaves the list and generations at once, and a daily cleanup removes its file once 7 days have passed. Free.",
|
|
51
|
+
"POST /v1/reference-analyses/quote": `Prices an analysis of this asset or link: ${REFERENCE_ANALYSIS_CREDITS} credits, ${REFERENCE_DATA_CREDITS} with mode data, or 0 when ` +
|
|
52
|
+
"its live analysis in that mode would answer. Charges nothing.",
|
|
53
|
+
"POST /v1/reference-analyses": "Starts reading an MP4 asset, up to 120 s, into a reference profile (or, with mode data, its transcript, hook and a frame sheet) and " +
|
|
54
|
+
"answers at once; the same asset in the same mode answers the same analysis for free. Holds " +
|
|
55
|
+
`${REFERENCE_ANALYSIS_CREDITS} credits (${REFERENCE_DATA_CREDITS} for data), charged once it succeeds; a failed one costs nothing. ` +
|
|
56
|
+
`${REFERENCE_ANALYSIS_PER_HOUR} new full and ${REFERENCE_DATA_PER_HOUR} new data analyses per hour.`,
|
|
57
|
+
"GET /v1/reference-analyses/{id}": "One reference analysis: queued, analyzing, succeeded with reference_profile or data and warnings, or failed with its error. Free.",
|
|
58
|
+
"POST /v1/skills/make_ugc/quote": "Prices a make_ugc call with this input. Charges nothing.",
|
|
59
|
+
"POST /v1/skills/make_ugc/run": "Starts a video run and answers at once with a run_id. Poll the run for the result.",
|
|
60
|
+
"POST /v1/skills/create_actor/quote": "Prices a create_actor call with this input. Charges nothing.",
|
|
61
|
+
"POST /v1/skills/create_actor/run": "Starts an actor run and answers at once with a run_id. Poll the run for the result.",
|
|
62
|
+
"POST /v1/skills/make_faceless/quote": "Prices a make_faceless call with this input. Charges nothing.",
|
|
63
|
+
"POST /v1/skills/make_faceless/run": "Starts a faceless video run and answers at once with a run_id. Poll the run for the result.",
|
|
64
|
+
"GET /v1/generations/models": "The models generate_image and generate_video take, with their measured modes, aspect ratios, resolutions, durations, output size and credits per image or per second. Free. While generations are closed it answers generations_disabled.",
|
|
65
|
+
"POST /v1/skills/generate_image/quote": "Prices one image with this request: credits, width, height and warnings. Charges nothing.",
|
|
66
|
+
"POST /v1/skills/generate_image/run": "Starts one image generation and answers at once with a run_id; the run's generation block holds the image once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
|
|
67
|
+
"POST /v1/skills/generate_video/quote": "Prices one silent clip with this request: credits per second times its duration, width, height and warnings. Charges nothing.",
|
|
68
|
+
"POST /v1/skills/generate_video/run": "Starts one clip generation and answers at once with a run_id; the run's generation block holds the clip once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=endpoint-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-notes.js","sourceRoot":"","sources":["../src/endpoint-notes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC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AAsL;IACxL,kBAAkB,EAChB,8NAA8N;IAChO,iBAAiB,EACf,2LAA2L;IAC7L,yBAAyB,EACvB,wLAAwL;IAC1L,0BAA0B,EACxB,kMAAkM;IACpM,sBAAsB,EACpB,oLAAoL;IACtL,iBAAiB,EACf,wVAAwV;IAC1V,uBAAuB,EACrB,mLAAmL;IACrL,gBAAgB,EACd,wJAAwJ;IAC1J,qBAAqB,EAAE,sDAAsD;IAC7E,sBAAsB,EAAE,6CAA6C;IACrE,wBAAwB,EACtB,mIAAmI;IACrI,mCAAmC,EACjC,6CAA6C,0BAA0B,aAAa,sBAAsB,6BAA6B;QACvI,+DAA+D;IACjE,6BAA6B,EAC3B,sIAAsI;QACtI,6FAA6F;QAC7F,GAAG,0BAA0B,aAAa,sBAAsB,oEAAoE;QACpI,GAAG,2BAA2B,iBAAiB,uBAAuB,8BAA8B;IACtG,iCAAiC,EAC/B,mIAAmI;IACrI,gCAAgC,EAAE,0DAA0D;IAC5F,8BAA8B,EAC5B,oFAAoF;IACtF,oCAAoC,EAClC,8DAA8D;IAChE,kCAAkC,EAChC,qFAAqF;IACvF,qCAAqC,EACnC,+DAA+D;IACjE,mCAAmC,EACjC,6FAA6F;IAC/F,4BAA4B,EAC1B,2OAA2O;IAC7O,sCAAsC,EACpC,2FAA2F;IAC7F,oCAAoC,EAClC,qPAAqP;IACvP,sCAAsC,EACpC,+HAA+H;IACjI,oCAAoC,EAClC,mPAAmP;CACtP,CAAC"}
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ export declare const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
|
|
|
2
2
|
export declare const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
|
|
3
3
|
export declare const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
|
|
4
4
|
export declare const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
|
|
5
|
+
/** A reference remake compiled into a new plan (#857): free, it starts nothing. */
|
|
6
|
+
export declare const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
|
|
5
7
|
export declare const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
|
|
6
8
|
export declare const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
|
|
7
9
|
export declare const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
|
|
8
10
|
export declare const WORKFLOW_RUN_PATH = "/v1/workflow-plans/:id/run";
|
|
11
|
+
/** The OpenAPI 3.1 document, built from this registry and served without a key. */
|
|
12
|
+
export declare const OPENAPI_PATH = "/openapi.json";
|
|
9
13
|
export interface ApiEndpoint {
|
|
10
14
|
method: "GET" | "POST" | "DELETE";
|
|
11
15
|
/** The path in Hono notation: a parameter is `:id`. */
|