@clipwright/core 0.55.1 → 0.57.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/actors.js +2 -2
- package/dist/actors.js.map +1 -1
- package/dist/caption-funnel.d.ts +10 -0
- package/dist/caption-funnel.js +101 -0
- package/dist/caption-funnel.js.map +1 -0
- package/dist/contract-dispositions.d.ts +411 -1
- package/dist/contract-dispositions.js +8 -3
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +2730 -1078
- package/dist/contracts/v1/workflow-catalog.d.ts +2764 -1088
- package/dist/contracts/v1/workflow-catalog.js +2 -1
- package/dist/contracts/v1/workflow-catalog.js.map +1 -1
- package/dist/contracts/v1/workflow-client.d.ts +1285 -437
- package/dist/contracts/v1/workflow-execution.d.ts +5 -0
- package/dist/contracts/v1/workflow-next.d.ts +1 -0
- package/dist/contracts/v1/workflow-plan.d.ts +4220 -1724
- package/dist/contracts/v1/workflow-run-read.d.ts +2 -0
- package/dist/creator-profile.d.ts +81 -2
- package/dist/creator-profile.js +158 -18
- package/dist/creator-profile.js.map +1 -1
- package/dist/faceless-media-record.js +4 -2
- package/dist/faceless-media-record.js.map +1 -1
- package/dist/faceless-public.d.ts +932 -75
- package/dist/faceless-public.js +23 -2
- package/dist/faceless-public.js.map +1 -1
- package/dist/film-directions.d.ts +33 -0
- package/dist/film-directions.js +27 -0
- package/dist/film-directions.js.map +1 -0
- package/dist/film-guide.d.ts +4 -1
- package/dist/film-guide.js +1 -0
- package/dist/film-guide.js.map +1 -1
- package/dist/generations.d.ts +2 -2
- package/dist/generations.js +2 -1
- package/dist/generations.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-ugc-descriptions.js +13 -6
- package/dist/mcp-ugc-descriptions.js.map +1 -1
- package/dist/parts-pricing.d.ts +4 -1
- package/dist/parts-pricing.js +9 -4
- package/dist/parts-pricing.js.map +1 -1
- package/dist/presenter-matte.d.ts +20 -0
- package/dist/presenter-matte.js +35 -0
- package/dist/presenter-matte.js.map +1 -0
- package/dist/reference-analysis.d.ts +24 -0
- package/dist/reference-analysis.js +9 -3
- package/dist/reference-analysis.js.map +1 -1
- package/dist/reference-display.js +2 -1
- package/dist/reference-display.js.map +1 -1
- package/dist/reference-kinds.d.ts +2 -2
- package/dist/reference-profile.d.ts +48 -0
- package/dist/reference-staging.d.ts +8 -0
- package/dist/reference-voice-over.d.ts +35 -0
- package/dist/reference-voice-over.js +27 -0
- package/dist/reference-voice-over.js.map +1 -0
- package/dist/resolved-timeline.d.ts +1 -0
- package/dist/resolved-timeline.js +6 -4
- package/dist/resolved-timeline.js.map +1 -1
- package/dist/run-static-warnings.js +2 -2
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +2 -0
- package/dist/skills.d.ts +4707 -2667
- package/dist/skills.js +27 -17
- package/dist/skills.js.map +1 -1
- package/dist/templates/backdrop.d.ts +33 -0
- package/dist/templates/backdrop.js +50 -0
- package/dist/templates/backdrop.js.map +1 -0
- package/dist/templates/comment-cta.d.ts +106 -0
- package/dist/templates/comment-cta.js +178 -0
- package/dist/templates/comment-cta.js.map +1 -0
- package/dist/templates/cover-story.d.ts +16 -0
- package/dist/templates/cover-story.js +33 -0
- package/dist/templates/cover-story.js.map +1 -0
- package/dist/templates/index.d.ts +53 -2
- package/dist/templates/index.js +131 -11
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/series-frame.d.ts +73 -0
- package/dist/templates/series-frame.js +179 -0
- package/dist/templates/series-frame.js.map +1 -0
- package/dist/trend-search.d.ts +3 -2
- package/dist/trend-search.js +4 -26
- package/dist/trend-search.js.map +1 -1
- package/dist/voice-admission.d.ts +1287 -467
- package/dist/workflows/catalog.d.ts +4 -0
- package/dist/workflows/catalog.js +15 -4
- package/dist/workflows/catalog.js.map +1 -1
- package/dist/workflows/film-directions.d.ts +10 -0
- package/dist/workflows/film-directions.js +67 -0
- package/dist/workflows/film-directions.js.map +1 -0
- package/dist/workflows/index.d.ts +1 -0
- package/dist/workflows/index.js +1 -0
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +486 -4
- package/dist/workflows/methods/kinetic-launch.d.ts +4650 -4
- package/dist/workflows/methods/kinetic-launch.js +23 -1
- package/dist/workflows/methods/kinetic-launch.js.map +1 -1
- package/dist/workflows/methods/product-image-story.d.ts +486 -4
- package/dist/workflows/methods/reference-remake.d.ts +486 -4
- package/dist/workflows/methods/shared.d.ts +488 -4
- package/dist/workflows/methods/shared.js +5 -0
- package/dist/workflows/methods/shared.js.map +1 -1
- package/dist/workflows/methods/ugc-faq-answer.d.ts +486 -4
- package/dist/workflows/methods/ugc-product-intro.d.ts +486 -4
- package/dist/workflows/methods/website-proof-demo.d.ts +4650 -4
- package/dist/workflows/methods/website-proof-demo.js +25 -1
- package/dist/workflows/methods/website-proof-demo.js.map +1 -1
- package/dist/workflows/reference-remake.d.ts +32 -0
- package/dist/workflows/validate.js +3 -1
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +1 -1
package/dist/actors.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { ACTOR_FULL_PORTRAIT_FACE_HEIGHT, ACTOR_WIDE_PORTRAIT_FACE_HEIGHT, actorIdScope } from "./account-actors.js";
|
|
3
3
|
import { expectedVendorFrame } from "./aspect.js";
|
|
4
4
|
import { sharpCropOf } from "./scene-place.js";
|
|
5
|
-
import { actorId, ASPECT_RATIOS,
|
|
5
|
+
import { actorId, ASPECT_RATIOS, LEGACY_RUN_RESOLUTION, RESOLUTIONS } from "./skills.js";
|
|
6
6
|
import { defaultVoiceOf, DEFAULT_VOICE_PRESET, speaksOwnVoices, VOICE_PRESETS } from "./voices.js";
|
|
7
7
|
export const ACTORS_PATH = "/v1/actors";
|
|
8
8
|
/** An account's personal actor: the quote is free, the run is paid. The API routes repeat */
|
|
@@ -100,7 +100,7 @@ function presenterPlaceSoftness(input, pin) {
|
|
|
100
100
|
const place = input.presenter_place, asset = pin?.asset, view = renderedPresenterFraming(pin);
|
|
101
101
|
const largest = view === "full" ? ACTOR_FULL_PORTRAIT_FACE_HEIGHT
|
|
102
102
|
: view === "wide" && pin?.actor_id !== undefined && actorIdScope(pin.actor_id) === "account" ? ACTOR_WIDE_PORTRAIT_FACE_HEIGHT : undefined;
|
|
103
|
-
const aspect = ASPECT_RATIOS.find(ratio => ratio === asset?.aspect_ratio), resolution = RESOLUTIONS.find(entry => entry === input.resolution) ??
|
|
103
|
+
const aspect = ASPECT_RATIOS.find(ratio => ratio === asset?.aspect_ratio), resolution = RESOLUTIONS.find(entry => entry === input.resolution) ?? LEGACY_RUN_RESOLUTION;
|
|
104
104
|
if (!place || largest === undefined || !asset?.width || !aspect)
|
|
105
105
|
return undefined;
|
|
106
106
|
const sharp = sharpCropOf(asset.width, expectedVendorFrame(resolution, aspect).width);
|
package/dist/actors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actors.js","sourceRoot":"","sources":["../src/actors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"actors.js","sourceRoot":"","sources":["../src/actors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aA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,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const CAPTION_FUNNEL_MAX_CHARS = 24;
|
|
2
|
+
type Found = {
|
|
3
|
+
word: string;
|
|
4
|
+
end: number;
|
|
5
|
+
};
|
|
6
|
+
/** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
|
|
7
|
+
/** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
|
|
8
|
+
export declare function captionFunnel(text: string | null | undefined): Found | null;
|
|
9
|
+
export declare const captionFunnelWord: (text: string | null | undefined) => string | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// The code word a text asks viewers to comment or send (#917, #1422), read by trend cards, creator profiles and reference analyses alike:
|
|
2
|
+
// "Comment LIST", a Russian "write «ESTIMATE»", a Japanese "「LIST」 then comment". Verb-first languages name it after the verb, verb-last ones before.
|
|
3
|
+
export const CAPTION_FUNNEL_MAX_CHARS = 24;
|
|
4
|
+
/** Imperatives that ask for a comment or a message, the word after them. */
|
|
5
|
+
const VERBS_FIRST = [
|
|
6
|
+
"comment", "type", "drop", "dm", "message", "send", "reply", "write",
|
|
7
|
+
"напиши", "напишите", "пиши", "пишите", "оставь", "оставьте", "отправь", "отправьте", "комментируй", "комментируйте",
|
|
8
|
+
"напишіть", "залиш", "залиште", "коментуй", "коментуйте", "надішли", "надішліть",
|
|
9
|
+
"comenta", "comente", "comentá", "escribe", "escriba", "escríbeme", "escreva", "escreve", "manda", "mande", "envía", "envie", "deja", "deixe",
|
|
10
|
+
"commente", "commentez", "écris", "écrivez", "envoie", "envoyez", "tape", "tapez",
|
|
11
|
+
"kommentiere", "kommentiert", "schreib", "schreibe", "schreibt", "sende", "schick", "schickt",
|
|
12
|
+
"commenta", "commentate", "scrivi", "scrivete", "invia", "inviami",
|
|
13
|
+
"skomentuj", "napisz", "wpisz", "wyślij", "komentuj",
|
|
14
|
+
"typ", "schrijf", "stuur", "reageer",
|
|
15
|
+
"komentujte", "napište", "napíšte", "kommentér", "skriv", "kommentera", "kommentoi", "kirjoita", "kommenteer",
|
|
16
|
+
"comentează", "scrie", "írd", "kommenteld", "komentiraj", "napiši", "σχολίασε", "γράψε", "напишете", "коментирай",
|
|
17
|
+
"komentari", "ketik", "tulis", "kirim", "bình luận", "comment mo", "i-comment", "評論", "评论", "留言", "私信",
|
|
18
|
+
];
|
|
19
|
+
/** Verbs that close the ask in languages that put the verb last: the quoted or capital word comes just before. */
|
|
20
|
+
const VERBS_LAST = ["コメント", "書いて", "送って", "댓글", "남겨", "적어", "보내", "yaz", "yorum", "gönder", "कमेंट", "लिखें", "लिखो", "लिखिए", "எழுது", "கமெண்ட்"];
|
|
21
|
+
/** Words between the verb and the code word: "DM me", "the word", "in the comments", in each language. */
|
|
22
|
+
const FILLER = new Set([
|
|
23
|
+
"me", "us", "the", "a", "word", "below", "down", "in", "comments", "comment", "dms", "section", "here",
|
|
24
|
+
"мне", "слово", "в", "комментариях", "комментарии", "комменты", "комментах", "директ", "личку", "ниже", "у", "коментарях", "мені",
|
|
25
|
+
"la", "palabra", "en", "los", "comentarios", "abajo", "aquí", "por", "palavra", "nos", "comentários", "aqui", "no",
|
|
26
|
+
"le", "mot", "commentaire", "commentaires", "moi", "dessous", "ci-dessous", "mir", "das", "wort", "die", "kommentare", "unten",
|
|
27
|
+
"parola", "nei", "commenti", "qui", "sotto", "mi", "słowo", "w", "komentarzu", "komentarzach", "poniżej", "het", "woord", "de", "reacties", "hieronder",
|
|
28
|
+
]);
|
|
29
|
+
/** Words that are not a code word when nothing marks one: "comment your thoughts", and the same in each language. */
|
|
30
|
+
const NOT_A_CODE_WORD = new Set([
|
|
31
|
+
"what", "your", "yours", "my", "if", "this", "that", "it", "them", "how", "why", "and", "or", "to", "for", "something", "which", "who", "where", "when",
|
|
32
|
+
"follow", "like", "share", "save", "subscribe", "please", "now", "us", "me", "back", "you", "him", "her",
|
|
33
|
+
"что", "если", "свой", "своё", "свои", "это", "как", "почему", "какой", "и", "или", "що", "якщо", "свою", "це",
|
|
34
|
+
"lo", "que", "tu", "tus", "si", "qué", "o", "y", "e", "seu", "sua", "ce", "tes", "ton", "ta", "et", "ou", "dein", "deine", "was", "und", "oder",
|
|
35
|
+
"il", "tuo", "tua", "che", "co", "czy", "i", "wat", "je", "jouw",
|
|
36
|
+
]);
|
|
37
|
+
/** What a viewer gets for the word, right after it: the mark of a code word in plain speech ("comment list and I'll send you…"). */
|
|
38
|
+
const AFTER_WORD = /^[\s,.!:;—–-]*(?:and i\b|and i'll|and i will|and we|and get|and you'll|and you will|to get|to receive|for the|for my|for a|for free|and receive|и я|и мы|и получи|и пришлю|и отправлю|чтобы получить|і я|щоб отримати|y te|y yo|y recibe|para recibir|e eu|e te|e receba|para receber|et je|et on|pour recevoir|und ich|und du|und erhalte|e ti|e io|per ricevere|a ja|i wyślę|żeby dostać|en ik|en ontvang)(?![\p{L}\p{N}])/u;
|
|
39
|
+
const QUOTES = "\"'“”‘’«»„「」『』";
|
|
40
|
+
/** A quoted word, with the space French puts inside « »; bold or italic marks quote it as well: `Comment **EDITOR**`. */
|
|
41
|
+
const MARK = `(?:[${QUOTES}] ?|\\*{1,2})`, UNMARK = `(?: ?[${QUOTES}]|\\*{1,2})`;
|
|
42
|
+
const QUOTED = new RegExp(`^${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}`, "u");
|
|
43
|
+
const CAPS = /^(\p{Lu}[\p{Lu}\p{N}]{1,22})(?![\p{L}\p{N}])/u;
|
|
44
|
+
const PLAIN = /^([\p{L}\p{N}][\p{L}\p{N}-]{1,22})(?![\p{L}\p{N}])/u;
|
|
45
|
+
const ANY = /^(?:anything|any word|any emoji|что угодно|любое слово|cualquier cosa|qualquer coisa|n'importe quoi)(?![\p{L}\p{N}])/u;
|
|
46
|
+
const literal = (word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
47
|
+
/** A Latin, Cyrillic or Greek verb stands on word boundaries; a CJK, Hangul or Indic one has none to stand on. */
|
|
48
|
+
const bounded = (verb) => (/^[\p{Script=Latin}\p{Script=Cyrillic}\p{Script=Greek}\s'-]+$/u.test(verb)
|
|
49
|
+
? `(?<![\\p{L}\\p{N}])${literal(verb)}(?![\\p{L}\\p{N}])` : literal(verb));
|
|
50
|
+
const VERB_FIRST = new RegExp(VERBS_FIRST.map(bounded).join("|"), "gu");
|
|
51
|
+
const VERB_LAST = new RegExp(`(?:${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}|(?<![\\p{L}\\p{N}])(\\p{Lu}[\\p{Lu}\\p{N}]{1,22})(?![\\p{Lu}\\p{Ll}\\p{N}]))`
|
|
52
|
+
+ `[^\\n]{0,12}?(?:${VERBS_LAST.map(literal).join("|")})`, "gu");
|
|
53
|
+
/** The word after a verb at `from`: past the filler, then quoted, in capitals (unless the verb shouts too), or plain with what the viewer gets. */
|
|
54
|
+
function wordAfter(text, lower, from, shouting) {
|
|
55
|
+
let at = from;
|
|
56
|
+
for (;;) {
|
|
57
|
+
const gap = /^[\s:\-–—,]+/u.exec(lower.slice(at))?.[0].length ?? 0;
|
|
58
|
+
const next = /^[\p{L}\p{N}'-]+/u.exec(lower.slice(at + gap))?.[0];
|
|
59
|
+
if (next === undefined || !FILLER.has(next)) {
|
|
60
|
+
at += gap;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
at += gap + next.length;
|
|
64
|
+
}
|
|
65
|
+
const any = ANY.exec(lower.slice(at, at + 40));
|
|
66
|
+
if (any)
|
|
67
|
+
return { word: "any", end: at + any[0].length };
|
|
68
|
+
const rest = text.slice(at, at + 40);
|
|
69
|
+
const marked = QUOTED.exec(rest) ?? (shouting ? null : CAPS.exec(rest));
|
|
70
|
+
if (marked)
|
|
71
|
+
return { word: marked[1], end: at + marked[0].indexOf(marked[1]) + marked[1].length };
|
|
72
|
+
const plain = PLAIN.exec(rest)?.[1];
|
|
73
|
+
if (plain === undefined || NOT_A_CODE_WORD.has(plain.toLowerCase()))
|
|
74
|
+
return null;
|
|
75
|
+
return AFTER_WORD.test(lower.slice(at + plain.length, at + plain.length + 40)) ? { word: plain, end: at + plain.length } : null;
|
|
76
|
+
}
|
|
77
|
+
/** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
|
|
78
|
+
/** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
|
|
79
|
+
export function captionFunnel(text) {
|
|
80
|
+
if (typeof text !== "string")
|
|
81
|
+
return null;
|
|
82
|
+
const lower = text.toLowerCase();
|
|
83
|
+
// Lower case keeps every offset of these scripts; a text it would reshape is read no further.
|
|
84
|
+
if (lower.length !== text.length)
|
|
85
|
+
return null;
|
|
86
|
+
for (const verb of lower.matchAll(VERB_FIRST)) {
|
|
87
|
+
const said = text.slice(verb.index, verb.index + verb[0].length);
|
|
88
|
+
// "DM" is written in capitals anyway; a longer verb in capitals means the whole line shouts.
|
|
89
|
+
const found = wordAfter(text, lower, verb.index + verb[0].length, said.length > 2 && said === said.toUpperCase() && said !== said.toLowerCase());
|
|
90
|
+
if (found)
|
|
91
|
+
return { word: found.word === "any" ? "any" : found.word.toUpperCase(), end: found.end };
|
|
92
|
+
}
|
|
93
|
+
const last = VERB_LAST.exec(text);
|
|
94
|
+
VERB_LAST.lastIndex = 0;
|
|
95
|
+
if (!last)
|
|
96
|
+
return null;
|
|
97
|
+
const word = last[1] ?? last[2];
|
|
98
|
+
return { word: word.toUpperCase(), end: last.index + last[0].indexOf(word) + word.length };
|
|
99
|
+
}
|
|
100
|
+
export const captionFunnelWord = (text) => captionFunnel(text)?.word ?? null;
|
|
101
|
+
//# sourceMappingURL=caption-funnel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caption-funnel.js","sourceRoot":"","sources":["../src/caption-funnel.ts"],"names":[],"mappings":"AAAA,0IAA0I;AAC1I,sJAAsJ;AAEtJ,MAAM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GAAG,EAAE,CAAC;IACtG,CAAC;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,SAAS,CAAC,SAAS,GAAG,CAAC,CAAC;IACxB,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAE,CAAC;IACjC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;AAC7F,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAA+B,EAAiB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,IAAI,CAAC"}
|
|
@@ -2792,6 +2792,412 @@ export declare const offeredUgcInput: z.ZodObject<{
|
|
|
2792
2792
|
small: "small";
|
|
2793
2793
|
}>>;
|
|
2794
2794
|
}, z.core.$strict>;
|
|
2795
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2796
|
+
id: z.ZodString;
|
|
2797
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
2798
|
+
startWord: z.ZodNumber;
|
|
2799
|
+
endWord: z.ZodNumber;
|
|
2800
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2801
|
+
quote: z.ZodString;
|
|
2802
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2803
|
+
}, z.core.$strict>]>;
|
|
2804
|
+
cover_words: z.ZodOptional<z.ZodNumber>;
|
|
2805
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2806
|
+
full: "full";
|
|
2807
|
+
over: "over";
|
|
2808
|
+
}>>;
|
|
2809
|
+
transition: z.ZodOptional<z.ZodEnum<{
|
|
2810
|
+
cut: "cut";
|
|
2811
|
+
flash: "flash";
|
|
2812
|
+
wipe: "wipe";
|
|
2813
|
+
zoom: "zoom";
|
|
2814
|
+
}>>;
|
|
2815
|
+
place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2816
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2817
|
+
contain: "contain";
|
|
2818
|
+
cover: "cover";
|
|
2819
|
+
}>>;
|
|
2820
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2821
|
+
relative_to: z.ZodDefault<z.ZodLiteral<"frame">>;
|
|
2822
|
+
rect: z.ZodObject<{
|
|
2823
|
+
left: z.ZodNumber;
|
|
2824
|
+
top: z.ZodNumber;
|
|
2825
|
+
width: z.ZodNumber;
|
|
2826
|
+
height: z.ZodNumber;
|
|
2827
|
+
}, z.core.$strict>;
|
|
2828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2829
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2830
|
+
contain: "contain";
|
|
2831
|
+
cover: "cover";
|
|
2832
|
+
}>>;
|
|
2833
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2834
|
+
relative_to: z.ZodLiteral<"face">;
|
|
2835
|
+
rect: z.ZodObject<{
|
|
2836
|
+
left: z.ZodNumber;
|
|
2837
|
+
top: z.ZodNumber;
|
|
2838
|
+
width: z.ZodNumber;
|
|
2839
|
+
height: z.ZodNumber;
|
|
2840
|
+
}, z.core.$strict>;
|
|
2841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2842
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2843
|
+
contain: "contain";
|
|
2844
|
+
cover: "cover";
|
|
2845
|
+
}>>;
|
|
2846
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2847
|
+
relative_to: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2848
|
+
captions: "captions";
|
|
2849
|
+
face: "face";
|
|
2850
|
+
}>, z.ZodObject<{
|
|
2851
|
+
layer: z.ZodString;
|
|
2852
|
+
}, z.core.$strict>]>;
|
|
2853
|
+
side: z.ZodEnum<{
|
|
2854
|
+
above: "above";
|
|
2855
|
+
below: "below";
|
|
2856
|
+
left: "left";
|
|
2857
|
+
over: "over";
|
|
2858
|
+
right: "right";
|
|
2859
|
+
}>;
|
|
2860
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
2861
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
2862
|
+
center: "center";
|
|
2863
|
+
end: "end";
|
|
2864
|
+
start: "start";
|
|
2865
|
+
}>>;
|
|
2866
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2867
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2868
|
+
size_unit: z.ZodOptional<z.ZodEnum<{
|
|
2869
|
+
face: "face";
|
|
2870
|
+
frame: "frame";
|
|
2871
|
+
}>>;
|
|
2872
|
+
}, z.core.$strict>]>>;
|
|
2873
|
+
kind: z.ZodLiteral<"cover_story">;
|
|
2874
|
+
data: z.ZodObject<{
|
|
2875
|
+
masthead: z.ZodString;
|
|
2876
|
+
issue: z.ZodOptional<z.ZodString>;
|
|
2877
|
+
number: z.ZodOptional<z.ZodString>;
|
|
2878
|
+
cover_line: z.ZodString;
|
|
2879
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2880
|
+
large: "large";
|
|
2881
|
+
medium: "medium";
|
|
2882
|
+
small: "small";
|
|
2883
|
+
}>>;
|
|
2884
|
+
}, z.core.$strict>;
|
|
2885
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2886
|
+
id: z.ZodString;
|
|
2887
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
2888
|
+
startWord: z.ZodNumber;
|
|
2889
|
+
endWord: z.ZodNumber;
|
|
2890
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2891
|
+
quote: z.ZodString;
|
|
2892
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2893
|
+
}, z.core.$strict>]>;
|
|
2894
|
+
cover_words: z.ZodOptional<z.ZodNumber>;
|
|
2895
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2896
|
+
full: "full";
|
|
2897
|
+
over: "over";
|
|
2898
|
+
}>>;
|
|
2899
|
+
transition: z.ZodOptional<z.ZodEnum<{
|
|
2900
|
+
cut: "cut";
|
|
2901
|
+
flash: "flash";
|
|
2902
|
+
wipe: "wipe";
|
|
2903
|
+
zoom: "zoom";
|
|
2904
|
+
}>>;
|
|
2905
|
+
place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2906
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2907
|
+
contain: "contain";
|
|
2908
|
+
cover: "cover";
|
|
2909
|
+
}>>;
|
|
2910
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2911
|
+
relative_to: z.ZodDefault<z.ZodLiteral<"frame">>;
|
|
2912
|
+
rect: z.ZodObject<{
|
|
2913
|
+
left: z.ZodNumber;
|
|
2914
|
+
top: z.ZodNumber;
|
|
2915
|
+
width: z.ZodNumber;
|
|
2916
|
+
height: z.ZodNumber;
|
|
2917
|
+
}, z.core.$strict>;
|
|
2918
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2919
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2920
|
+
contain: "contain";
|
|
2921
|
+
cover: "cover";
|
|
2922
|
+
}>>;
|
|
2923
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2924
|
+
relative_to: z.ZodLiteral<"face">;
|
|
2925
|
+
rect: z.ZodObject<{
|
|
2926
|
+
left: z.ZodNumber;
|
|
2927
|
+
top: z.ZodNumber;
|
|
2928
|
+
width: z.ZodNumber;
|
|
2929
|
+
height: z.ZodNumber;
|
|
2930
|
+
}, z.core.$strict>;
|
|
2931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2932
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
2933
|
+
contain: "contain";
|
|
2934
|
+
cover: "cover";
|
|
2935
|
+
}>>;
|
|
2936
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2937
|
+
relative_to: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2938
|
+
captions: "captions";
|
|
2939
|
+
face: "face";
|
|
2940
|
+
}>, z.ZodObject<{
|
|
2941
|
+
layer: z.ZodString;
|
|
2942
|
+
}, z.core.$strict>]>;
|
|
2943
|
+
side: z.ZodEnum<{
|
|
2944
|
+
above: "above";
|
|
2945
|
+
below: "below";
|
|
2946
|
+
left: "left";
|
|
2947
|
+
over: "over";
|
|
2948
|
+
right: "right";
|
|
2949
|
+
}>;
|
|
2950
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
2951
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
2952
|
+
center: "center";
|
|
2953
|
+
end: "end";
|
|
2954
|
+
start: "start";
|
|
2955
|
+
}>>;
|
|
2956
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2957
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2958
|
+
size_unit: z.ZodOptional<z.ZodEnum<{
|
|
2959
|
+
face: "face";
|
|
2960
|
+
frame: "frame";
|
|
2961
|
+
}>>;
|
|
2962
|
+
}, z.core.$strict>]>>;
|
|
2963
|
+
kind: z.ZodLiteral<"series_frame">;
|
|
2964
|
+
data: z.ZodObject<{
|
|
2965
|
+
title: z.ZodString;
|
|
2966
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
2967
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2968
|
+
name: z.ZodString;
|
|
2969
|
+
clip: z.ZodOptional<z.ZodObject<{
|
|
2970
|
+
asset_id: z.ZodString;
|
|
2971
|
+
}, z.core.$strict>>;
|
|
2972
|
+
look: z.ZodOptional<z.ZodEnum<{
|
|
2973
|
+
card: "card";
|
|
2974
|
+
editor: "editor";
|
|
2975
|
+
orbit: "orbit";
|
|
2976
|
+
phone: "phone";
|
|
2977
|
+
ui: "ui";
|
|
2978
|
+
}>>;
|
|
2979
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
at: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
}, z.core.$strict>>;
|
|
2982
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
2983
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2984
|
+
large: "large";
|
|
2985
|
+
medium: "medium";
|
|
2986
|
+
small: "small";
|
|
2987
|
+
}>>;
|
|
2988
|
+
}, z.core.$strict>;
|
|
2989
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2990
|
+
id: z.ZodString;
|
|
2991
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
2992
|
+
startWord: z.ZodNumber;
|
|
2993
|
+
endWord: z.ZodNumber;
|
|
2994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2995
|
+
quote: z.ZodString;
|
|
2996
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2997
|
+
}, z.core.$strict>]>;
|
|
2998
|
+
cover_words: z.ZodOptional<z.ZodNumber>;
|
|
2999
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
3000
|
+
full: "full";
|
|
3001
|
+
over: "over";
|
|
3002
|
+
}>>;
|
|
3003
|
+
transition: z.ZodOptional<z.ZodEnum<{
|
|
3004
|
+
cut: "cut";
|
|
3005
|
+
flash: "flash";
|
|
3006
|
+
wipe: "wipe";
|
|
3007
|
+
zoom: "zoom";
|
|
3008
|
+
}>>;
|
|
3009
|
+
place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
3010
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3011
|
+
contain: "contain";
|
|
3012
|
+
cover: "cover";
|
|
3013
|
+
}>>;
|
|
3014
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3015
|
+
relative_to: z.ZodDefault<z.ZodLiteral<"frame">>;
|
|
3016
|
+
rect: z.ZodObject<{
|
|
3017
|
+
left: z.ZodNumber;
|
|
3018
|
+
top: z.ZodNumber;
|
|
3019
|
+
width: z.ZodNumber;
|
|
3020
|
+
height: z.ZodNumber;
|
|
3021
|
+
}, z.core.$strict>;
|
|
3022
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3023
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3024
|
+
contain: "contain";
|
|
3025
|
+
cover: "cover";
|
|
3026
|
+
}>>;
|
|
3027
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3028
|
+
relative_to: z.ZodLiteral<"face">;
|
|
3029
|
+
rect: z.ZodObject<{
|
|
3030
|
+
left: z.ZodNumber;
|
|
3031
|
+
top: z.ZodNumber;
|
|
3032
|
+
width: z.ZodNumber;
|
|
3033
|
+
height: z.ZodNumber;
|
|
3034
|
+
}, z.core.$strict>;
|
|
3035
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3036
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3037
|
+
contain: "contain";
|
|
3038
|
+
cover: "cover";
|
|
3039
|
+
}>>;
|
|
3040
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3041
|
+
relative_to: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3042
|
+
captions: "captions";
|
|
3043
|
+
face: "face";
|
|
3044
|
+
}>, z.ZodObject<{
|
|
3045
|
+
layer: z.ZodString;
|
|
3046
|
+
}, z.core.$strict>]>;
|
|
3047
|
+
side: z.ZodEnum<{
|
|
3048
|
+
above: "above";
|
|
3049
|
+
below: "below";
|
|
3050
|
+
left: "left";
|
|
3051
|
+
over: "over";
|
|
3052
|
+
right: "right";
|
|
3053
|
+
}>;
|
|
3054
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
3055
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
3056
|
+
center: "center";
|
|
3057
|
+
end: "end";
|
|
3058
|
+
start: "start";
|
|
3059
|
+
}>>;
|
|
3060
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3061
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3062
|
+
size_unit: z.ZodOptional<z.ZodEnum<{
|
|
3063
|
+
face: "face";
|
|
3064
|
+
frame: "frame";
|
|
3065
|
+
}>>;
|
|
3066
|
+
}, z.core.$strict>]>>;
|
|
3067
|
+
kind: z.ZodLiteral<"comment_cta">;
|
|
3068
|
+
data: z.ZodObject<{
|
|
3069
|
+
title: z.ZodString;
|
|
3070
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
3071
|
+
list_title: z.ZodString;
|
|
3072
|
+
items: z.ZodArray<z.ZodString>;
|
|
3073
|
+
code: z.ZodString;
|
|
3074
|
+
handle: z.ZodString;
|
|
3075
|
+
dm: z.ZodString;
|
|
3076
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
3077
|
+
text: z.ZodString;
|
|
3078
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
3079
|
+
act: z.ZodOptional<z.ZodEnum<{
|
|
3080
|
+
dm: "dm";
|
|
3081
|
+
follow: "follow";
|
|
3082
|
+
}>>;
|
|
3083
|
+
at: z.ZodOptional<z.ZodString>;
|
|
3084
|
+
}, z.core.$strict>>;
|
|
3085
|
+
avatar: z.ZodOptional<z.ZodObject<{
|
|
3086
|
+
asset_id: z.ZodString;
|
|
3087
|
+
}, z.core.$strict>>;
|
|
3088
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
3089
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
3090
|
+
follow: z.ZodOptional<z.ZodString>;
|
|
3091
|
+
following: z.ZodOptional<z.ZodString>;
|
|
3092
|
+
}, z.core.$strict>>;
|
|
3093
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
3094
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
3095
|
+
large: "large";
|
|
3096
|
+
medium: "medium";
|
|
3097
|
+
small: "small";
|
|
3098
|
+
}>>;
|
|
3099
|
+
}, z.core.$strict>;
|
|
3100
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3101
|
+
id: z.ZodString;
|
|
3102
|
+
anchor: z.ZodUnion<readonly [z.ZodObject<{
|
|
3103
|
+
startWord: z.ZodNumber;
|
|
3104
|
+
endWord: z.ZodNumber;
|
|
3105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3106
|
+
quote: z.ZodString;
|
|
3107
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
3108
|
+
}, z.core.$strict>]>;
|
|
3109
|
+
cover_words: z.ZodOptional<z.ZodNumber>;
|
|
3110
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
3111
|
+
full: "full";
|
|
3112
|
+
over: "over";
|
|
3113
|
+
}>>;
|
|
3114
|
+
transition: z.ZodOptional<z.ZodEnum<{
|
|
3115
|
+
cut: "cut";
|
|
3116
|
+
flash: "flash";
|
|
3117
|
+
wipe: "wipe";
|
|
3118
|
+
zoom: "zoom";
|
|
3119
|
+
}>>;
|
|
3120
|
+
place: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
3121
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3122
|
+
contain: "contain";
|
|
3123
|
+
cover: "cover";
|
|
3124
|
+
}>>;
|
|
3125
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3126
|
+
relative_to: z.ZodDefault<z.ZodLiteral<"frame">>;
|
|
3127
|
+
rect: z.ZodObject<{
|
|
3128
|
+
left: z.ZodNumber;
|
|
3129
|
+
top: z.ZodNumber;
|
|
3130
|
+
width: z.ZodNumber;
|
|
3131
|
+
height: z.ZodNumber;
|
|
3132
|
+
}, z.core.$strict>;
|
|
3133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3134
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3135
|
+
contain: "contain";
|
|
3136
|
+
cover: "cover";
|
|
3137
|
+
}>>;
|
|
3138
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3139
|
+
relative_to: z.ZodLiteral<"face">;
|
|
3140
|
+
rect: z.ZodObject<{
|
|
3141
|
+
left: z.ZodNumber;
|
|
3142
|
+
top: z.ZodNumber;
|
|
3143
|
+
width: z.ZodNumber;
|
|
3144
|
+
height: z.ZodNumber;
|
|
3145
|
+
}, z.core.$strict>;
|
|
3146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3147
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
3148
|
+
contain: "contain";
|
|
3149
|
+
cover: "cover";
|
|
3150
|
+
}>>;
|
|
3151
|
+
allow_face: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3152
|
+
relative_to: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3153
|
+
captions: "captions";
|
|
3154
|
+
face: "face";
|
|
3155
|
+
}>, z.ZodObject<{
|
|
3156
|
+
layer: z.ZodString;
|
|
3157
|
+
}, z.core.$strict>]>;
|
|
3158
|
+
side: z.ZodEnum<{
|
|
3159
|
+
above: "above";
|
|
3160
|
+
below: "below";
|
|
3161
|
+
left: "left";
|
|
3162
|
+
over: "over";
|
|
3163
|
+
right: "right";
|
|
3164
|
+
}>;
|
|
3165
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
3166
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
3167
|
+
center: "center";
|
|
3168
|
+
end: "end";
|
|
3169
|
+
start: "start";
|
|
3170
|
+
}>>;
|
|
3171
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3172
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3173
|
+
size_unit: z.ZodOptional<z.ZodEnum<{
|
|
3174
|
+
face: "face";
|
|
3175
|
+
frame: "frame";
|
|
3176
|
+
}>>;
|
|
3177
|
+
}, z.core.$strict>]>>;
|
|
3178
|
+
kind: z.ZodLiteral<"backdrop">;
|
|
3179
|
+
data: z.ZodObject<{
|
|
3180
|
+
style: z.ZodEnum<{
|
|
3181
|
+
doodle: "doodle";
|
|
3182
|
+
gallery: "gallery";
|
|
3183
|
+
glass: "glass";
|
|
3184
|
+
pop_out: "pop_out";
|
|
3185
|
+
sticker: "sticker";
|
|
3186
|
+
swap: "swap";
|
|
3187
|
+
vertigo: "vertigo";
|
|
3188
|
+
wall: "wall";
|
|
3189
|
+
}>;
|
|
3190
|
+
title: z.ZodString;
|
|
3191
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3192
|
+
picture: z.ZodOptional<z.ZodObject<{
|
|
3193
|
+
asset_id: z.ZodString;
|
|
3194
|
+
}, z.core.$strict>>;
|
|
3195
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
3196
|
+
large: "large";
|
|
3197
|
+
medium: "medium";
|
|
3198
|
+
small: "small";
|
|
3199
|
+
}>>;
|
|
3200
|
+
}, z.core.$strict>;
|
|
2795
3201
|
}, z.core.$strict>], "kind">>>;
|
|
2796
3202
|
template_theme: z.ZodOptional<z.ZodObject<{
|
|
2797
3203
|
preset: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4530,11 +4936,14 @@ export declare const mcpUgcInputShape: {
|
|
|
4530
4936
|
}>>;
|
|
4531
4937
|
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4532
4938
|
kind: z.ZodEnum<{
|
|
4939
|
+
backdrop: "backdrop";
|
|
4533
4940
|
callout: "callout";
|
|
4534
4941
|
chart: "chart";
|
|
4535
4942
|
chat_window: "chat_window";
|
|
4536
4943
|
checklist: "checklist";
|
|
4944
|
+
comment_cta: "comment_cta";
|
|
4537
4945
|
compare: "compare";
|
|
4946
|
+
cover_story: "cover_story";
|
|
4538
4947
|
end_card: "end_card";
|
|
4539
4948
|
hand_title: "hand_title";
|
|
4540
4949
|
lower_third: "lower_third";
|
|
@@ -4546,6 +4955,7 @@ export declare const mcpUgcInputShape: {
|
|
|
4546
4955
|
quote: "quote";
|
|
4547
4956
|
race: "race";
|
|
4548
4957
|
rating: "rating";
|
|
4958
|
+
series_frame: "series_frame";
|
|
4549
4959
|
stat: "stat";
|
|
4550
4960
|
tag: "tag";
|
|
4551
4961
|
terminal: "terminal";
|
|
@@ -4618,7 +5028,7 @@ export interface RejectedFieldHit {
|
|
|
4618
5028
|
}
|
|
4619
5029
|
/** Rejected fields present in the input. Called by the API (400 before a run or a */
|
|
4620
5030
|
/** reserve), by MCP and by the SDK. */
|
|
4621
|
-
export declare function rejectedFields(input: Readonly<Record<string, unknown
|
|
5031
|
+
export declare function rejectedFields(input: Readonly<Record<string, unknown>>, env?: Record<string, string | undefined>): RejectedFieldHit[];
|
|
4622
5032
|
/** A body key outside the contract and the field it resembles, if any. */
|
|
4623
5033
|
export interface UnknownFieldHit {
|
|
4624
5034
|
field: string;
|