@clipwright/core 0.35.0 → 0.37.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 +3 -2
- package/dist/account-actors.d.ts +5 -6
- package/dist/account-actors.js +5 -6
- package/dist/account-actors.js.map +1 -1
- package/dist/actors.d.ts +8 -0
- package/dist/actors.js +2 -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 +13 -5
- package/dist/assets.js +7 -6
- package/dist/assets.js.map +1 -1
- package/dist/billing-terms.d.ts +1 -1
- package/dist/billing-terms.js +1 -1
- 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/caption-geometry.d.ts +43 -0
- package/dist/caption-geometry.js +41 -0
- package/dist/caption-geometry.js.map +1 -0
- package/dist/contract-dispositions.d.ts +1005 -43
- package/dist/contract-dispositions.js +36 -16
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +2045 -38
- package/dist/contracts/v1/workflow-brief.js +2 -2
- package/dist/contracts/v1/workflow-brief.js.map +1 -1
- package/dist/contracts/v1/workflow-catalog.d.ts +2196 -72
- package/dist/contracts/v1/workflow-client.d.ts +1249 -70
- package/dist/contracts/v1/workflow-execution.d.ts +3 -3
- package/dist/contracts/v1/workflow-plan.d.ts +3294 -108
- package/dist/contracts/v1/workflow-run-read.d.ts +2 -2
- package/dist/edit-billing.d.ts +1 -0
- package/dist/edit-billing.js +3 -2
- 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-document.d.ts +22 -0
- package/dist/edit-document.js +3 -0
- package/dist/edit-document.js.map +1 -1
- package/dist/edit-long-form.d.ts +2 -2
- package/dist/edit-long-form.js +3 -3
- package/dist/edit-long-form.js.map +1 -1
- package/dist/edit-revision.d.ts +10 -1
- package/dist/edit-revision.js +1 -1
- package/dist/edit-revision.js.map +1 -1
- package/dist/edit-rules.d.ts +1 -0
- package/dist/edit-rules.js +3 -0
- package/dist/edit-rules.js.map +1 -1
- package/dist/edit-shots.d.ts +2 -0
- package/dist/edit-validate.d.ts +4 -2
- package/dist/edit-validate.js +18 -2
- package/dist/edit-validate.js.map +1 -1
- package/dist/endpoint-notes.js +12 -8
- package/dist/endpoint-notes.js.map +1 -1
- package/dist/endpoints.d.ts +1 -1
- package/dist/endpoints.js +4 -1
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/errors.js +5 -2
- package/dist/errors.js.map +1 -1
- package/dist/face-billing.d.ts +1 -1
- package/dist/face-billing.js +3 -3
- 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 +28 -1
- package/dist/faceless-media-record.js +16 -2
- package/dist/faceless-media-record.js.map +1 -1
- package/dist/faceless-price.d.ts +25 -6
- package/dist/faceless-price.js +13 -6
- 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 +108 -1
- package/dist/faceless-public.js +38 -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 -48
- package/dist/generations.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/long-form-revision.d.ts +8 -0
- package/dist/media-timebase.js +2 -2
- package/dist/media-timebase.js.map +1 -1
- package/dist/openapi.d.ts +4 -3
- package/dist/openapi.js +8 -3
- package/dist/openapi.js.map +1 -1
- package/dist/parts-pricing.d.ts +3 -3
- package/dist/parts-pricing.js +6 -6
- package/dist/parts-pricing.js.map +1 -1
- package/dist/presenter-beats.d.ts +2 -2
- package/dist/presenter-beats.js +2 -2
- package/dist/presenter-beats.js.map +1 -1
- package/dist/prices.js +5 -1
- package/dist/prices.js.map +1 -1
- package/dist/public-responses.d.ts +1 -1
- package/dist/public-responses.js +1 -1
- package/dist/public-responses.js.map +1 -1
- 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 +636 -43
- package/dist/reference-analysis.js +262 -22
- package/dist/reference-analysis.js.map +1 -1
- package/dist/reference-display.d.ts +36 -0
- package/dist/reference-display.js +78 -0
- package/dist/reference-display.js.map +1 -0
- package/dist/reference-kinds.d.ts +3 -1
- package/dist/reference-kinds.js +3 -1
- package/dist/reference-kinds.js.map +1 -1
- package/dist/reference-profile.d.ts +2394 -40
- package/dist/reference-profile.js +192 -17
- package/dist/reference-profile.js.map +1 -1
- package/dist/reference-staging.d.ts +71 -57
- package/dist/reference-staging.js +9 -6
- package/dist/reference-staging.js.map +1 -1
- package/dist/reference-voice.d.ts +1 -1
- package/dist/reference-voice.js +3 -3
- package/dist/reference-voice.js.map +1 -1
- package/dist/render-backend.d.ts +1 -1
- package/dist/resolved-timeline.d.ts +201 -4
- package/dist/resolved-timeline.js +20 -8
- package/dist/resolved-timeline.js.map +1 -1
- package/dist/run-static-warnings.js +1 -1
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +3 -3
- package/dist/runs.js +3 -3
- package/dist/runs.js.map +1 -1
- package/dist/scene-place.d.ts +225 -0
- package/dist/scene-place.js +120 -0
- package/dist/scene-place.js.map +1 -0
- 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 +4685 -30
- package/dist/skills.js +153 -37
- package/dist/skills.js.map +1 -1
- package/dist/templates/index.d.ts +15 -5
- package/dist/templates/index.js +50 -6
- package/dist/templates/index.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.js +1 -1
- package/dist/templates/sounds.js.map +1 -1
- package/dist/ugc-call.d.ts +1 -1
- package/dist/ugc-call.js +2 -2
- package/dist/ugc-call.js.map +1 -1
- 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-interview.d.ts +122 -0
- package/dist/ugc-interview.js +260 -0
- package/dist/ugc-interview.js.map +1 -0
- package/dist/ugc-layers.d.ts +88 -6
- package/dist/ugc-layers.js +193 -5
- 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 +1 -1
- package/dist/vendor-response.js +1 -1
- package/dist/vendor-response.js.map +1 -1
- package/dist/voice-admission.d.ts +1450 -498
- 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 +4 -5
- package/dist/voice-listing.js.map +1 -1
- package/dist/voice-pace.js +1 -1
- package/dist/voice-pace.js.map +1 -1
- package/dist/voices.d.ts +12 -12
- package/dist/voices.js +41 -20
- package/dist/voices.js.map +1 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +612 -15
- package/dist/workflows/methods/kinetic-launch.d.ts +612 -15
- package/dist/workflows/methods/kinetic-launch.js +1 -1
- package/dist/workflows/methods/product-image-story.d.ts +612 -15
- package/dist/workflows/methods/reference-remake.d.ts +612 -15
- package/dist/workflows/methods/shared.d.ts +612 -15
- 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 +612 -15
- package/dist/workflows/methods/ugc-product-intro.d.ts +612 -15
- package/dist/workflows/methods/website-proof-demo.d.ts +612 -15
- package/dist/workflows/methods/website-proof-demo.js +1 -1
- package/dist/workflows/reference-remake.d.ts +152 -35
- package/dist/workflows/reference-remake.js +188 -23
- package/dist/workflows/reference-remake.js.map +1 -1
- package/dist/workflows/validate.js +4 -4
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +2 -3
- package/CHANGELOG.md +0 -1500
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ReferenceProfileAnswer } from "./reference-profile.js";
|
|
3
3
|
/** Reference analysis (reference-to-video S1c): an MP4 asset read into a `reference_profile`. Its status lives at its own */
|
|
4
4
|
/** path, as an asset's processing does; its money (#927) rides a run of skill `analyze_reference` that holds and settles it. */
|
|
5
5
|
export declare const REFERENCE_ANALYSES_PATH = "/v1/reference-analyses";
|
|
@@ -9,13 +9,26 @@ export declare const ANALYZE_REFERENCE_TASK = "analyze-reference";
|
|
|
9
9
|
/** The run skill that carries an analysis's hold and charge; not a `SKILLS` entry, since no `/v1/skills` route starts it. */
|
|
10
10
|
export declare const ANALYZE_REFERENCE_SKILL = "analyze_reference";
|
|
11
11
|
export declare const referenceAnalysisId: z.ZodString;
|
|
12
|
-
/**
|
|
13
|
-
/**
|
|
12
|
+
/** What a succeeded analysis holds: 2 since frames, speakers, gaze and gestures (#979). A start on a reel whose analysis is older */
|
|
13
|
+
/** redoes it at no charge, once. */
|
|
14
|
+
export declare const REFERENCE_ANALYSIS_VERSION = 2;
|
|
15
|
+
/** The price of a delivered analysis. */
|
|
14
16
|
export declare const REFERENCE_ANALYSIS_CREDITS = 70;
|
|
15
|
-
/**
|
|
17
|
+
/** The data mode: metrics, transcript and a frame sheet without beats or graphics. */
|
|
18
|
+
export declare const REFERENCE_DATA_CREDITS = 10;
|
|
19
|
+
/** `full` reads the reference into a profile; `data` hands back its numbers, words and a frame sheet, with no vision call. */
|
|
20
|
+
export declare const REFERENCE_ANALYSIS_MODES: readonly ["full", "data"];
|
|
21
|
+
export type ReferenceAnalysisMode = (typeof REFERENCE_ANALYSIS_MODES)[number];
|
|
22
|
+
export declare const REFERENCE_ANALYSIS_MODE_CREDITS: Readonly<Record<ReferenceAnalysisMode, number>>;
|
|
23
|
+
/** New analyses per account per hour. */
|
|
16
24
|
export declare const REFERENCE_ANALYSIS_PER_HOUR = 10;
|
|
25
|
+
/** The data mode's own cap, scope `reference_data`: cheap enough to run on every candidate reel of a search (#921). */
|
|
26
|
+
export declare const REFERENCE_DATA_PER_HOUR = 60;
|
|
27
|
+
export declare const REFERENCE_DATA_SHEET_COLUMNS = 3;
|
|
28
|
+
export declare const REFERENCE_DATA_SHEET_ROWS = 3;
|
|
29
|
+
export declare const REFERENCE_DATA_SHEET_MAX_WIDTH = 1080;
|
|
17
30
|
export declare const REFERENCE_ANALYSIS_WINDOW_SECONDS = 3600;
|
|
18
|
-
/** The
|
|
31
|
+
/** The analysis stops here and fails; under the task's ceiling. */
|
|
19
32
|
export declare const REFERENCE_ANALYSIS_WORK_SECONDS = 420;
|
|
20
33
|
export declare const REFERENCE_ANALYSIS_TASK_MAX_DURATION_SECONDS = 600;
|
|
21
34
|
/** Past this a read calls an unfinished analysis failed: a task killed at its ceiling writes nothing. */
|
|
@@ -24,19 +37,294 @@ export declare const REFERENCE_ANALYSIS_STATES: readonly ["queued", "analyzing",
|
|
|
24
37
|
export declare const REFERENCE_ANALYSIS_ERRORS: readonly ["timed_out", "analysis_failed", "asset_gone", "enqueue_failed"];
|
|
25
38
|
export type ReferenceAnalysisError = (typeof REFERENCE_ANALYSIS_ERRORS)[number];
|
|
26
39
|
export declare const REFERENCE_ANALYSIS_ERROR_MESSAGES: Readonly<Record<ReferenceAnalysisError, string>>;
|
|
27
|
-
/** What
|
|
40
|
+
/** What starts an analysis: ids only, so no file name or reference text reaches a log. */
|
|
28
41
|
export declare const analyzeReferencePayload: z.ZodObject<{
|
|
29
42
|
analysisId: z.ZodString;
|
|
30
43
|
accountId: z.ZodString;
|
|
31
44
|
}, z.core.$strict>;
|
|
32
45
|
export type AnalyzeReferencePayload = z.infer<typeof analyzeReferencePayload>;
|
|
46
|
+
export declare const REFERENCE_SOURCE_PLATFORMS: readonly ["instagram", "tiktok"];
|
|
47
|
+
export type ReferenceSourcePlatform = (typeof REFERENCE_SOURCE_PLATFORMS)[number];
|
|
48
|
+
/** The live analysis a link replays is found by this key; a short TikTok link has none before it is resolved. */
|
|
49
|
+
export declare const referenceSourceKey: z.ZodString;
|
|
50
|
+
export declare const REFERENCE_URL_YOUTUBE_REFUSAL = "YouTube gives no video file through our source; upload the MP4 with create_asset";
|
|
51
|
+
export declare const REFERENCE_URL_ACCEPTED: string;
|
|
52
|
+
export type ReferenceUrl = {
|
|
53
|
+
ok: true;
|
|
54
|
+
url: string;
|
|
55
|
+
platform: ReferenceSourcePlatform;
|
|
56
|
+
key: string | null;
|
|
57
|
+
} | {
|
|
58
|
+
ok: false;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
/** Which post a link names, read from its text alone: no network, so a refusal costs nothing (#930 S3). */
|
|
62
|
+
export declare function classifyReferenceUrl(raw: string): ReferenceUrl;
|
|
33
63
|
export declare const analyzeReferenceRequest: z.ZodObject<{
|
|
34
|
-
asset_id: z.ZodString
|
|
64
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
65
|
+
source_url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
data: "data";
|
|
68
|
+
full: "full";
|
|
69
|
+
}>>;
|
|
35
70
|
}, z.core.$strict>;
|
|
36
71
|
export type AnalyzeReferenceRequest = z.infer<typeof analyzeReferenceRequest>;
|
|
72
|
+
/** Instagram's caption limit; a longer one (TikTok allows 4000) is cut and says so. */
|
|
73
|
+
export declare const REFERENCE_CAPTION_MAX_CHARS = 2200;
|
|
74
|
+
/** The post behind a link analysis (#930 S3): `null` is unknown, never 0, and each unknown is also a line in `warnings[]`. */
|
|
75
|
+
export declare const referenceSource: z.ZodObject<{
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
platform: z.ZodEnum<{
|
|
78
|
+
instagram: "instagram";
|
|
79
|
+
tiktok: "tiktok";
|
|
80
|
+
}>;
|
|
81
|
+
key: z.ZodString;
|
|
82
|
+
measured_at: z.ZodString;
|
|
83
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
84
|
+
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
metrics: z.ZodObject<{
|
|
86
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
likes: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
comments: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
shares: z.ZodNullable<z.ZodNumber>;
|
|
90
|
+
views_per_hour: z.ZodNullable<z.ZodNumber>;
|
|
91
|
+
age_hours: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
comment_rate: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
author_followers: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
96
|
+
handle: z.ZodString;
|
|
97
|
+
name: z.ZodNullable<z.ZodString>;
|
|
98
|
+
url: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
caption: z.ZodNullable<z.ZodObject<{
|
|
101
|
+
text: z.ZodString;
|
|
102
|
+
truncated: z.ZodBoolean;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
author_median: z.ZodNullable<z.ZodObject<{
|
|
105
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
ratio: z.ZodNullable<z.ZodNumber>;
|
|
107
|
+
reels: z.ZodNumber;
|
|
108
|
+
window: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
author_recent: z.ZodNullable<z.ZodObject<{
|
|
111
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
112
|
+
ratio: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
reels: z.ZodNumber;
|
|
114
|
+
window: z.ZodString;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
comments_read: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
top_comments: z.ZodArray<z.ZodObject<{
|
|
118
|
+
text: z.ZodString;
|
|
119
|
+
likes: z.ZodNullable<z.ZodNumber>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
code_words: z.ZodArray<z.ZodObject<{
|
|
122
|
+
word: z.ZodString;
|
|
123
|
+
count: z.ZodNumber;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
code_word_guess: z.ZodNullable<z.ZodString>;
|
|
126
|
+
funnel: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
comment_keyword: z.ZodBoolean;
|
|
128
|
+
word: z.ZodNullable<z.ZodString>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
export type ReferenceSource = z.infer<typeof referenceSource>;
|
|
132
|
+
/** What a succeeded data analysis hands back (#930 S4): the probe, the transcribed words as the profile writes them, and a frame sheet. */
|
|
133
|
+
export declare const referenceData: z.ZodObject<{
|
|
134
|
+
transcript: z.ZodArray<z.ZodObject<{
|
|
135
|
+
text: z.ZodString;
|
|
136
|
+
start_s: z.ZodNumber;
|
|
137
|
+
end_s: z.ZodNumber;
|
|
138
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
hook: z.ZodNullable<z.ZodObject<{
|
|
142
|
+
text: z.ZodString;
|
|
143
|
+
end_s: z.ZodNumber;
|
|
144
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
|
+
start_s: z.ZodNumber;
|
|
148
|
+
end_s: z.ZodNumber;
|
|
149
|
+
text: z.ZodString;
|
|
150
|
+
speaker: z.ZodString;
|
|
151
|
+
mouth: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
vision: z.ZodNullable<z.ZodEnum<{
|
|
153
|
+
closed: "closed";
|
|
154
|
+
moving: "moving";
|
|
155
|
+
not_visible: "not_visible";
|
|
156
|
+
}>>;
|
|
157
|
+
measured: z.ZodEnum<{
|
|
158
|
+
moving: "moving";
|
|
159
|
+
not_measured: "not_measured";
|
|
160
|
+
still: "still";
|
|
161
|
+
}>;
|
|
162
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
163
|
+
}, z.core.$strict>>;
|
|
164
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strict>>>;
|
|
166
|
+
duration_s: z.ZodNumber;
|
|
167
|
+
width: z.ZodNumber;
|
|
168
|
+
height: z.ZodNumber;
|
|
169
|
+
fps: z.ZodNumber;
|
|
170
|
+
frame_sheet: z.ZodObject<{
|
|
171
|
+
columns: z.ZodNumber;
|
|
172
|
+
rows: z.ZodNumber;
|
|
173
|
+
times_s: z.ZodArray<z.ZodNumber>;
|
|
174
|
+
url: z.ZodNullable<z.ZodString>;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
export type ReferenceData = z.infer<typeof referenceData>;
|
|
178
|
+
/** The data answer's parts, for the record the analysis keeps. */
|
|
179
|
+
export declare const referenceDataParts: {
|
|
180
|
+
frameSheet: z.ZodObject<{
|
|
181
|
+
columns: z.ZodNumber;
|
|
182
|
+
rows: z.ZodNumber;
|
|
183
|
+
times_s: z.ZodArray<z.ZodNumber>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
words: {
|
|
186
|
+
transcript: z.ZodArray<z.ZodObject<{
|
|
187
|
+
text: z.ZodString;
|
|
188
|
+
start_s: z.ZodNumber;
|
|
189
|
+
end_s: z.ZodNumber;
|
|
190
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strict>>;
|
|
192
|
+
/** Since #990; absent on data from before it. */
|
|
193
|
+
transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
/** `null` when no word starts in the first seconds; no caption, since the screen is not read in this mode. */
|
|
195
|
+
hook: z.ZodNullable<z.ZodObject<{
|
|
196
|
+
text: z.ZodString;
|
|
197
|
+
end_s: z.ZodNumber;
|
|
198
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
/** The transcript as timed segments with the transcription's speaker label (#979); absent on data from before them. */
|
|
201
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
|
+
start_s: z.ZodNumber;
|
|
203
|
+
end_s: z.ZodNumber;
|
|
204
|
+
text: z.ZodString;
|
|
205
|
+
speaker: z.ZodString;
|
|
206
|
+
mouth: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
vision: z.ZodNullable<z.ZodEnum<{
|
|
208
|
+
closed: "closed";
|
|
209
|
+
moving: "moving";
|
|
210
|
+
not_visible: "not_visible";
|
|
211
|
+
}>>;
|
|
212
|
+
measured: z.ZodEnum<{
|
|
213
|
+
moving: "moving";
|
|
214
|
+
not_measured: "not_measured";
|
|
215
|
+
still: "still";
|
|
216
|
+
}>;
|
|
217
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
218
|
+
}, z.core.$strict>>;
|
|
219
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
220
|
+
}, z.core.$strict>>>;
|
|
221
|
+
};
|
|
222
|
+
probe: {
|
|
223
|
+
duration_s: z.ZodNumber;
|
|
224
|
+
width: z.ZodNumber;
|
|
225
|
+
height: z.ZodNumber;
|
|
226
|
+
fps: z.ZodNumber;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/** The reel's frames (#979): one a second, 4×3 sheets of 12 seconds, scenes from measured cuts; links signed for a day on each read. */
|
|
230
|
+
export declare const REFERENCE_FRAMES_FPS = 1;
|
|
231
|
+
export declare const REFERENCE_FRAME_MAX_WIDTH = 540;
|
|
232
|
+
export declare const REFERENCE_SHEET_COLUMNS = 4;
|
|
233
|
+
export declare const REFERENCE_SHEET_ROWS = 3;
|
|
234
|
+
export declare const REFERENCE_SHEET_WIDTH = 1080;
|
|
235
|
+
export declare const REFERENCE_FRAMES_PAGE_MAX = 60;
|
|
236
|
+
export declare const REFERENCE_FRAME_LINK_TTL_SECONDS = 86400;
|
|
237
|
+
export declare const MAX_REFERENCE_SCENES = 60;
|
|
238
|
+
export declare const REFERENCE_FRAMES_VERSION = "reference-frames-v1";
|
|
239
|
+
/** A frame's and a sheet's file name; the end frame's carries its tenth of a second. */
|
|
240
|
+
export declare const referenceFrameName: (t: number) => string;
|
|
241
|
+
export declare const referenceSheetName: (index: number) => string;
|
|
242
|
+
/** The frames as kept with an analysis: counts, size and scenes, no links. */
|
|
243
|
+
export declare const referenceFramesStored: z.ZodObject<{
|
|
244
|
+
version: z.ZodLiteral<"reference-frames-v1">;
|
|
245
|
+
count: z.ZodNumber;
|
|
246
|
+
width: z.ZodNumber;
|
|
247
|
+
height: z.ZodNumber;
|
|
248
|
+
sheets: z.ZodNumber;
|
|
249
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
250
|
+
start_s: z.ZodNumber;
|
|
251
|
+
end_s: z.ZodNumber;
|
|
252
|
+
key_frame_s: z.ZodNumber;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
end_s: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
}, z.core.$strict>;
|
|
256
|
+
export type ReferenceFramesStored = z.infer<typeof referenceFramesStored>;
|
|
257
|
+
export declare const REFERENCE_KEY_FRAME_KINDS: readonly ["hook", "beat"];
|
|
258
|
+
export declare const referenceFrames: z.ZodObject<{
|
|
259
|
+
fps: z.ZodLiteral<1>;
|
|
260
|
+
count: z.ZodNumber;
|
|
261
|
+
end_s: z.ZodNullable<z.ZodNumber>;
|
|
262
|
+
width: z.ZodNumber;
|
|
263
|
+
height: z.ZodNumber;
|
|
264
|
+
expires_at: z.ZodString;
|
|
265
|
+
page: z.ZodObject<{
|
|
266
|
+
from: z.ZodNumber;
|
|
267
|
+
to: z.ZodNumber;
|
|
268
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
269
|
+
frames_from: z.ZodNumber;
|
|
270
|
+
frames_to: z.ZodNumber;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
seconds: z.ZodArray<z.ZodObject<{
|
|
274
|
+
t_s: z.ZodNumber;
|
|
275
|
+
url: z.ZodString;
|
|
276
|
+
}, z.core.$strict>>;
|
|
277
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
278
|
+
index: z.ZodNumber;
|
|
279
|
+
columns: z.ZodLiteral<4>;
|
|
280
|
+
rows: z.ZodLiteral<3>;
|
|
281
|
+
times_s: z.ZodArray<z.ZodNumber>;
|
|
282
|
+
url: z.ZodString;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
key_frames: z.ZodArray<z.ZodObject<{
|
|
285
|
+
t_s: z.ZodNumber;
|
|
286
|
+
url: z.ZodString;
|
|
287
|
+
kind: z.ZodEnum<{
|
|
288
|
+
beat: "beat";
|
|
289
|
+
hook: "hook";
|
|
290
|
+
}>;
|
|
291
|
+
beat_index: z.ZodNullable<z.ZodNumber>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
294
|
+
start_s: z.ZodNumber;
|
|
295
|
+
end_s: z.ZodNumber;
|
|
296
|
+
key_frame_s: z.ZodNumber;
|
|
297
|
+
url: z.ZodString;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
}, z.core.$strict>;
|
|
300
|
+
export type ReferenceFrames = z.infer<typeof referenceFrames>;
|
|
301
|
+
/** Which frames a read signs; the whole reel when it fits one page. */
|
|
302
|
+
export declare const referenceFramesPage: z.ZodObject<{
|
|
303
|
+
frames_from: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
304
|
+
frames_to: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
export type ReferenceFramesPage = z.infer<typeof referenceFramesPage>;
|
|
307
|
+
/** How long a read may wait for an analysis to finish (#970): under an agent's usual 60 s tool timeout. */
|
|
308
|
+
export declare const REFERENCE_WAIT_MAX_SECONDS = 50;
|
|
309
|
+
/** Measured wall time from start to finish (#970: a full analysis took about 2.5 minutes), for `retry_after_seconds`. */
|
|
310
|
+
export declare const REFERENCE_EXPECTED_SECONDS: Readonly<Record<ReferenceAnalysisMode, number>>;
|
|
311
|
+
/** The query of `GET /v1/reference-analyses/{id}`. */
|
|
312
|
+
export declare const referenceAnalysisQuery: z.ZodObject<{
|
|
313
|
+
frames_from: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
314
|
+
frames_to: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
315
|
+
wait_seconds: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
316
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
markdown: "markdown";
|
|
318
|
+
}>>;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
export type ReferenceAnalysisQuery = z.infer<typeof referenceAnalysisQuery>;
|
|
37
321
|
export declare const referenceAnalysis: z.ZodObject<{
|
|
38
322
|
analysis_id: z.ZodString;
|
|
39
323
|
asset_id: z.ZodString;
|
|
324
|
+
mode: z.ZodEnum<{
|
|
325
|
+
data: "data";
|
|
326
|
+
full: "full";
|
|
327
|
+
}>;
|
|
40
328
|
state: z.ZodEnum<{
|
|
41
329
|
analyzing: "analyzing";
|
|
42
330
|
failed: "failed";
|
|
@@ -99,19 +387,24 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
99
387
|
unmapped: "unmapped";
|
|
100
388
|
}>;
|
|
101
389
|
source_kind: z.ZodEnum<{
|
|
390
|
+
banner: "banner";
|
|
102
391
|
before_after_split: "before_after_split";
|
|
103
392
|
callout: "callout";
|
|
104
393
|
checklist: "checklist";
|
|
394
|
+
comment_box: "comment_box";
|
|
105
395
|
compare: "compare";
|
|
396
|
+
concept_card: "concept_card";
|
|
106
397
|
end_card: "end_card";
|
|
107
398
|
insert_media: "insert_media";
|
|
108
399
|
layout_split: "layout_split";
|
|
400
|
+
logo_card: "logo_card";
|
|
109
401
|
lower_third: "lower_third";
|
|
110
402
|
notification: "notification";
|
|
111
403
|
other: "other";
|
|
112
404
|
overlay_media: "overlay_media";
|
|
113
405
|
particles: "particles";
|
|
114
406
|
phone_call: "phone_call";
|
|
407
|
+
price_card: "price_card";
|
|
115
408
|
product_ui: "product_ui";
|
|
116
409
|
progress: "progress";
|
|
117
410
|
quote: "quote";
|
|
@@ -193,6 +486,43 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
193
486
|
reacting: "reacting";
|
|
194
487
|
speaking: "speaking";
|
|
195
488
|
}>;
|
|
489
|
+
key_frame_s: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
frames_s: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
491
|
+
speaker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
speakers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
493
|
+
id: z.ZodString;
|
|
494
|
+
seconds: z.ZodNumber;
|
|
495
|
+
}, z.core.$strict>>>;
|
|
496
|
+
gaze: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
direction: z.ZodEnum<{
|
|
498
|
+
camera: "camera";
|
|
499
|
+
closed: "closed";
|
|
500
|
+
down: "down";
|
|
501
|
+
mixed: "mixed";
|
|
502
|
+
not_visible: "not_visible";
|
|
503
|
+
off_left: "off_left";
|
|
504
|
+
off_right: "off_right";
|
|
505
|
+
up: "up";
|
|
506
|
+
}>;
|
|
507
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
508
|
+
}, z.core.$strict>>;
|
|
509
|
+
gestures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
+
kind: z.ZodEnum<{
|
|
511
|
+
both_hands_to_viewer: "both_hands_to_viewer";
|
|
512
|
+
count_on_fingers: "count_on_fingers";
|
|
513
|
+
hold_object: "hold_object";
|
|
514
|
+
open_palms: "open_palms";
|
|
515
|
+
other: "other";
|
|
516
|
+
point_at_element: "point_at_element";
|
|
517
|
+
point_at_viewer: "point_at_viewer";
|
|
518
|
+
shrug: "shrug";
|
|
519
|
+
thumbs_up: "thumbs_up";
|
|
520
|
+
wave: "wave";
|
|
521
|
+
}>;
|
|
522
|
+
at_s: z.ZodNumber;
|
|
523
|
+
label: z.ZodString;
|
|
524
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
525
|
+
}, z.core.$strict>>>;
|
|
196
526
|
}, z.core.$strict>>;
|
|
197
527
|
captions: z.ZodObject<{
|
|
198
528
|
present: z.ZodBoolean;
|
|
@@ -210,6 +540,12 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
210
540
|
punch: "punch";
|
|
211
541
|
}>;
|
|
212
542
|
hidden_under_graphics: z.ZodBoolean;
|
|
543
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
544
|
+
left: z.ZodNumber;
|
|
545
|
+
top: z.ZodNumber;
|
|
546
|
+
width: z.ZodNumber;
|
|
547
|
+
height: z.ZodNumber;
|
|
548
|
+
}, z.core.$strict>>;
|
|
213
549
|
}, z.core.$strict>;
|
|
214
550
|
pacing: z.ZodObject<{
|
|
215
551
|
layer_change_every_s: z.ZodNumber;
|
|
@@ -222,12 +558,6 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
222
558
|
beat_index: z.ZodNumber;
|
|
223
559
|
suggested_substitute: z.ZodString;
|
|
224
560
|
}, z.core.$strict>>;
|
|
225
|
-
analysis: z.ZodObject<{
|
|
226
|
-
models: z.ZodArray<z.ZodString>;
|
|
227
|
-
cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
latency_ms: z.ZodNumber;
|
|
229
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
-
}, z.core.$strict>;
|
|
231
561
|
voice: z.ZodOptional<z.ZodObject<{
|
|
232
562
|
version: z.ZodLiteral<"voice-profile-v1">;
|
|
233
563
|
method: z.ZodObject<{
|
|
@@ -381,19 +711,24 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
381
711
|
beat_index: z.ZodNumber;
|
|
382
712
|
graphic_index: z.ZodNullable<z.ZodNumber>;
|
|
383
713
|
kind: z.ZodEnum<{
|
|
714
|
+
banner: "banner";
|
|
384
715
|
before_after_split: "before_after_split";
|
|
385
716
|
callout: "callout";
|
|
386
717
|
checklist: "checklist";
|
|
718
|
+
comment_box: "comment_box";
|
|
387
719
|
compare: "compare";
|
|
720
|
+
concept_card: "concept_card";
|
|
388
721
|
end_card: "end_card";
|
|
389
722
|
insert_media: "insert_media";
|
|
390
723
|
layout_split: "layout_split";
|
|
724
|
+
logo_card: "logo_card";
|
|
391
725
|
lower_third: "lower_third";
|
|
392
726
|
notification: "notification";
|
|
393
727
|
other: "other";
|
|
394
728
|
overlay_media: "overlay_media";
|
|
395
729
|
particles: "particles";
|
|
396
730
|
phone_call: "phone_call";
|
|
731
|
+
price_card: "price_card";
|
|
397
732
|
product_ui: "product_ui";
|
|
398
733
|
progress: "progress";
|
|
399
734
|
quote: "quote";
|
|
@@ -419,13 +754,13 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
419
754
|
height: z.ZodNumber;
|
|
420
755
|
}, z.core.$strict>>;
|
|
421
756
|
rect_method: z.ZodOptional<z.ZodEnum<{
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"
|
|
757
|
+
"estimated-still": "estimated-still";
|
|
758
|
+
"estimated-video": "estimated-video";
|
|
759
|
+
"frames-box/v1": "frames-box/v1";
|
|
760
|
+
"frames-face/v1": "frames-face/v1";
|
|
761
|
+
"frames-layer/v1": "frames-layer/v1";
|
|
762
|
+
"frames-motion/v1": "frames-motion/v1";
|
|
763
|
+
"frames-split/v1": "frames-split/v1";
|
|
429
764
|
}>>;
|
|
430
765
|
rects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
431
766
|
t_s: z.ZodNumber;
|
|
@@ -470,13 +805,13 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
470
805
|
displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
471
806
|
scale_from: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
472
807
|
method: z.ZodOptional<z.ZodEnum<{
|
|
473
|
-
"
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"
|
|
808
|
+
"estimated-still": "estimated-still";
|
|
809
|
+
"estimated-video": "estimated-video";
|
|
810
|
+
"frames-box/v1": "frames-box/v1";
|
|
811
|
+
"frames-face/v1": "frames-face/v1";
|
|
812
|
+
"frames-layer/v1": "frames-layer/v1";
|
|
813
|
+
"frames-motion/v1": "frames-motion/v1";
|
|
814
|
+
"frames-split/v1": "frames-split/v1";
|
|
480
815
|
}>>;
|
|
481
816
|
}, z.core.$strict>>;
|
|
482
817
|
exit: z.ZodOptional<z.ZodObject<{
|
|
@@ -512,13 +847,13 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
512
847
|
duration_s: z.ZodOptional<z.ZodNumber>;
|
|
513
848
|
displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
514
849
|
method: z.ZodOptional<z.ZodEnum<{
|
|
515
|
-
"
|
|
516
|
-
"
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
520
|
-
"
|
|
521
|
-
"
|
|
850
|
+
"estimated-still": "estimated-still";
|
|
851
|
+
"estimated-video": "estimated-video";
|
|
852
|
+
"frames-box/v1": "frames-box/v1";
|
|
853
|
+
"frames-face/v1": "frames-face/v1";
|
|
854
|
+
"frames-layer/v1": "frames-layer/v1";
|
|
855
|
+
"frames-motion/v1": "frames-motion/v1";
|
|
856
|
+
"frames-split/v1": "frames-split/v1";
|
|
522
857
|
}>>;
|
|
523
858
|
}, z.core.$strict>>;
|
|
524
859
|
layer: z.ZodOptional<z.ZodObject<{
|
|
@@ -530,13 +865,13 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
530
865
|
unknown: "unknown";
|
|
531
866
|
}>;
|
|
532
867
|
method: z.ZodEnum<{
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"
|
|
539
|
-
"
|
|
868
|
+
"estimated-still": "estimated-still";
|
|
869
|
+
"estimated-video": "estimated-video";
|
|
870
|
+
"frames-box/v1": "frames-box/v1";
|
|
871
|
+
"frames-face/v1": "frames-face/v1";
|
|
872
|
+
"frames-layer/v1": "frames-layer/v1";
|
|
873
|
+
"frames-motion/v1": "frames-motion/v1";
|
|
874
|
+
"frames-split/v1": "frames-split/v1";
|
|
540
875
|
}>;
|
|
541
876
|
covered_by: z.ZodArray<z.ZodEnum<{
|
|
542
877
|
body: "body";
|
|
@@ -633,7 +968,226 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
633
968
|
}>;
|
|
634
969
|
}, z.core.$strict>>;
|
|
635
970
|
}, z.core.$strict>>;
|
|
971
|
+
transcript: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
972
|
+
text: z.ZodString;
|
|
973
|
+
start_s: z.ZodNumber;
|
|
974
|
+
end_s: z.ZodNumber;
|
|
975
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
976
|
+
}, z.core.$strict>>>;
|
|
977
|
+
transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
978
|
+
hook: z.ZodOptional<z.ZodObject<{
|
|
979
|
+
text: z.ZodString;
|
|
980
|
+
end_s: z.ZodNumber;
|
|
981
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
982
|
+
}, z.core.$strict>>;
|
|
983
|
+
speakers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
984
|
+
id: z.ZodString;
|
|
985
|
+
on_screen: z.ZodBoolean;
|
|
986
|
+
role: z.ZodEnum<{
|
|
987
|
+
guest: "guest";
|
|
988
|
+
interviewer: "interviewer";
|
|
989
|
+
narrator: "narrator";
|
|
990
|
+
other: "other";
|
|
991
|
+
presenter: "presenter";
|
|
992
|
+
}>;
|
|
993
|
+
word_count: z.ZodNumber;
|
|
994
|
+
caption: z.ZodNullable<z.ZodObject<{
|
|
995
|
+
colour: z.ZodNullable<z.ZodString>;
|
|
996
|
+
style: z.ZodString;
|
|
997
|
+
position: z.ZodNullable<z.ZodEnum<{
|
|
998
|
+
bottom: "bottom";
|
|
999
|
+
lower: "lower";
|
|
1000
|
+
middle: "middle";
|
|
1001
|
+
top: "top";
|
|
1002
|
+
}>>;
|
|
1003
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
1004
|
+
left: z.ZodNumber;
|
|
1005
|
+
top: z.ZodNumber;
|
|
1006
|
+
width: z.ZodNumber;
|
|
1007
|
+
height: z.ZodNumber;
|
|
1008
|
+
}, z.core.$strict>>;
|
|
1009
|
+
}, z.core.$strict>>;
|
|
1010
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
1011
|
+
}, z.core.$strict>>>;
|
|
1012
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1013
|
+
start_s: z.ZodNumber;
|
|
1014
|
+
end_s: z.ZodNumber;
|
|
1015
|
+
text: z.ZodString;
|
|
1016
|
+
speaker: z.ZodString;
|
|
1017
|
+
mouth: z.ZodOptional<z.ZodObject<{
|
|
1018
|
+
vision: z.ZodNullable<z.ZodEnum<{
|
|
1019
|
+
closed: "closed";
|
|
1020
|
+
moving: "moving";
|
|
1021
|
+
not_visible: "not_visible";
|
|
1022
|
+
}>>;
|
|
1023
|
+
measured: z.ZodEnum<{
|
|
1024
|
+
moving: "moving";
|
|
1025
|
+
not_measured: "not_measured";
|
|
1026
|
+
still: "still";
|
|
1027
|
+
}>;
|
|
1028
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
1029
|
+
}, z.core.$strict>>;
|
|
1030
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
1031
|
+
}, z.core.$strict>>>;
|
|
1032
|
+
spellings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1033
|
+
heard: z.ZodString;
|
|
1034
|
+
shown: z.ZodString;
|
|
1035
|
+
start_s: z.ZodNumber;
|
|
1036
|
+
end_s: z.ZodNumber;
|
|
1037
|
+
}, z.core.$strict>>>;
|
|
1038
|
+
analysis: z.ZodObject<{
|
|
1039
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
|
+
}, z.core.$strict>>;
|
|
1042
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
1043
|
+
transcript: z.ZodArray<z.ZodObject<{
|
|
1044
|
+
text: z.ZodString;
|
|
1045
|
+
start_s: z.ZodNumber;
|
|
1046
|
+
end_s: z.ZodNumber;
|
|
1047
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
}, z.core.$strict>>;
|
|
1049
|
+
transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
|
+
hook: z.ZodNullable<z.ZodObject<{
|
|
1051
|
+
text: z.ZodString;
|
|
1052
|
+
end_s: z.ZodNumber;
|
|
1053
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
}, z.core.$strict>>;
|
|
1055
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1056
|
+
start_s: z.ZodNumber;
|
|
1057
|
+
end_s: z.ZodNumber;
|
|
1058
|
+
text: z.ZodString;
|
|
1059
|
+
speaker: z.ZodString;
|
|
1060
|
+
mouth: z.ZodOptional<z.ZodObject<{
|
|
1061
|
+
vision: z.ZodNullable<z.ZodEnum<{
|
|
1062
|
+
closed: "closed";
|
|
1063
|
+
moving: "moving";
|
|
1064
|
+
not_visible: "not_visible";
|
|
1065
|
+
}>>;
|
|
1066
|
+
measured: z.ZodEnum<{
|
|
1067
|
+
moving: "moving";
|
|
1068
|
+
not_measured: "not_measured";
|
|
1069
|
+
still: "still";
|
|
1070
|
+
}>;
|
|
1071
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
frames_s: z.ZodArray<z.ZodNumber>;
|
|
1074
|
+
}, z.core.$strict>>>;
|
|
1075
|
+
duration_s: z.ZodNumber;
|
|
1076
|
+
width: z.ZodNumber;
|
|
1077
|
+
height: z.ZodNumber;
|
|
1078
|
+
fps: z.ZodNumber;
|
|
1079
|
+
frame_sheet: z.ZodObject<{
|
|
1080
|
+
columns: z.ZodNumber;
|
|
1081
|
+
rows: z.ZodNumber;
|
|
1082
|
+
times_s: z.ZodArray<z.ZodNumber>;
|
|
1083
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
}, z.core.$strict>;
|
|
1085
|
+
}, z.core.$strict>>;
|
|
1086
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
1087
|
+
url: z.ZodString;
|
|
1088
|
+
platform: z.ZodEnum<{
|
|
1089
|
+
instagram: "instagram";
|
|
1090
|
+
tiktok: "tiktok";
|
|
1091
|
+
}>;
|
|
1092
|
+
key: z.ZodString;
|
|
1093
|
+
measured_at: z.ZodString;
|
|
1094
|
+
published_at: z.ZodNullable<z.ZodString>;
|
|
1095
|
+
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
1096
|
+
metrics: z.ZodObject<{
|
|
1097
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
1098
|
+
likes: z.ZodNullable<z.ZodNumber>;
|
|
1099
|
+
comments: z.ZodNullable<z.ZodNumber>;
|
|
1100
|
+
shares: z.ZodNullable<z.ZodNumber>;
|
|
1101
|
+
views_per_hour: z.ZodNullable<z.ZodNumber>;
|
|
1102
|
+
age_hours: z.ZodNullable<z.ZodNumber>;
|
|
1103
|
+
comment_rate: z.ZodNullable<z.ZodNumber>;
|
|
1104
|
+
}, z.core.$strict>;
|
|
1105
|
+
author_followers: z.ZodNullable<z.ZodNumber>;
|
|
1106
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
1107
|
+
handle: z.ZodString;
|
|
1108
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1109
|
+
url: z.ZodString;
|
|
1110
|
+
}, z.core.$strict>>;
|
|
1111
|
+
caption: z.ZodNullable<z.ZodObject<{
|
|
1112
|
+
text: z.ZodString;
|
|
1113
|
+
truncated: z.ZodBoolean;
|
|
1114
|
+
}, z.core.$strict>>;
|
|
1115
|
+
author_median: z.ZodNullable<z.ZodObject<{
|
|
1116
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
1117
|
+
ratio: z.ZodNullable<z.ZodNumber>;
|
|
1118
|
+
reels: z.ZodNumber;
|
|
1119
|
+
window: z.ZodString;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1121
|
+
author_recent: z.ZodNullable<z.ZodObject<{
|
|
1122
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
1123
|
+
ratio: z.ZodNullable<z.ZodNumber>;
|
|
1124
|
+
reels: z.ZodNumber;
|
|
1125
|
+
window: z.ZodString;
|
|
1126
|
+
}, z.core.$strict>>;
|
|
1127
|
+
comments_read: z.ZodNullable<z.ZodNumber>;
|
|
1128
|
+
top_comments: z.ZodArray<z.ZodObject<{
|
|
1129
|
+
text: z.ZodString;
|
|
1130
|
+
likes: z.ZodNullable<z.ZodNumber>;
|
|
1131
|
+
}, z.core.$strict>>;
|
|
1132
|
+
code_words: z.ZodArray<z.ZodObject<{
|
|
1133
|
+
word: z.ZodString;
|
|
1134
|
+
count: z.ZodNumber;
|
|
1135
|
+
}, z.core.$strict>>;
|
|
1136
|
+
code_word_guess: z.ZodNullable<z.ZodString>;
|
|
1137
|
+
funnel: z.ZodNullable<z.ZodObject<{
|
|
1138
|
+
comment_keyword: z.ZodBoolean;
|
|
1139
|
+
word: z.ZodNullable<z.ZodString>;
|
|
1140
|
+
}, z.core.$strict>>;
|
|
636
1141
|
}, z.core.$strict>>;
|
|
1142
|
+
frames: z.ZodNullable<z.ZodObject<{
|
|
1143
|
+
fps: z.ZodLiteral<1>;
|
|
1144
|
+
count: z.ZodNumber;
|
|
1145
|
+
end_s: z.ZodNullable<z.ZodNumber>;
|
|
1146
|
+
width: z.ZodNumber;
|
|
1147
|
+
height: z.ZodNumber;
|
|
1148
|
+
expires_at: z.ZodString;
|
|
1149
|
+
page: z.ZodObject<{
|
|
1150
|
+
from: z.ZodNumber;
|
|
1151
|
+
to: z.ZodNumber;
|
|
1152
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
1153
|
+
frames_from: z.ZodNumber;
|
|
1154
|
+
frames_to: z.ZodNumber;
|
|
1155
|
+
}, z.core.$strict>>;
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
|
+
seconds: z.ZodArray<z.ZodObject<{
|
|
1158
|
+
t_s: z.ZodNumber;
|
|
1159
|
+
url: z.ZodString;
|
|
1160
|
+
}, z.core.$strict>>;
|
|
1161
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
1162
|
+
index: z.ZodNumber;
|
|
1163
|
+
columns: z.ZodLiteral<4>;
|
|
1164
|
+
rows: z.ZodLiteral<3>;
|
|
1165
|
+
times_s: z.ZodArray<z.ZodNumber>;
|
|
1166
|
+
url: z.ZodString;
|
|
1167
|
+
}, z.core.$strict>>;
|
|
1168
|
+
key_frames: z.ZodArray<z.ZodObject<{
|
|
1169
|
+
t_s: z.ZodNumber;
|
|
1170
|
+
url: z.ZodString;
|
|
1171
|
+
kind: z.ZodEnum<{
|
|
1172
|
+
beat: "beat";
|
|
1173
|
+
hook: "hook";
|
|
1174
|
+
}>;
|
|
1175
|
+
beat_index: z.ZodNullable<z.ZodNumber>;
|
|
1176
|
+
}, z.core.$strict>>;
|
|
1177
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
1178
|
+
start_s: z.ZodNumber;
|
|
1179
|
+
end_s: z.ZodNumber;
|
|
1180
|
+
key_frame_s: z.ZodNumber;
|
|
1181
|
+
url: z.ZodString;
|
|
1182
|
+
}, z.core.$strict>>;
|
|
1183
|
+
}, z.core.$strict>>;
|
|
1184
|
+
video: z.ZodNullable<z.ZodObject<{
|
|
1185
|
+
url: z.ZodString;
|
|
1186
|
+
expires_at: z.ZodString;
|
|
1187
|
+
}, z.core.$strict>>;
|
|
1188
|
+
retry_after_seconds: z.ZodNullable<z.ZodNumber>;
|
|
1189
|
+
replaces_analysis_id: z.ZodNullable<z.ZodString>;
|
|
1190
|
+
superseded_by_analysis_id: z.ZodNullable<z.ZodString>;
|
|
637
1191
|
warnings: z.ZodArray<z.ZodString>;
|
|
638
1192
|
error: z.ZodNullable<z.ZodObject<{
|
|
639
1193
|
code: z.ZodEnum<{
|
|
@@ -649,10 +1203,35 @@ export declare const referenceAnalysis: z.ZodObject<{
|
|
|
649
1203
|
balance_after_credits: z.ZodNullable<z.ZodNumber>;
|
|
650
1204
|
created_at: z.ZodString;
|
|
651
1205
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
untrusted_content: z.ZodObject<{
|
|
1207
|
+
note: z.ZodLiteral<string>;
|
|
1208
|
+
fields: z.ZodArray<z.ZodEnum<{
|
|
1209
|
+
"data.hook.text": "data.hook.text";
|
|
1210
|
+
"data.segments[].text": "data.segments[].text";
|
|
1211
|
+
"data.transcript[].text": "data.transcript[].text";
|
|
1212
|
+
display_markdown: "display_markdown";
|
|
1213
|
+
"reference_profile.beats[].graphics[].label_hint": "reference_profile.beats[].graphics[].label_hint";
|
|
1214
|
+
"reference_profile.beats[].spoken_summary": "reference_profile.beats[].spoken_summary";
|
|
1215
|
+
"reference_profile.hook.caption": "reference_profile.hook.caption";
|
|
1216
|
+
"reference_profile.hook.text": "reference_profile.hook.text";
|
|
1217
|
+
"reference_profile.segments[].text": "reference_profile.segments[].text";
|
|
1218
|
+
"reference_profile.spellings[].heard": "reference_profile.spellings[].heard";
|
|
1219
|
+
"reference_profile.spellings[].shown": "reference_profile.spellings[].shown";
|
|
1220
|
+
"reference_profile.transcript[].text": "reference_profile.transcript[].text";
|
|
1221
|
+
"source.author.name": "source.author.name";
|
|
1222
|
+
"source.caption.text": "source.caption.text";
|
|
1223
|
+
"source.code_word_guess": "source.code_word_guess";
|
|
1224
|
+
"source.code_words[].word": "source.code_words[].word";
|
|
1225
|
+
"source.funnel.word": "source.funnel.word";
|
|
1226
|
+
"source.top_comments[].text": "source.top_comments[].text";
|
|
1227
|
+
}>>;
|
|
1228
|
+
}, z.core.$strict>;
|
|
1229
|
+
display_markdown: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
display_hint: z.ZodOptional<z.ZodString>;
|
|
652
1231
|
}, z.core.$strict>;
|
|
653
1232
|
export type ReferenceAnalysis = z.infer<typeof referenceAnalysis>;
|
|
654
1233
|
export declare const analysisQuoteResponse: z.ZodObject<{
|
|
655
|
-
asset_id: z.ZodString
|
|
1234
|
+
asset_id: z.ZodNullable<z.ZodString>;
|
|
656
1235
|
credits_estimate: z.ZodNumber;
|
|
657
1236
|
replays_analysis_id: z.ZodNullable<z.ZodString>;
|
|
658
1237
|
warnings: z.ZodArray<z.ZodString>;
|
|
@@ -665,19 +1244,33 @@ export declare const referenceAnalysisRead: z.ZodObject<{
|
|
|
665
1244
|
warnings: z.ZodArray<z.ZodString>;
|
|
666
1245
|
created_at: z.ZodString;
|
|
667
1246
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
1247
|
+
display_markdown: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
display_hint: z.ZodOptional<z.ZodString>;
|
|
668
1249
|
state: z.ZodString;
|
|
669
1250
|
reference_profile: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
670
1251
|
error: z.ZodNullable<z.ZodObject<{
|
|
671
1252
|
code: z.ZodString;
|
|
672
1253
|
message: z.ZodString;
|
|
673
1254
|
}, z.core.$strip>>;
|
|
1255
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1256
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1258
|
+
frames: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1259
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1260
|
+
retry_after_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1261
|
+
replaces_analysis_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1262
|
+
superseded_by_analysis_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1263
|
+
untrusted_content: z.ZodOptional<z.ZodObject<{
|
|
1264
|
+
note: z.ZodString;
|
|
1265
|
+
fields: z.ZodArray<z.ZodString>;
|
|
1266
|
+
}, z.core.$strip>>;
|
|
674
1267
|
credits_reserved: z.ZodOptional<z.ZodNumber>;
|
|
675
1268
|
credits_charged: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
676
1269
|
balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
677
1270
|
}, z.core.$strict>;
|
|
678
1271
|
export type ReferenceAnalysisRead = z.infer<typeof referenceAnalysisRead>;
|
|
679
1272
|
/** Rule 3: every element we cannot draw is said in `warnings[]` too, not only inside the profile. */
|
|
680
|
-
export declare function referenceAnalysisWarnings(profile:
|
|
1273
|
+
export declare function referenceAnalysisWarnings(profile: Pick<ReferenceProfileAnswer, "unmapped" | "analysis">): string[];
|
|
681
1274
|
export declare const ANALYZE_REFERENCE_DESCRIPTION: string;
|
|
682
1275
|
export declare const GET_REFERENCE_ANALYSIS_DESCRIPTION: string;
|
|
683
1276
|
export declare const QUOTE_ANALYSIS_DESCRIPTION: string;
|