@clipwright/core 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/README.md +3 -1
  3. package/dist/account-actors.d.ts +173 -14
  4. package/dist/account-actors.js +142 -10
  5. package/dist/account-actors.js.map +1 -1
  6. package/dist/actor-bounds.d.ts +4 -0
  7. package/dist/actor-bounds.js +4 -0
  8. package/dist/actor-bounds.js.map +1 -1
  9. package/dist/actors.d.ts +31 -0
  10. package/dist/actors.js +26 -0
  11. package/dist/actors.js.map +1 -1
  12. package/dist/assets.d.ts +17 -1
  13. package/dist/assets.js +19 -2
  14. package/dist/assets.js.map +1 -1
  15. package/dist/billing-terms.d.ts +69 -0
  16. package/dist/billing-terms.js +8 -0
  17. package/dist/billing-terms.js.map +1 -1
  18. package/dist/contract-dispositions.d.ts +485 -1
  19. package/dist/contract-dispositions.js +27 -3
  20. package/dist/contract-dispositions.js.map +1 -1
  21. package/dist/contracts/v1/workflow-brief.d.ts +1420 -0
  22. package/dist/contracts/v1/workflow-brief.js +4 -0
  23. package/dist/contracts/v1/workflow-brief.js.map +1 -1
  24. package/dist/contracts/v1/workflow-catalog.d.ts +2141 -105
  25. package/dist/contracts/v1/workflow-catalog.js +4 -2
  26. package/dist/contracts/v1/workflow-catalog.js.map +1 -1
  27. package/dist/contracts/v1/workflow-client.d.ts +1631 -3
  28. package/dist/contracts/v1/workflow-client.js +6 -3
  29. package/dist/contracts/v1/workflow-client.js.map +1 -1
  30. package/dist/contracts/v1/workflow-execution.d.ts +161 -9
  31. package/dist/contracts/v1/workflow-execution.js +15 -7
  32. package/dist/contracts/v1/workflow-execution.js.map +1 -1
  33. package/dist/contracts/v1/workflow-plan.d.ts +3167 -142
  34. package/dist/contracts/v1/workflow-primitives.d.ts +3 -1
  35. package/dist/contracts/v1/workflow-primitives.js +1 -1
  36. package/dist/contracts/v1/workflow-primitives.js.map +1 -1
  37. package/dist/contracts/v1/workflow-run-read.d.ts +114 -1
  38. package/dist/edit-billing.d.ts +12 -0
  39. package/dist/edit-billing.js +8 -0
  40. package/dist/edit-billing.js.map +1 -1
  41. package/dist/edit-long-form.d.ts +1 -1
  42. package/dist/edit-long-form.js +12 -2
  43. package/dist/edit-long-form.js.map +1 -1
  44. package/dist/endpoint-notes.d.ts +3 -0
  45. package/dist/endpoint-notes.js +66 -0
  46. package/dist/endpoint-notes.js.map +1 -0
  47. package/dist/endpoints.d.ts +4 -0
  48. package/dist/endpoints.js +13 -0
  49. package/dist/endpoints.js.map +1 -1
  50. package/dist/errors.d.ts +1 -1
  51. package/dist/errors.js +6 -0
  52. package/dist/errors.js.map +1 -1
  53. package/dist/face-billing.d.ts +55 -0
  54. package/dist/face-billing.js +22 -0
  55. package/dist/face-billing.js.map +1 -1
  56. package/dist/faceless-price.d.ts +26 -2
  57. package/dist/faceless-price.js +33 -6
  58. package/dist/faceless-price.js.map +1 -1
  59. package/dist/faceless-public.d.ts +6 -1
  60. package/dist/faceless-public.js +2 -2
  61. package/dist/faceless-public.js.map +1 -1
  62. package/dist/generations.js +15 -16
  63. package/dist/generations.js.map +1 -1
  64. package/dist/idempotency.d.ts +2 -0
  65. package/dist/idempotency.js +7 -4
  66. package/dist/idempotency.js.map +1 -1
  67. package/dist/index.d.ts +11 -0
  68. package/dist/index.js +13 -0
  69. package/dist/index.js.map +1 -1
  70. package/dist/long-form-pricing.d.ts +7 -4
  71. package/dist/long-form-pricing.js +13 -10
  72. package/dist/long-form-pricing.js.map +1 -1
  73. package/dist/long-form-revision.js +1 -1
  74. package/dist/long-form-revision.js.map +1 -1
  75. package/dist/openapi.d.ts +154 -0
  76. package/dist/openapi.js +334 -0
  77. package/dist/openapi.js.map +1 -0
  78. package/dist/pacing.d.ts +15 -0
  79. package/dist/pacing.js +30 -0
  80. package/dist/pacing.js.map +1 -1
  81. package/dist/parts-pricing.d.ts +84 -0
  82. package/dist/parts-pricing.js +105 -0
  83. package/dist/parts-pricing.js.map +1 -0
  84. package/dist/presenter-beats.d.ts +45 -0
  85. package/dist/presenter-beats.js +144 -0
  86. package/dist/presenter-beats.js.map +1 -0
  87. package/dist/prices.d.ts +98 -0
  88. package/dist/prices.js +189 -0
  89. package/dist/prices.js.map +1 -0
  90. package/dist/public-responses.d.ts +23 -0
  91. package/dist/public-responses.js +11 -0
  92. package/dist/public-responses.js.map +1 -0
  93. package/dist/reference-analysis.d.ts +683 -0
  94. package/dist/reference-analysis.js +91 -0
  95. package/dist/reference-analysis.js.map +1 -0
  96. package/dist/reference-kinds.d.ts +6 -0
  97. package/dist/reference-kinds.js +8 -0
  98. package/dist/reference-kinds.js.map +1 -0
  99. package/dist/reference-profile.d.ts +633 -0
  100. package/dist/reference-profile.js +151 -0
  101. package/dist/reference-profile.js.map +1 -0
  102. package/dist/reference-staging.d.ts +571 -0
  103. package/dist/reference-staging.js +151 -0
  104. package/dist/reference-staging.js.map +1 -0
  105. package/dist/reference-voice.d.ts +305 -0
  106. package/dist/reference-voice.js +108 -0
  107. package/dist/reference-voice.js.map +1 -0
  108. package/dist/resolved-timeline.d.ts +53 -1
  109. package/dist/resolved-timeline.js +50 -4
  110. package/dist/resolved-timeline.js.map +1 -1
  111. package/dist/run-static-warnings.js +14 -5
  112. package/dist/run-static-warnings.js.map +1 -1
  113. package/dist/runs.d.ts +75 -3
  114. package/dist/runs.js +6 -1
  115. package/dist/runs.js.map +1 -1
  116. package/dist/skills.d.ts +1805 -24
  117. package/dist/skills.js +129 -19
  118. package/dist/skills.js.map +1 -1
  119. package/dist/templates/callout.d.ts +2 -2
  120. package/dist/templates/callout.js +6 -6
  121. package/dist/templates/callout.js.map +1 -1
  122. package/dist/templates/checklist.js +2 -2
  123. package/dist/templates/checklist.js.map +1 -1
  124. package/dist/templates/index.d.ts +14 -7
  125. package/dist/templates/index.js +29 -17
  126. package/dist/templates/index.js.map +1 -1
  127. package/dist/templates/notification.js +2 -2
  128. package/dist/templates/notification.js.map +1 -1
  129. package/dist/templates/phone-call.d.ts +3 -0
  130. package/dist/templates/phone-call.js +14 -7
  131. package/dist/templates/phone-call.js.map +1 -1
  132. package/dist/templates/progress.js +2 -2
  133. package/dist/templates/progress.js.map +1 -1
  134. package/dist/templates/sounds.d.ts +357 -7
  135. package/dist/templates/sounds.js +34 -12
  136. package/dist/templates/sounds.js.map +1 -1
  137. package/dist/ugc-call.d.ts +89 -0
  138. package/dist/ugc-call.js +111 -0
  139. package/dist/ugc-call.js.map +1 -0
  140. package/dist/ugc-framing.d.ts +26 -0
  141. package/dist/ugc-framing.js +64 -0
  142. package/dist/ugc-framing.js.map +1 -0
  143. package/dist/ugc-layers.d.ts +5 -1
  144. package/dist/ugc-layers.js +6 -1
  145. package/dist/ugc-layers.js.map +1 -1
  146. package/dist/vendor-response.d.ts +4 -0
  147. package/dist/vendor-response.js +12 -0
  148. package/dist/vendor-response.js.map +1 -1
  149. package/dist/voice-admission.d.ts +409 -0
  150. package/dist/voice-listing.js +7 -1
  151. package/dist/voice-listing.js.map +1 -1
  152. package/dist/voice-pace.d.ts +34 -0
  153. package/dist/voice-pace.generated.json +72 -0
  154. package/dist/voice-pace.js +34 -0
  155. package/dist/voice-pace.js.map +1 -0
  156. package/dist/voices.d.ts +21 -8
  157. package/dist/voices.js +44 -19
  158. package/dist/voices.js.map +1 -1
  159. package/dist/workflows/catalog.js +2 -1
  160. package/dist/workflows/catalog.js.map +1 -1
  161. package/dist/workflows/index.d.ts +2 -0
  162. package/dist/workflows/index.js +2 -0
  163. package/dist/workflows/index.js.map +1 -1
  164. package/dist/workflows/methods/faceless-explainer.d.ts +377 -10
  165. package/dist/workflows/methods/kinetic-launch.d.ts +377 -10
  166. package/dist/workflows/methods/product-image-story.d.ts +377 -10
  167. package/dist/workflows/methods/reference-remake.d.ts +870 -0
  168. package/dist/workflows/methods/reference-remake.js +26 -0
  169. package/dist/workflows/methods/reference-remake.js.map +1 -0
  170. package/dist/workflows/methods/shared.d.ts +377 -10
  171. package/dist/workflows/methods/ugc-faq-answer.d.ts +377 -10
  172. package/dist/workflows/methods/ugc-product-intro.d.ts +377 -10
  173. package/dist/workflows/methods/website-proof-demo.d.ts +377 -10
  174. package/dist/workflows/reference-remake.d.ts +663 -0
  175. package/dist/workflows/reference-remake.js +598 -0
  176. package/dist/workflows/reference-remake.js.map +1 -0
  177. package/dist/workflows/validate.js +7 -4
  178. package/dist/workflows/validate.js.map +1 -1
  179. package/package.json +8 -2
