@clipwright/core 0.63.0 → 0.65.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/dist/ad-guide.d.ts +23 -0
- package/dist/ad-guide.js +4 -0
- package/dist/api-failure.d.ts +1 -0
- package/dist/api-failure.js +10 -3
- package/dist/brand-styles.d.ts +6 -0
- package/dist/contract-dispositions.d.ts +1 -41
- package/dist/contract-dispositions.js +0 -9
- package/dist/contracts/v1/workflow-brief.d.ts +0 -96
- package/dist/contracts/v1/workflow-catalog.d.ts +0 -96
- package/dist/contracts/v1/workflow-client.d.ts +0 -48
- package/dist/contracts/v1/workflow-execution.d.ts +0 -172
- package/dist/contracts/v1/workflow-next.d.ts +0 -86
- package/dist/contracts/v1/workflow-plan.d.ts +0 -144
- package/dist/design.d.ts +30 -0
- package/dist/design.js +29 -1
- package/dist/endpoint-notes.js +1 -1
- package/dist/errors.d.ts +13 -1
- package/dist/errors.js +3 -5
- package/dist/faceless-price.d.ts +0 -27
- package/dist/faceless-price.js +0 -28
- package/dist/faceless-public.d.ts +8 -120
- package/dist/faceless-public.js +9 -23
- package/dist/film-cut.js +3 -3
- package/dist/film-guide.d.ts +51 -0
- package/dist/film-guide.js +13 -0
- package/dist/film-look.d.ts +3 -0
- package/dist/film-look.js +3 -0
- package/dist/generations.d.ts +9 -2
- package/dist/generations.js +18 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/openapi.d.ts +11 -0
- package/dist/openapi.js +3 -1
- package/dist/own-agent-price.d.ts +4 -1
- package/dist/own-agent-price.js +7 -4
- package/dist/parts-pricing.d.ts +0 -2
- package/dist/parts-pricing.js +0 -2
- package/dist/prices.js +8 -3
- package/dist/scene-bible.d.ts +4 -12
- package/dist/scene-bible.js +6 -17
- package/dist/skills.d.ts +223 -223
- package/dist/skills.js +11 -13
- package/dist/voice-admission.d.ts +0 -48
- package/dist/workflows/methods/faceless-explainer.d.ts +0 -39
- package/dist/workflows/methods/kinetic-launch.d.ts +0 -78
- package/dist/workflows/methods/product-image-story.d.ts +0 -39
- package/dist/workflows/methods/reference-remake.d.ts +0 -39
- package/dist/workflows/methods/shared.d.ts +0 -39
- package/dist/workflows/methods/ugc-faq-answer.d.ts +0 -39
- package/dist/workflows/methods/ugc-product-intro.d.ts +0 -39
- package/dist/workflows/methods/website-proof-demo.d.ts +0 -78
- package/package.json +1 -1
- package/dist/scene-proposal.d.ts +0 -79
- 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
package/dist/scene-proposal.d.ts
DELETED
|
@@ -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";
|
package/dist/scene-proposal.js
DELETED
|
@@ -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";
|