@clipwright/core 0.64.0 → 0.66.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.
Files changed (49) hide show
  1. package/dist/ad-guide.d.ts +17 -1
  2. package/dist/ad-guide.js +3 -1
  3. package/dist/api-failure.d.ts +1 -0
  4. package/dist/api-failure.js +10 -3
  5. package/dist/contract-dispositions.d.ts +1 -41
  6. package/dist/contract-dispositions.js +0 -9
  7. package/dist/contracts/v1/workflow-brief.d.ts +0 -96
  8. package/dist/contracts/v1/workflow-catalog.d.ts +0 -96
  9. package/dist/contracts/v1/workflow-client.d.ts +0 -48
  10. package/dist/contracts/v1/workflow-execution.d.ts +0 -172
  11. package/dist/contracts/v1/workflow-next.d.ts +0 -86
  12. package/dist/contracts/v1/workflow-plan.d.ts +0 -144
  13. package/dist/endpoint-notes.js +1 -1
  14. package/dist/errors.d.ts +13 -1
  15. package/dist/errors.js +3 -5
  16. package/dist/faceless-price.d.ts +0 -27
  17. package/dist/faceless-price.js +0 -28
  18. package/dist/faceless-public.d.ts +8 -120
  19. package/dist/faceless-public.js +9 -23
  20. package/dist/film-guide.d.ts +43 -0
  21. package/dist/film-guide.js +11 -0
  22. package/dist/generations.d.ts +9 -2
  23. package/dist/generations.js +18 -5
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.js +0 -1
  26. package/dist/openapi.d.ts +11 -0
  27. package/dist/openapi.js +3 -1
  28. package/dist/own-agent-price.d.ts +1 -1
  29. package/dist/own-agent-price.js +2 -2
  30. package/dist/own-agent-runs.d.ts +1 -0
  31. package/dist/own-agent-runs.js +5 -1
  32. package/dist/parts-pricing.d.ts +0 -2
  33. package/dist/parts-pricing.js +0 -2
  34. package/dist/scene-bible.d.ts +4 -12
  35. package/dist/scene-bible.js +6 -17
  36. package/dist/skills.d.ts +223 -223
  37. package/dist/skills.js +11 -13
  38. package/dist/voice-admission.d.ts +0 -48
  39. package/dist/workflows/methods/faceless-explainer.d.ts +0 -39
  40. package/dist/workflows/methods/kinetic-launch.d.ts +0 -78
  41. package/dist/workflows/methods/product-image-story.d.ts +0 -39
  42. package/dist/workflows/methods/reference-remake.d.ts +0 -39
  43. package/dist/workflows/methods/shared.d.ts +0 -39
  44. package/dist/workflows/methods/ugc-faq-answer.d.ts +0 -39
  45. package/dist/workflows/methods/ugc-product-intro.d.ts +0 -39
  46. package/dist/workflows/methods/website-proof-demo.d.ts +0 -78
  47. package/package.json +1 -1
  48. package/dist/scene-proposal.d.ts +0 -79
  49. package/dist/scene-proposal.js +0 -50
@@ -197,18 +197,6 @@ export declare const ugcProductIntro: {
197
197
  listening?: "freeze" | "live" | undefined;
198
198
  } | undefined;
199
199
  product_asset_id?: string | undefined;
200
- scene?: {
201
- place?: string | undefined;
202
- posture?: "seated" | "standing" | undefined;
203
- wardrobe?: string | undefined;
204
- product?: string | undefined;
205
- props?: string[] | undefined;
206
- light?: string | undefined;
207
- } | undefined;
208
- proposal?: {
209
- id: string;
210
- accept: string[];
211
- } | undefined;
212
200
  propose?: false | undefined;
213
201
  person?: string | undefined;
214
202
  actor_id?: string | undefined;