@@ -0,0 +1,683 @@
1
+ import { z } from "zod";
2
+ import { type ReferenceProfile } from "./reference-profile.js";
3
+ /** Reference analysis (reference-to-video S1c): an MP4 asset read into a `reference_profile`. Its status lives at its own */
4
+ /** path, as an asset's processing does; its money (#927) rides a run of skill `analyze_reference` that holds and settles it. */
5
+ export declare const REFERENCE_ANALYSES_PATH = "/v1/reference-analyses";
6
+ export declare const REFERENCE_ANALYSIS_PATH = "/v1/reference-analyses/:id";
7
+ export declare const REFERENCE_ANALYSIS_QUOTE_PATH = "/v1/reference-analyses/quote";
8
+ export declare const ANALYZE_REFERENCE_TASK = "analyze-reference";
9
+ /** The run skill that carries an analysis's hold and charge; not a `SKILLS` entry, since no `/v1/skills` route starts it. */
10
+ export declare const ANALYZE_REFERENCE_SKILL = "analyze_reference";
11
+ export declare const referenceAnalysisId: z.ZodString;
12
+ /** The price of a delivered analysis (owner, 29.10, #800/#927): Argon video plus Flash stills cost us ≈ $0.23 today. */
13
+ /** Argon's price doubles on 2026-12-01 (≈ $0.45, ≈ 135 credits at ×2.5): the owner reprices then; nothing changes it by itself. */
14
+ export declare const REFERENCE_ANALYSIS_CREDITS = 70;
15
+ /** New analyses per account per hour: each costs us vendor money even when it fails, so the cap stays beside the price. */
16
+ export declare const REFERENCE_ANALYSIS_PER_HOUR = 10;
17
+ export declare const REFERENCE_ANALYSIS_WINDOW_SECONDS = 3600;
18
+ /** The worker stops its own work here, removes its temp copy and fails the analysis; under the task's ceiling. */
19
+ export declare const REFERENCE_ANALYSIS_WORK_SECONDS = 420;
20
+ export declare const REFERENCE_ANALYSIS_TASK_MAX_DURATION_SECONDS = 600;
21
+ /** Past this a read calls an unfinished analysis failed: a task killed at its ceiling writes nothing. */
22
+ export declare const REFERENCE_ANALYSIS_DEADLINE_SECONDS = 900;
23
+ export declare const REFERENCE_ANALYSIS_STATES: readonly ["queued", "analyzing", "succeeded", "failed"];
24
+ export declare const REFERENCE_ANALYSIS_ERRORS: readonly ["timed_out", "analysis_failed", "asset_gone", "enqueue_failed"];
25
+ export type ReferenceAnalysisError = (typeof REFERENCE_ANALYSIS_ERRORS)[number];
26
+ export declare const REFERENCE_ANALYSIS_ERROR_MESSAGES: Readonly<Record<ReferenceAnalysisError, string>>;
27
+ /** What the API hands the worker: ids only, so no file name or reference text reaches Trigger.dev's log. */
28
+ export declare const analyzeReferencePayload: z.ZodObject<{
29
+ analysisId: z.ZodString;
30
+ accountId: z.ZodString;
31
+ }, z.core.$strict>;
32
+ export type AnalyzeReferencePayload = z.infer<typeof analyzeReferencePayload>;
33
+ export declare const analyzeReferenceRequest: z.ZodObject<{
34
+ asset_id: z.ZodString;
35
+ }, z.core.$strict>;
36
+ export type AnalyzeReferenceRequest = z.infer<typeof analyzeReferenceRequest>;
37
+ export declare const referenceAnalysis: z.ZodObject<{
38
+ analysis_id: z.ZodString;
39
+ asset_id: z.ZodString;
40
+ state: z.ZodEnum<{
41
+ analyzing: "analyzing";
42
+ failed: "failed";
43
+ queued: "queued";
44
+ succeeded: "succeeded";
45
+ }>;
46
+ reference_profile: z.ZodNullable<z.ZodObject<{
47
+ version: z.ZodLiteral<"reference-profile-v1">;
48
+ source: z.ZodObject<{
49
+ digest: z.ZodString;
50
+ duration_s: z.ZodNumber;
51
+ width: z.ZodNumber;
52
+ height: z.ZodNumber;
53
+ url: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strict>;
55
+ format: z.ZodEnum<{
56
+ broll: "broll";
57
+ faceless: "faceless";
58
+ other: "other";
59
+ talking_head_graphics: "talking_head_graphics";
60
+ }>;
61
+ beats: z.ZodArray<z.ZodObject<{
62
+ start_frac: z.ZodNumber;
63
+ end_frac: z.ZodNumber;
64
+ start_s: z.ZodNumber;
65
+ end_s: z.ZodNumber;
66
+ role: z.ZodEnum<{
67
+ agitation: "agitation";
68
+ before_after: "before_after";
69
+ cta: "cta";
70
+ demo: "demo";
71
+ hook: "hook";
72
+ offer: "offer";
73
+ other: "other";
74
+ problem: "problem";
75
+ proof: "proof";
76
+ social_proof: "social_proof";
77
+ solution: "solution";
78
+ }>;
79
+ spoken_summary: z.ZodString;
80
+ graphics: z.ZodArray<z.ZodObject<{
81
+ kind: z.ZodEnum<{
82
+ callout: "callout";
83
+ checklist: "checklist";
84
+ compare: "compare";
85
+ end_card: "end_card";
86
+ insert_media: "insert_media";
87
+ layout_split: "layout_split";
88
+ lower_third: "lower_third";
89
+ notification: "notification";
90
+ overlay_media: "overlay_media";
91
+ particles: "particles";
92
+ phone_call: "phone_call";
93
+ progress: "progress";
94
+ quote: "quote";
95
+ rating: "rating";
96
+ stat: "stat";
97
+ tag: "tag";
98
+ title_card: "title_card";
99
+ unmapped: "unmapped";
100
+ }>;
101
+ source_kind: z.ZodEnum<{
102
+ before_after_split: "before_after_split";
103
+ callout: "callout";
104
+ checklist: "checklist";
105
+ compare: "compare";
106
+ end_card: "end_card";
107
+ insert_media: "insert_media";
108
+ layout_split: "layout_split";
109
+ lower_third: "lower_third";
110
+ notification: "notification";
111
+ other: "other";
112
+ overlay_media: "overlay_media";
113
+ particles: "particles";
114
+ phone_call: "phone_call";
115
+ product_ui: "product_ui";
116
+ progress: "progress";
117
+ quote: "quote";
118
+ rating: "rating";
119
+ screenshot: "screenshot";
120
+ split_screen: "split_screen";
121
+ stat: "stat";
122
+ tag: "tag";
123
+ title_card: "title_card";
124
+ toggle_checklist: "toggle_checklist";
125
+ unmapped: "unmapped";
126
+ }>;
127
+ position: z.ZodEnum<{
128
+ bottom: "bottom";
129
+ bottom_left: "bottom_left";
130
+ bottom_right: "bottom_right";
131
+ center: "center";
132
+ full_screen: "full_screen";
133
+ other: "other";
134
+ split_bottom: "split_bottom";
135
+ split_top: "split_top";
136
+ top: "top";
137
+ top_left: "top_left";
138
+ top_right: "top_right";
139
+ }>;
140
+ state_changes: z.ZodArray<z.ZodObject<{
141
+ at_frac: z.ZodNumber;
142
+ change: z.ZodEnum<{
143
+ appears: "appears";
144
+ checked: "checked";
145
+ disappears: "disappears";
146
+ highlighted: "highlighted";
147
+ other: "other";
148
+ toggles_off: "toggles_off";
149
+ toggles_on: "toggles_on";
150
+ value_changes: "value_changes";
151
+ }>;
152
+ }, z.core.$strict>>;
153
+ label_hint: z.ZodString;
154
+ }, z.core.$strict>>;
155
+ camera: z.ZodEnum<{
156
+ other: "other";
157
+ punch_in: "punch_in";
158
+ shake: "shake";
159
+ static: "static";
160
+ zoom_out: "zoom_out";
161
+ }>;
162
+ transition_in: z.ZodEnum<{
163
+ cut: "cut";
164
+ flash: "flash";
165
+ none: "none";
166
+ other: "other";
167
+ wipe: "wipe";
168
+ zoom: "zoom";
169
+ }>;
170
+ sounds: z.ZodArray<z.ZodObject<{
171
+ at_frac: z.ZodNumber;
172
+ kind: z.ZodEnum<{
173
+ answer: "answer";
174
+ click: "click";
175
+ edit: "edit";
176
+ flash: "flash";
177
+ hangup: "hangup";
178
+ money: "money";
179
+ music: "music";
180
+ notify: "notify";
181
+ other: "other";
182
+ pop: "pop";
183
+ recorded_audio: "recorded_audio";
184
+ ring: "ring";
185
+ step: "step";
186
+ toggle: "toggle";
187
+ whoosh: "whoosh";
188
+ }>;
189
+ }, z.core.$strict>>;
190
+ presenter_behaviour: z.ZodEnum<{
191
+ absent: "absent";
192
+ listening: "listening";
193
+ reacting: "reacting";
194
+ speaking: "speaking";
195
+ }>;
196
+ }, z.core.$strict>>;
197
+ captions: z.ZodObject<{
198
+ present: z.ZodBoolean;
199
+ words_per_caption_max: z.ZodNumber;
200
+ position: z.ZodEnum<{
201
+ bottom: "bottom";
202
+ lower: "lower";
203
+ middle: "middle";
204
+ top: "top";
205
+ }>;
206
+ emphasis_style: z.ZodEnum<{
207
+ color: "color";
208
+ none: "none";
209
+ pill: "pill";
210
+ punch: "punch";
211
+ }>;
212
+ hidden_under_graphics: z.ZodBoolean;
213
+ }, z.core.$strict>;
214
+ pacing: z.ZodObject<{
215
+ layer_change_every_s: z.ZodNumber;
216
+ face_share: z.ZodNumber;
217
+ }, z.core.$strict>;
218
+ palette: z.ZodArray<z.ZodString>;
219
+ music: z.ZodString;
220
+ unmapped: z.ZodArray<z.ZodObject<{
221
+ what: z.ZodString;
222
+ beat_index: z.ZodNumber;
223
+ suggested_substitute: z.ZodString;
224
+ }, 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
+ voice: z.ZodOptional<z.ZodObject<{
232
+ version: z.ZodLiteral<"voice-profile-v1">;
233
+ method: z.ZodObject<{
234
+ pause_drop_db: z.ZodNumber;
235
+ pause_min_run_s: z.ZodNumber;
236
+ cut_safe_db: z.ZodNumber;
237
+ pitch: z.ZodLiteral<"yin">;
238
+ sample_rate: z.ZodNumber;
239
+ }, z.core.$strict>;
240
+ presenter_speaker: z.ZodNullable<z.ZodString>;
241
+ speakers: z.ZodArray<z.ZodObject<{
242
+ speaker: z.ZodString;
243
+ word_count: z.ZodNumber;
244
+ sentence_count: z.ZodNumber;
245
+ pace: z.ZodObject<{
246
+ status: z.ZodEnum<{
247
+ measured: "measured";
248
+ unmeasured: "unmeasured";
249
+ }>;
250
+ words_per_second: z.ZodNullable<z.ZodNumber>;
251
+ basis: z.ZodEnum<{
252
+ sentence_spans: "sentence_spans";
253
+ turn_spans: "turn_spans";
254
+ }>;
255
+ }, z.core.$strict>;
256
+ pauses: z.ZodObject<{
257
+ sentence_end: z.ZodObject<{
258
+ timestamp: z.ZodObject<{
259
+ count: z.ZodNumber;
260
+ median_s: z.ZodNullable<z.ZodNumber>;
261
+ p90_s: z.ZodNullable<z.ZodNumber>;
262
+ count_ge150ms: z.ZodNumber;
263
+ }, z.core.$strict>;
264
+ acoustic_pause: z.ZodObject<{
265
+ count: z.ZodNumber;
266
+ median_s: z.ZodNullable<z.ZodNumber>;
267
+ p90_s: z.ZodNullable<z.ZodNumber>;
268
+ count_ge150ms: z.ZodNumber;
269
+ }, z.core.$strict>;
270
+ cut_safe: z.ZodObject<{
271
+ count: z.ZodNumber;
272
+ median_s: z.ZodNullable<z.ZodNumber>;
273
+ p90_s: z.ZodNullable<z.ZodNumber>;
274
+ count_ge150ms: z.ZodNumber;
275
+ }, z.core.$strict>;
276
+ acoustic_no_dip_count: z.ZodNumber;
277
+ acoustic_unconfirmed_count: z.ZodNumber;
278
+ }, z.core.$strict>;
279
+ comma: z.ZodObject<{
280
+ timestamp: z.ZodObject<{
281
+ count: z.ZodNumber;
282
+ median_s: z.ZodNullable<z.ZodNumber>;
283
+ p90_s: z.ZodNullable<z.ZodNumber>;
284
+ count_ge150ms: z.ZodNumber;
285
+ }, z.core.$strict>;
286
+ acoustic_pause: z.ZodObject<{
287
+ count: z.ZodNumber;
288
+ median_s: z.ZodNullable<z.ZodNumber>;
289
+ p90_s: z.ZodNullable<z.ZodNumber>;
290
+ count_ge150ms: z.ZodNumber;
291
+ }, z.core.$strict>;
292
+ cut_safe: z.ZodObject<{
293
+ count: z.ZodNumber;
294
+ median_s: z.ZodNullable<z.ZodNumber>;
295
+ p90_s: z.ZodNullable<z.ZodNumber>;
296
+ count_ge150ms: z.ZodNumber;
297
+ }, z.core.$strict>;
298
+ acoustic_no_dip_count: z.ZodNumber;
299
+ acoustic_unconfirmed_count: z.ZodNumber;
300
+ }, z.core.$strict>;
301
+ mid_phrase: z.ZodObject<{
302
+ timestamp: z.ZodObject<{
303
+ count: z.ZodNumber;
304
+ median_s: z.ZodNullable<z.ZodNumber>;
305
+ p90_s: z.ZodNullable<z.ZodNumber>;
306
+ count_ge150ms: z.ZodNumber;
307
+ }, z.core.$strict>;
308
+ acoustic_pause: z.ZodObject<{
309
+ count: z.ZodNumber;
310
+ median_s: z.ZodNullable<z.ZodNumber>;
311
+ p90_s: z.ZodNullable<z.ZodNumber>;
312
+ count_ge150ms: z.ZodNumber;
313
+ }, z.core.$strict>;
314
+ cut_safe: z.ZodObject<{
315
+ count: z.ZodNumber;
316
+ median_s: z.ZodNullable<z.ZodNumber>;
317
+ p90_s: z.ZodNullable<z.ZodNumber>;
318
+ count_ge150ms: z.ZodNumber;
319
+ }, z.core.$strict>;
320
+ acoustic_no_dip_count: z.ZodNumber;
321
+ acoustic_unconfirmed_count: z.ZodNumber;
322
+ }, z.core.$strict>;
323
+ }, z.core.$strict>;
324
+ long_pause_count: z.ZodNumber;
325
+ hinge: z.ZodObject<{
326
+ status: z.ZodEnum<{
327
+ measured: "measured";
328
+ not_evaluated: "not_evaluated";
329
+ }>;
330
+ sentence_share: z.ZodNullable<z.ZodNumber>;
331
+ evaluated_sentences: z.ZodNumber;
332
+ coverage: z.ZodNullable<z.ZodNumber>;
333
+ timestamp_sentence_share: z.ZodNullable<z.ZodNumber>;
334
+ median_position: z.ZodNullable<z.ZodNumber>;
335
+ median_seconds: z.ZodNullable<z.ZodNumber>;
336
+ }, z.core.$strict>;
337
+ pitch: z.ZodObject<{
338
+ status: z.ZodEnum<{
339
+ measured: "measured";
340
+ no_voiced_frames: "no_voiced_frames";
341
+ }>;
342
+ ceiling_hz: z.ZodNumber;
343
+ ceiling_basis: z.ZodEnum<{
344
+ configured: "configured";
345
+ default: "default";
346
+ low_f0: "low_f0";
347
+ }>;
348
+ median_hz: z.ZodNullable<z.ZodNumber>;
349
+ p10_hz: z.ZodNullable<z.ZodNumber>;
350
+ p90_hz: z.ZodNullable<z.ZodNumber>;
351
+ range_st: z.ZodNullable<z.ZodNumber>;
352
+ voiced_frames: z.ZodNumber;
353
+ }, z.core.$strict>;
354
+ loudness: z.ZodObject<{
355
+ status: z.ZodEnum<{
356
+ measured: "measured";
357
+ unmeasured: "unmeasured";
358
+ }>;
359
+ range_db_p10_p90: z.ZodNullable<z.ZodNumber>;
360
+ }, z.core.$strict>;
361
+ warnings: z.ZodArray<z.ZodEnum<{
362
+ background_music_present_f0_and_intensity_may_be_contaminated: "background_music_present_f0_and_intensity_may_be_contaminated";
363
+ no_sentence_terminal_punctuation_pace_uses_turn_spans: "no_sentence_terminal_punctuation_pace_uses_turn_spans";
364
+ }>>;
365
+ }, z.core.$strict>>;
366
+ }, z.core.$strict>>;
367
+ presenter_framing: z.ZodOptional<z.ZodEnum<{
368
+ close: "close";
369
+ wide: "wide";
370
+ }>>;
371
+ presenter_mic: z.ZodOptional<z.ZodBoolean>;
372
+ staging: z.ZodOptional<z.ZodObject<{
373
+ version: z.ZodLiteral<"reference-staging-v1">;
374
+ analysis_width: z.ZodNumber;
375
+ anchors: z.ZodArray<z.ZodObject<{
376
+ id: z.ZodString;
377
+ t_s: z.ZodNumber;
378
+ }, z.core.$strict>>;
379
+ elements: z.ZodArray<z.ZodObject<{
380
+ id: z.ZodString;
381
+ beat_index: z.ZodNumber;
382
+ graphic_index: z.ZodNullable<z.ZodNumber>;
383
+ kind: z.ZodEnum<{
384
+ before_after_split: "before_after_split";
385
+ callout: "callout";
386
+ checklist: "checklist";
387
+ compare: "compare";
388
+ end_card: "end_card";
389
+ insert_media: "insert_media";
390
+ layout_split: "layout_split";
391
+ lower_third: "lower_third";
392
+ notification: "notification";
393
+ other: "other";
394
+ overlay_media: "overlay_media";
395
+ particles: "particles";
396
+ phone_call: "phone_call";
397
+ product_ui: "product_ui";
398
+ progress: "progress";
399
+ quote: "quote";
400
+ rating: "rating";
401
+ screenshot: "screenshot";
402
+ split_screen: "split_screen";
403
+ stat: "stat";
404
+ tag: "tag";
405
+ title_card: "title_card";
406
+ toggle_checklist: "toggle_checklist";
407
+ unmapped: "unmapped";
408
+ }>;
409
+ rect_hold: z.ZodOptional<z.ZodObject<{
410
+ left: z.ZodNumber;
411
+ top: z.ZodNumber;
412
+ width: z.ZodNumber;
413
+ height: z.ZodNumber;
414
+ }, z.core.$strict>>;
415
+ rect_hold_face: z.ZodOptional<z.ZodObject<{
416
+ left: z.ZodNumber;
417
+ top: z.ZodNumber;
418
+ width: z.ZodNumber;
419
+ height: z.ZodNumber;
420
+ }, z.core.$strict>>;
421
+ rect_method: z.ZodOptional<z.ZodEnum<{
422
+ "cv-before-after/v1": "cv-before-after/v1";
423
+ "cv-cells/v1": "cv-cells/v1";
424
+ "cv-parallax/v1": "cv-parallax/v1";
425
+ "cv-template/v1": "cv-template/v1";
426
+ "vision-still": "vision-still";
427
+ "vision-video": "vision-video";
428
+ "yunet-native/v1": "yunet-native/v1";
429
+ }>>;
430
+ rects: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
+ t_s: z.ZodNumber;
432
+ rect: z.ZodObject<{
433
+ left: z.ZodNumber;
434
+ top: z.ZodNumber;
435
+ width: z.ZodNumber;
436
+ height: z.ZodNumber;
437
+ }, z.core.$strict>;
438
+ visible: z.ZodNumber;
439
+ }, z.core.$strict>>>;
440
+ entry: z.ZodOptional<z.ZodObject<{
441
+ first_visible_s: z.ZodOptional<z.ZodNumber>;
442
+ settled_s: z.ZodOptional<z.ZodNumber>;
443
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ id: z.ZodString;
445
+ offset_s: z.ZodNumber;
446
+ }, z.core.$strict>>>;
447
+ style: z.ZodOptional<z.ZodEnum<{
448
+ blur_in: "blur_in";
449
+ fade: "fade";
450
+ pop: "pop";
451
+ scale_up: "scale_up";
452
+ slide: "slide";
453
+ tilt_in: "tilt_in";
454
+ typewriter: "typewriter";
455
+ unknown: "unknown";
456
+ wipe: "wipe";
457
+ }>>;
458
+ from: z.ZodOptional<z.ZodEnum<{
459
+ bottom: "bottom";
460
+ left: "left";
461
+ lower_left: "lower_left";
462
+ lower_right: "lower_right";
463
+ none: "none";
464
+ right: "right";
465
+ top: "top";
466
+ upper_left: "upper_left";
467
+ upper_right: "upper_right";
468
+ }>>;
469
+ duration_s: z.ZodOptional<z.ZodNumber>;
470
+ displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
471
+ scale_from: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
472
+ method: z.ZodOptional<z.ZodEnum<{
473
+ "cv-before-after/v1": "cv-before-after/v1";
474
+ "cv-cells/v1": "cv-cells/v1";
475
+ "cv-parallax/v1": "cv-parallax/v1";
476
+ "cv-template/v1": "cv-template/v1";
477
+ "vision-still": "vision-still";
478
+ "vision-video": "vision-video";
479
+ "yunet-native/v1": "yunet-native/v1";
480
+ }>>;
481
+ }, z.core.$strict>>;
482
+ exit: z.ZodOptional<z.ZodObject<{
483
+ last_visible_s: z.ZodOptional<z.ZodNumber>;
484
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ offset_s: z.ZodNumber;
487
+ }, z.core.$strict>>>;
488
+ style: z.ZodOptional<z.ZodEnum<{
489
+ blur_in: "blur_in";
490
+ cut: "cut";
491
+ fade: "fade";
492
+ flash: "flash";
493
+ pop: "pop";
494
+ scale_up: "scale_up";
495
+ slide: "slide";
496
+ tilt_in: "tilt_in";
497
+ typewriter: "typewriter";
498
+ unknown: "unknown";
499
+ wipe: "wipe";
500
+ }>>;
501
+ to: z.ZodOptional<z.ZodEnum<{
502
+ bottom: "bottom";
503
+ left: "left";
504
+ lower_left: "lower_left";
505
+ lower_right: "lower_right";
506
+ none: "none";
507
+ right: "right";
508
+ top: "top";
509
+ upper_left: "upper_left";
510
+ upper_right: "upper_right";
511
+ }>>;
512
+ duration_s: z.ZodOptional<z.ZodNumber>;
513
+ displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
514
+ method: z.ZodOptional<z.ZodEnum<{
515
+ "cv-before-after/v1": "cv-before-after/v1";
516
+ "cv-cells/v1": "cv-cells/v1";
517
+ "cv-parallax/v1": "cv-parallax/v1";
518
+ "cv-template/v1": "cv-template/v1";
519
+ "vision-still": "vision-still";
520
+ "vision-video": "vision-video";
521
+ "yunet-native/v1": "yunet-native/v1";
522
+ }>>;
523
+ }, z.core.$strict>>;
524
+ layer: z.ZodOptional<z.ZodObject<{
525
+ value: z.ZodEnum<{
526
+ behind_presenter: "behind_presenter";
527
+ in_front_of_presenter: "in_front_of_presenter";
528
+ no_overlap: "no_overlap";
529
+ presenter_absent: "presenter_absent";
530
+ unknown: "unknown";
531
+ }>;
532
+ method: z.ZodEnum<{
533
+ "cv-before-after/v1": "cv-before-after/v1";
534
+ "cv-cells/v1": "cv-cells/v1";
535
+ "cv-parallax/v1": "cv-parallax/v1";
536
+ "cv-template/v1": "cv-template/v1";
537
+ "vision-still": "vision-still";
538
+ "vision-video": "vision-video";
539
+ "yunet-native/v1": "yunet-native/v1";
540
+ }>;
541
+ covered_by: z.ZodArray<z.ZodEnum<{
542
+ body: "body";
543
+ chair: "chair";
544
+ desk: "desk";
545
+ face: "face";
546
+ hair: "hair";
547
+ hand: "hand";
548
+ microphone: "microphone";
549
+ other: "other";
550
+ shoulder: "shoulder";
551
+ }>>;
552
+ face_clear: z.ZodOptional<z.ZodBoolean>;
553
+ face_core_cover_max: z.ZodOptional<z.ZodNumber>;
554
+ face_covered_share: z.ZodOptional<z.ZodNumber>;
555
+ blurs_presenter: z.ZodOptional<z.ZodBoolean>;
556
+ }, z.core.$strict>>;
557
+ motion: z.ZodOptional<z.ZodObject<{
558
+ kind: z.ZodOptional<z.ZodEnum<{
559
+ drift: "drift";
560
+ float: "float";
561
+ moves_with_frame: "moves_with_frame";
562
+ pushed: "pushed";
563
+ scale: "scale";
564
+ static: "static";
565
+ }>>;
566
+ drift_per_s: z.ZodOptional<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
567
+ scale_per_s: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
568
+ wobble: z.ZodOptional<z.ZodOptional<z.ZodObject<{
569
+ amplitude: z.ZodNumber;
570
+ period_s: z.ZodNumber;
571
+ }, z.core.$strict>>>;
572
+ }, z.core.$strict>>;
573
+ }, z.core.$strict>>;
574
+ freezes: z.ZodArray<z.ZodObject<{
575
+ start_s: z.ZodNumber;
576
+ end_s: z.ZodNumber;
577
+ anchors: z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ offset_s: z.ZodNumber;
580
+ }, z.core.$strict>>;
581
+ face_box_start: z.ZodObject<{
582
+ left: z.ZodNumber;
583
+ top: z.ZodNumber;
584
+ width: z.ZodNumber;
585
+ height: z.ZodNumber;
586
+ }, z.core.$strict>;
587
+ face_box_end: z.ZodObject<{
588
+ left: z.ZodNumber;
589
+ top: z.ZodNumber;
590
+ width: z.ZodNumber;
591
+ height: z.ZodNumber;
592
+ }, z.core.$strict>;
593
+ roll_deg: z.ZodNumber;
594
+ yaw: z.ZodNumber;
595
+ pitch: z.ZodNumber;
596
+ gaze: z.ZodOptional<z.ZodEnum<{
597
+ camera: "camera";
598
+ closed: "closed";
599
+ down: "down";
600
+ element: "element";
601
+ left: "left";
602
+ right: "right";
603
+ up_left: "up_left";
604
+ up_right: "up_right";
605
+ }>>;
606
+ head_roll: z.ZodEnum<{
607
+ left: "left";
608
+ right: "right";
609
+ upright: "upright";
610
+ }>;
611
+ expression: z.ZodOptional<z.ZodEnum<{
612
+ neutral: "neutral";
613
+ other: "other";
614
+ smile: "smile";
615
+ surprised: "surprised";
616
+ thinking: "thinking";
617
+ }>>;
618
+ hands: z.ZodOptional<z.ZodEnum<{
619
+ at_chest: "at_chest";
620
+ gesturing: "gesturing";
621
+ other: "other";
622
+ out_of_frame: "out_of_frame";
623
+ }>>;
624
+ frame_motion: z.ZodOptional<z.ZodObject<{
625
+ scale_end: z.ZodNumber;
626
+ centre_shift: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
627
+ }, z.core.$strict>>;
628
+ ends_with: z.ZodEnum<{
629
+ cut: "cut";
630
+ end: "end";
631
+ flash: "flash";
632
+ unfreeze: "unfreeze";
633
+ }>;
634
+ }, z.core.$strict>>;
635
+ }, z.core.$strict>>;
636
+ }, z.core.$strict>>;
637
+ warnings: z.ZodArray<z.ZodString>;
638
+ error: z.ZodNullable<z.ZodObject<{
639
+ code: z.ZodEnum<{
640
+ analysis_failed: "analysis_failed";
641
+ asset_gone: "asset_gone";
642
+ enqueue_failed: "enqueue_failed";
643
+ timed_out: "timed_out";
644
+ }>;
645
+ message: z.ZodString;
646
+ }, z.core.$strict>>;
647
+ credits_reserved: z.ZodNumber;
648
+ credits_charged: z.ZodNullable<z.ZodNumber>;
649
+ balance_after_credits: z.ZodNullable<z.ZodNumber>;
650
+ created_at: z.ZodString;
651
+ finished_at: z.ZodNullable<z.ZodString>;
652
+ }, z.core.$strict>;
653
+ export type ReferenceAnalysis = z.infer<typeof referenceAnalysis>;
654
+ export declare const analysisQuoteResponse: z.ZodObject<{
655
+ asset_id: z.ZodString;
656
+ credits_estimate: z.ZodNumber;
657
+ replays_analysis_id: z.ZodNullable<z.ZodString>;
658
+ warnings: z.ZodArray<z.ZodString>;
659
+ }, z.core.$strict>;
660
+ export type AnalysisQuoteResponse = z.infer<typeof analysisQuoteResponse>;
661
+ /** What a client reads: a new state, error code or profile field must not break an installed client. */
662
+ export declare const referenceAnalysisRead: z.ZodObject<{
663
+ analysis_id: z.ZodString;
664
+ asset_id: z.ZodString;
665
+ warnings: z.ZodArray<z.ZodString>;
666
+ created_at: z.ZodString;
667
+ finished_at: z.ZodNullable<z.ZodString>;
668
+ state: z.ZodString;
669
+ reference_profile: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ error: z.ZodNullable<z.ZodObject<{
671
+ code: z.ZodString;
672
+ message: z.ZodString;
673
+ }, z.core.$strip>>;
674
+ credits_reserved: z.ZodOptional<z.ZodNumber>;
675
+ credits_charged: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
676
+ balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
677
+ }, z.core.$strict>;
678
+ export type ReferenceAnalysisRead = z.infer<typeof referenceAnalysisRead>;
679
+ /** Rule 3: every element we cannot draw is said in `warnings[]` too, not only inside the profile. */
680
+ export declare function referenceAnalysisWarnings(profile: ReferenceProfile): string[];
681
+ export declare const ANALYZE_REFERENCE_DESCRIPTION: string;
682
+ export declare const GET_REFERENCE_ANALYSIS_DESCRIPTION: string;
683
+ export declare const QUOTE_ANALYSIS_DESCRIPTION: string;