@@ -1996,7 +1984,6 @@ export declare const ugcProductIntro: {
1996
1984
  product?: boolean | {
1997
1985
  placement: "beside" | "hand";
1998
1986
  } | undefined;
1999
- start?: string | undefined;
2000
1987
  cast?: {
2001
1988
  asset_id: string;
2002
1989
  role: string;
@@ -2095,18 +2082,6 @@ export declare const ugcProductIntro: {
2095
2082
  tier?: "pro" | "standard" | undefined;
2096
2083
  resolution?: "1080p" | "720p" | undefined;
2097
2084
  max_credits?: number | undefined;
2098
- scene?: {
2099
- place?: string | undefined;
2100
- posture?: "seated" | "standing" | undefined;
2101
- wardrobe?: string | undefined;
2102
- product?: string | undefined;
2103
- props?: string[] | undefined;
2104
- light?: string | undefined;
2105
- } | undefined;
2106
- proposal?: {
2107
- id: string;
2108
- accept: string[];
2109
- } | undefined;
2110
2085
  propose?: false | undefined;
2111
2086
  input_mode: "script";
2112
2087
  transitions?: false | {
@@ -3733,7 +3708,6 @@ export declare const ugcProductIntro: {
3733
3708
  comma_s?: number | undefined;
3734
3709
  mid_phrase_s?: number | undefined;
3735
3710
  } | undefined;
3736
- keep_anchors?: boolean | undefined;
3737
3711
  script: string;
3738
3712
  character_reference?: string | undefined;
3739
3713
  } | {
@@ -3781,18 +3755,6 @@ export declare const ugcProductIntro: {
3781
3755
  tier?: "pro" | "standard" | undefined;
3782
3756
  resolution?: "1080p" | "720p" | undefined;
3783
3757
  max_credits?: number | undefined;
3784
- scene?: {
3785
- place?: string | undefined;
3786
- posture?: "seated" | "standing" | undefined;
3787
- wardrobe?: string | undefined;
3788
- product?: string | undefined;
3789
- props?: string[] | undefined;
3790
- light?: string | undefined;
3791
- } | undefined;
3792
- proposal?: {
3793
- id: string;
3794
- accept: string[];
3795
- } | undefined;
3796
3758
  propose?: false | undefined;
3797
3759
  input_mode: "brief";
3798
3760
  brief: string;
@@ -3805,7 +3767,6 @@ export declare const ugcProductIntro: {
3805
3767
  scenes?: undefined;
3806
3768
  moves?: undefined;
3807
3769
  pause_trim?: undefined;
3808
- keep_anchors?: undefined;
3809
3770
  character_reference?: string | undefined;
3810
3771
  };
3811
3772
  } | undefined;
@@ -197,18 +197,6 @@ export declare const websiteProofDemo: {
197
197
  listening?: "freeze" | "live" | undefined;
198
198
  } | undefined;
199
199
  product_asset_id?: string | undefined;
200
- scene?: {
201
- place?: string | undefined;
202
- posture?: "seated" | "standing" | undefined;
203
- wardrobe?: string | undefined;
204
- product?: string | undefined;
205
- props?: string[] | undefined;
206
- light?: string | undefined;
207
- } | undefined;
208
- proposal?: {
209
- id: string;
210
- accept: string[];
211
- } | undefined;
212
200
  propose?: false | undefined;
213
201
  person?: string | undefined;
214
202
  actor_id?: string | undefined;
@@ -1996,7 +1984,6 @@ export declare const websiteProofDemo: {
1996
1984
  product?: boolean | {
1997
1985
  placement: "beside" | "hand";
1998
1986
  } | undefined;
1999
- start?: string | undefined;
2000
1987
  cast?: {
2001
1988
  asset_id: string;
2002
1989
  role: string;
@@ -2095,18 +2082,6 @@ export declare const websiteProofDemo: {
2095
2082
  tier?: "pro" | "standard" | undefined;
2096
2083
  resolution?: "1080p" | "720p" | undefined;
2097
2084
  max_credits?: number | undefined;
2098
- scene?: {
2099
- place?: string | undefined;
2100
- posture?: "seated" | "standing" | undefined;
2101
- wardrobe?: string | undefined;
2102
- product?: string | undefined;
2103
- props?: string[] | undefined;
2104
- light?: string | undefined;
2105
- } | undefined;
2106
- proposal?: {
2107
- id: string;
2108
- accept: string[];
2109
- } | undefined;
2110
2085
  propose?: false | undefined;
2111
2086
  input_mode: "script";
2112
2087
  transitions?: false | {
@@ -3733,7 +3708,6 @@ export declare const websiteProofDemo: {
3733
3708
  comma_s?: number | undefined;
3734
3709
  mid_phrase_s?: number | undefined;
3735
3710
  } | undefined;
3736
- keep_anchors?: boolean | undefined;
3737
3711
  script: string;
3738
3712
  character_reference?: string | undefined;
3739
3713
  } | {
@@ -3781,18 +3755,6 @@ export declare const websiteProofDemo: {
3781
3755
  tier?: "pro" | "standard" | undefined;
3782
3756
  resolution?: "1080p" | "720p" | undefined;
3783
3757
  max_credits?: number | undefined;
3784
- scene?: {
3785
- place?: string | undefined;
3786
- posture?: "seated" | "standing" | undefined;
3787
- wardrobe?: string | undefined;
3788
- product?: string | undefined;
3789
- props?: string[] | undefined;
3790
- light?: string | undefined;
3791
- } | undefined;
3792
- proposal?: {
3793
- id: string;
3794
- accept: string[];
3795
- } | undefined;
3796
3758
  propose?: false | undefined;
3797
3759
  input_mode: "brief";
3798
3760
  brief: string;
@@ -3805,7 +3767,6 @@ export declare const websiteProofDemo: {
3805
3767
  scenes?: undefined;
3806
3768
  moves?: undefined;
3807
3769
  pause_trim?: undefined;
3808
- keep_anchors?: undefined;
3809
3770
  character_reference?: string | undefined;
3810
3771
  };
3811
3772
  } | undefined;
@@ -4436,18 +4397,6 @@ export declare const websiteProofDemoFilm: {
4436
4397
  listening?: "freeze" | "live" | undefined;
4437
4398
  } | undefined;
4438
4399
  product_asset_id?: string | undefined;
4439
- scene?: {
4440
- place?: string | undefined;
4441
- posture?: "seated" | "standing" | undefined;
4442
- wardrobe?: string | undefined;
4443
- product?: string | undefined;
4444
- props?: string[] | undefined;
4445
- light?: string | undefined;
4446
- } | undefined;
4447
- proposal?: {
4448
- id: string;
4449
- accept: string[];
4450
- } | undefined;
4451
4400
  propose?: false | undefined;
4452
4401
  person?: string | undefined;
4453
4402
  actor_id?: string | undefined;
@@ -6235,7 +6184,6 @@ export declare const websiteProofDemoFilm: {
6235
6184
  product?: boolean | {
6236
6185
  placement: "beside" | "hand";
6237
6186
  } | undefined;
6238
- start?: string | undefined;
6239
6187
  cast?: {
6240
6188
  asset_id: string;
6241
6189
  role: string;
@@ -6334,18 +6282,6 @@ export declare const websiteProofDemoFilm: {
6334
6282
  tier?: "pro" | "standard" | undefined;
6335
6283
  resolution?: "1080p" | "720p" | undefined;
6336
6284
  max_credits?: number | undefined;
6337
- scene?: {
6338
- place?: string | undefined;
6339
- posture?: "seated" | "standing" | undefined;
6340
- wardrobe?: string | undefined;
6341
- product?: string | undefined;
6342
- props?: string[] | undefined;
6343
- light?: string | undefined;
6344
- } | undefined;
6345
- proposal?: {
6346
- id: string;
6347
- accept: string[];
6348
- } | undefined;
6349
6285
  propose?: false | undefined;
6350
6286
  input_mode: "script";
6351
6287
  transitions?: false | {
@@ -7972,7 +7908,6 @@ export declare const websiteProofDemoFilm: {
7972
7908
  comma_s?: number | undefined;
7973
7909
  mid_phrase_s?: number | undefined;
7974
7910
  } | undefined;
7975
- keep_anchors?: boolean | undefined;
7976
7911
  script: string;
7977
7912
  character_reference?: string | undefined;
7978
7913
  } | {
@@ -8020,18 +7955,6 @@ export declare const websiteProofDemoFilm: {
8020
7955
  tier?: "pro" | "standard" | undefined;
8021
7956
  resolution?: "1080p" | "720p" | undefined;
8022
7957
  max_credits?: number | undefined;
8023
- scene?: {
8024
- place?: string | undefined;
8025
- posture?: "seated" | "standing" | undefined;
8026
- wardrobe?: string | undefined;
8027
- product?: string | undefined;
8028
- props?: string[] | undefined;
8029
- light?: string | undefined;
8030
- } | undefined;
8031
- proposal?: {
8032
- id: string;
8033
- accept: string[];
8034
- } | undefined;
8035
7958
  propose?: false | undefined;
8036
7959
  input_mode: "brief";
8037
7960
  brief: string;
@@ -8044,7 +7967,6 @@ export declare const websiteProofDemoFilm: {
8044
7967
  scenes?: undefined;
8045
7968
  moves?: undefined;
8046
7969
  pause_trim?: undefined;
8047
- keep_anchors?: undefined;
8048
7970
  character_reference?: string | undefined;
8049
7971
  };
8050
7972
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipwright/core",
3
- "version": "0.64.0",
3
+ "version": "0.66.0",
4
4
  "description": "Zod schemas and the shared request/response contract of the Clipwright UGC video API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,79 +0,0 @@
1
- import { z } from "zod";
2
- export declare const SCENE_PROPOSAL_ID: RegExp;
3
- export declare const MAX_PROPOSAL_OPTIONS = 12;
4
- export declare const SCENE_PROPOSAL_OPTION_FIELDS: readonly ["shots", "scenes", "music", "moves"];
5
- export type SceneProposalOptionField = (typeof SCENE_PROPOSAL_OPTION_FIELDS)[number];
6
- export declare const sceneProposalOption: z.ZodObject<{
7
- id: z.ZodString;
8
- what: z.ZodString;
9
- field: z.ZodEnum<{
10
- moves: "moves";
11
- music: "music";
12
- scenes: "scenes";
13
- shots: "shots";
14
- }>;
15
- credits: z.ZodNumber;
16
- item: z.ZodUnknown;
17
- }, z.core.$strict>;
18
- export type SceneProposalOption = z.infer<typeof sceneProposalOption>;
19
- export declare const sceneProposal: z.ZodDiscriminatedUnion<[z.ZodObject<{
20
- state: z.ZodLiteral<"writing">;
21
- retry_after_s: z.ZodNumber;
22
- }, z.core.$strict>, z.ZodObject<{
23
- state: z.ZodLiteral<"ready">;
24
- id: z.ZodString;
25
- expires_at: z.ZodString;
26
- scene: z.ZodOptional<z.ZodObject<{
27
- place: z.ZodOptional<z.ZodString>;
28
- posture: z.ZodOptional<z.ZodEnum<{
29
- seated: "seated";
30
- standing: "standing";
31
- }>>;
32
- wardrobe: z.ZodOptional<z.ZodString>;
33
- product: z.ZodOptional<z.ZodString>;
34
- props: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- light: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strict>>;
37
- free: z.ZodArray<z.ZodObject<{
38
- what: z.ZodString;
39
- }, z.core.$strict>>;
40
- options: z.ZodArray<z.ZodObject<{
41
- id: z.ZodString;
42
- what: z.ZodString;
43
- field: z.ZodEnum<{
44
- moves: "moves";
45
- music: "music";
46
- scenes: "scenes";
47
- shots: "shots";
48
- }>;
49
- credits: z.ZodNumber;
50
- item: z.ZodUnknown;
51
- }, z.core.$strict>>;
52
- base_credits: z.ZodNumber;
53
- notes: z.ZodArray<z.ZodString>;
54
- }, z.core.$strict>, z.ZodObject<{
55
- state: z.ZodLiteral<"unavailable">;
56
- reason: z.ZodString;
57
- }, z.core.$strict>], "state">;
58
- export type SceneProposal = z.infer<typeof sceneProposal>;
59
- export declare const SCENE_PROPOSAL_DESCRIPTION: string;
60
- export declare const sceneProposalAccept: z.ZodObject<{
61
- id: z.ZodString;
62
- accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
63
- }, z.core.$strict>;
64
- export type SceneProposalAccept = z.infer<typeof sceneProposalAccept>;
65
- export declare const PROPOSE_DESCRIPTION: string;
66
- export declare const proposeField: z.ZodOptional<z.ZodLiteral<false>>;
67
- export declare const FACELESS_SCENE_PROPOSAL_DESCRIPTION: string;
68
- export declare const facelessSceneProposalAccept: z.ZodObject<{
69
- id: z.ZodString;
70
- accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
71
- }, z.core.$strict>;
72
- export declare const FACELESS_PROPOSE_DESCRIPTION = "quote_faceless only: false asks for no scene proposal. Omitted, a quote with no scene proposes one, free.";
73
- export declare const facelessProposeField: z.ZodOptional<z.ZodLiteral<false>>;
74
- export declare const SCENE_PROPOSAL_DISABLED_MESSAGE = "proposal is not available right now; omit proposal";
75
- export declare const SCENE_PROPOSAL_NOT_FOUND_MESSAGE = "no such scene proposal on this account; quote again";
76
- export declare const SCENE_PROPOSAL_EXPIRED_MESSAGE = "the scene proposal has expired; quote again";
77
- export declare const SCENE_PROPOSAL_STALE_MESSAGE = "the body changed since the quote that made this proposal; quote again";
78
- export declare const SCENE_PROPOSAL_NOT_READY_MESSAGE = "the scene proposal is still being written; quote again";
79
- export declare const SCENE_PROPOSAL_WITH_SCENE_MESSAGE = "pass scene or proposal, not both: the proposal brings its own scene";
@@ -1,50 +0,0 @@
1
- import { z } from "zod";
2
- import { sceneBible } from "./scene-bible.js";
3
- export const SCENE_PROPOSAL_ID = /^sp_[a-z0-9]{20}$/;
4
- export const MAX_PROPOSAL_OPTIONS = 12;
5
- export const SCENE_PROPOSAL_OPTION_FIELDS = ["shots", "scenes", "music", "moves"];
6
- const optionId = z.string().regex(/^o[1-9][0-9]?$/);
7
- export const sceneProposalOption = z.strictObject({
8
- id: optionId,
9
- what: z.string().max(300),
10
- field: z.enum(SCENE_PROPOSAL_OPTION_FIELDS),
11
- credits: z.number().int().nonnegative(),
12
- item: z.unknown(),
13
- });
14
- export const sceneProposal = z.discriminatedUnion("state", [
15
- z.strictObject({ state: z.literal("writing"), retry_after_s: z.number().int().positive() }),
16
- z.strictObject({
17
- state: z.literal("ready"),
18
- id: z.string().regex(SCENE_PROPOSAL_ID),
19
- expires_at: z.string(),
20
- scene: sceneBible.optional(),
21
- free: z.array(z.strictObject({ what: z.string().max(300) })).max(40),
22
- options: z.array(sceneProposalOption).max(MAX_PROPOSAL_OPTIONS),
23
- base_credits: z.number().int().nonnegative(),
24
- notes: z.array(z.string().max(300)).max(10),
25
- }),
26
- z.strictObject({ state: z.literal("unavailable"), reason: z.string().max(200) }),
27
- ]);
28
- export const SCENE_PROPOSAL_DESCRIPTION = "An accepted scene proposal from quote_ugc: its id and the option ids the person picked. The " +
29
- "server adds the proposed scene, its free devices and the picked options to this body, and the quote with it is the reserve. The rest " +
30
- "of the body stays as quoted; a changed body is refused, so quote again.";
31
- export const sceneProposalAccept = z.strictObject({
32
- id: z.string().regex(SCENE_PROPOSAL_ID),
33
- accept: z.array(optionId).max(MAX_PROPOSAL_OPTIONS)
34
- .refine(ids => new Set(ids).size === ids.length, { message: "each option id once" }).default([]),
35
- }).describe(SCENE_PROPOSAL_DESCRIPTION);
36
- export const PROPOSE_DESCRIPTION = "false: quote_ugc proposes no scene, and make_ugc adds no free move of its own; the live shots still share " +
37
- "one scene. Omitted, a quote with no scene proposes one, free, and make_ugc may add free moves, each named in warnings.";
38
- export const proposeField = z.literal(false).optional().describe(PROPOSE_DESCRIPTION);
39
- export const FACELESS_SCENE_PROPOSAL_DESCRIPTION = "An accepted scene proposal from quote_faceless: its id and the option ids the person " +
40
- "picked. The server adds the proposed scene, its free devices and the picked options to this body, and the quote with it is the " +
41
- "reserve. The rest of the body stays as quoted; a changed body is refused, so quote again.";
42
- export const facelessSceneProposalAccept = sceneProposalAccept.describe(FACELESS_SCENE_PROPOSAL_DESCRIPTION);
43
- export const FACELESS_PROPOSE_DESCRIPTION = "quote_faceless only: false asks for no scene proposal. Omitted, a quote with no scene proposes one, free.";
44
- export const facelessProposeField = z.literal(false).optional().describe(FACELESS_PROPOSE_DESCRIPTION);
45
- export const SCENE_PROPOSAL_DISABLED_MESSAGE = "proposal is not available right now; omit proposal";
46
- export const SCENE_PROPOSAL_NOT_FOUND_MESSAGE = "no such scene proposal on this account; quote again";
47
- export const SCENE_PROPOSAL_EXPIRED_MESSAGE = "the scene proposal has expired; quote again";
48
- export const SCENE_PROPOSAL_STALE_MESSAGE = "the body changed since the quote that made this proposal; quote again";
49
- export const SCENE_PROPOSAL_NOT_READY_MESSAGE = "the scene proposal is still being written; quote again";
50
- export const SCENE_PROPOSAL_WITH_SCENE_MESSAGE = "pass scene or proposal, not both: the proposal brings its own scene";