@clipwright/core 0.36.0 → 0.37.1

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 (88) hide show
  1. package/dist/actors.d.ts +8 -0
  2. package/dist/actors.js +2 -0
  3. package/dist/actors.js.map +1 -1
  4. package/dist/caption-geometry.d.ts +43 -0
  5. package/dist/caption-geometry.js +41 -0
  6. package/dist/caption-geometry.js.map +1 -0
  7. package/dist/contract-dispositions.d.ts +997 -35
  8. package/dist/contract-dispositions.js +25 -5
  9. package/dist/contract-dispositions.js.map +1 -1
  10. package/dist/contracts/v1/workflow-brief.d.ts +2024 -38
  11. package/dist/contracts/v1/workflow-brief.js +2 -2
  12. package/dist/contracts/v1/workflow-brief.js.map +1 -1
  13. package/dist/contracts/v1/workflow-catalog.d.ts +2154 -72
  14. package/dist/contracts/v1/workflow-client.d.ts +1207 -70
  15. package/dist/contracts/v1/workflow-plan.d.ts +3234 -111
  16. package/dist/edit-billing.d.ts +1 -0
  17. package/dist/edit-billing.js +2 -0
  18. package/dist/edit-billing.js.map +1 -1
  19. package/dist/edit-document.d.ts +22 -0
  20. package/dist/edit-document.js +3 -0
  21. package/dist/edit-document.js.map +1 -1
  22. package/dist/edit-long-form.js +1 -1
  23. package/dist/edit-long-form.js.map +1 -1
  24. package/dist/edit-revision.d.ts +9 -0
  25. package/dist/edit-rules.d.ts +1 -0
  26. package/dist/edit-rules.js +3 -0
  27. package/dist/edit-rules.js.map +1 -1
  28. package/dist/edit-shots.d.ts +2 -0
  29. package/dist/edit-validate.d.ts +4 -2
  30. package/dist/edit-validate.js +18 -2
  31. package/dist/edit-validate.js.map +1 -1
  32. package/dist/errors.d.ts +1 -0
  33. package/dist/faceless-media-record.d.ts +27 -0
  34. package/dist/faceless-media-record.js +15 -1
  35. package/dist/faceless-media-record.js.map +1 -1
  36. package/dist/faceless-public.d.ts +107 -0
  37. package/dist/faceless-public.js +34 -1
  38. package/dist/faceless-public.js.map +1 -1
  39. package/dist/index.d.ts +4 -0
  40. package/dist/index.js +4 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/long-form-revision.d.ts +8 -0
  43. package/dist/openapi.js +2 -2
  44. package/dist/openapi.js.map +1 -1
  45. package/dist/presenter-beats.d.ts +1 -1
  46. package/dist/reference-analysis.d.ts +436 -75
  47. package/dist/reference-analysis.js +149 -28
  48. package/dist/reference-analysis.js.map +1 -1
  49. package/dist/reference-display.d.ts +36 -0
  50. package/dist/reference-display.js +78 -0
  51. package/dist/reference-display.js.map +1 -0
  52. package/dist/reference-profile.d.ts +2352 -36
  53. package/dist/reference-profile.js +138 -10
  54. package/dist/reference-profile.js.map +1 -1
  55. package/dist/reference-staging.d.ts +59 -57
  56. package/dist/reference-staging.js +6 -5
  57. package/dist/reference-staging.js.map +1 -1
  58. package/dist/resolved-timeline.d.ts +199 -2
  59. package/dist/resolved-timeline.js +17 -5
  60. package/dist/resolved-timeline.js.map +1 -1
  61. package/dist/scene-place.d.ts +225 -0
  62. package/dist/scene-place.js +120 -0
  63. package/dist/scene-place.js.map +1 -0
  64. package/dist/skills.d.ts +4680 -22
  65. package/dist/skills.js +150 -17
  66. package/dist/skills.js.map +1 -1
  67. package/dist/templates/index.d.ts +14 -4
  68. package/dist/templates/index.js +49 -5
  69. package/dist/templates/index.js.map +1 -1
  70. package/dist/ugc-interview.d.ts +122 -0
  71. package/dist/ugc-interview.js +260 -0
  72. package/dist/ugc-interview.js.map +1 -0
  73. package/dist/ugc-layers.d.ts +88 -6
  74. package/dist/ugc-layers.js +193 -5
  75. package/dist/ugc-layers.js.map +1 -1
  76. package/dist/voice-admission.d.ts +947 -2
  77. package/dist/workflows/methods/faceless-explainer.d.ts +599 -13
  78. package/dist/workflows/methods/kinetic-launch.d.ts +599 -13
  79. package/dist/workflows/methods/product-image-story.d.ts +599 -13
  80. package/dist/workflows/methods/reference-remake.d.ts +599 -13
  81. package/dist/workflows/methods/shared.d.ts +599 -13
  82. package/dist/workflows/methods/ugc-faq-answer.d.ts +599 -13
  83. package/dist/workflows/methods/ugc-product-intro.d.ts +599 -13
  84. package/dist/workflows/methods/website-proof-demo.d.ts +599 -13
  85. package/dist/workflows/reference-remake.d.ts +131 -35
  86. package/dist/workflows/reference-remake.js +179 -18
  87. package/dist/workflows/reference-remake.js.map +1 -1
  88. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type ReferenceProfile } from "./reference-profile.js";
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,15 +9,18 @@ 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
+ /** 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;
12
15
  /** The price of a delivered analysis. */
13
16
  export declare const REFERENCE_ANALYSIS_CREDITS = 70;
14
- /** The data mode: metrics, transcript and a frame sheet without the vision pass. */
17
+ /** The data mode: metrics, transcript and a frame sheet without beats or graphics. */
15
18
  export declare const REFERENCE_DATA_CREDITS = 10;
16
19
  /** `full` reads the reference into a profile; `data` hands back its numbers, words and a frame sheet, with no vision call. */
17
20
  export declare const REFERENCE_ANALYSIS_MODES: readonly ["full", "data"];
18
21
  export type ReferenceAnalysisMode = (typeof REFERENCE_ANALYSIS_MODES)[number];
19
22
  export declare const REFERENCE_ANALYSIS_MODE_CREDITS: Readonly<Record<ReferenceAnalysisMode, number>>;
20
- /** New analyses per account per hour: each costs us vendor money even when it fails, so the cap stays beside the price. */
23
+ /** New analyses per account per hour. */
21
24
  export declare const REFERENCE_ANALYSIS_PER_HOUR = 10;
22
25
  /** The data mode's own cap, scope `reference_data`: cheap enough to run on every candidate reel of a search (#921). */
23
26
  export declare const REFERENCE_DATA_PER_HOUR = 60;
@@ -66,6 +69,8 @@ export declare const analyzeReferenceRequest: z.ZodObject<{
66
69
  }>>;
67
70
  }, z.core.$strict>;
68
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;
69
74
  /** The post behind a link analysis (#930 S3): `null` is unknown, never 0, and each unknown is also a line in `warnings[]`. */
70
75
  export declare const referenceSource: z.ZodObject<{
71
76
  url: z.ZodString;
@@ -81,8 +86,21 @@ export declare const referenceSource: z.ZodObject<{
81
86
  views: z.ZodNullable<z.ZodNumber>;
82
87
  likes: z.ZodNullable<z.ZodNumber>;
83
88
  comments: z.ZodNullable<z.ZodNumber>;
89
+ shares: z.ZodNullable<z.ZodNumber>;
84
90
  views_per_hour: z.ZodNullable<z.ZodNumber>;
91
+ age_hours: z.ZodNullable<z.ZodNumber>;
92
+ comment_rate: z.ZodNullable<z.ZodNumber>;
85
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>>;
86
104
  author_median: z.ZodNullable<z.ZodObject<{
87
105
  views: z.ZodNullable<z.ZodNumber>;
88
106
  ratio: z.ZodNullable<z.ZodNumber>;
@@ -95,6 +113,7 @@ export declare const referenceSource: z.ZodObject<{
95
113
  reels: z.ZodNumber;
96
114
  window: z.ZodString;
97
115
  }, z.core.$strict>>;
116
+ comments_read: z.ZodNullable<z.ZodNumber>;
98
117
  top_comments: z.ZodArray<z.ZodObject<{
99
118
  text: z.ZodString;
100
119
  likes: z.ZodNullable<z.ZodNumber>;
@@ -103,6 +122,11 @@ export declare const referenceSource: z.ZodObject<{
103
122
  word: z.ZodString;
104
123
  count: z.ZodNumber;
105
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>>;
106
130
  }, z.core.$strict>;
107
131
  export type ReferenceSource = z.infer<typeof referenceSource>;
108
132
  /** What a succeeded data analysis hands back (#930 S4): the probe, the transcribed words as the profile writes them, and a frame sheet. */
@@ -113,11 +137,32 @@ export declare const referenceData: z.ZodObject<{
113
137
  end_s: z.ZodNumber;
114
138
  speaker: z.ZodOptional<z.ZodString>;
115
139
  }, z.core.$strict>>;
140
+ transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
141
  hook: z.ZodNullable<z.ZodObject<{
117
142
  text: z.ZodString;
118
143
  end_s: z.ZodNumber;
119
144
  caption: z.ZodOptional<z.ZodString>;
120
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>>>;
121
166
  duration_s: z.ZodNumber;
122
167
  width: z.ZodNumber;
123
168
  height: z.ZodNumber;
@@ -130,54 +175,149 @@ export declare const referenceData: z.ZodObject<{
130
175
  }, z.core.$strict>;
131
176
  }, z.core.$strict>;
132
177
  export type ReferenceData = z.infer<typeof referenceData>;
133
- /** What the data pass answers: the words, the sheet it uploaded and its warnings. */
134
- export declare const referenceDataPass: z.ZodObject<{
135
- transcript: z.ZodArray<z.ZodObject<{
136
- text: z.ZodString;
137
- start_s: z.ZodNumber;
138
- end_s: z.ZodNumber;
139
- speaker: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strict>>;
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
- frame_sheet: z.ZodObject<{
178
+ /** The data answer's parts, for the record the analysis keeps. */
179
+ export declare const referenceDataParts: {
180
+ frameSheet: z.ZodObject<{
147
181
  columns: z.ZodNumber;
148
182
  rows: z.ZodNumber;
149
183
  times_s: z.ZodArray<z.ZodNumber>;
150
184
  }, z.core.$strict>;
151
- cost_usd: z.ZodNumber;
152
- warnings: z.ZodArray<z.ZodString>;
153
- }, z.core.$strict>;
154
- export type ReferenceDataPass = z.infer<typeof referenceDataPass>;
155
- /** The row's `data`: the answer with the sheet's R2 key in place of its link, and our vendor cost, which no client reads. */
156
- export declare const referenceDataStored: z.ZodObject<{
157
- transcript: z.ZodArray<z.ZodObject<{
158
- text: z.ZodString;
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<{
159
250
  start_s: z.ZodNumber;
160
251
  end_s: z.ZodNumber;
161
- speaker: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strict>>;
163
- hook: z.ZodNullable<z.ZodObject<{
164
- text: z.ZodString;
165
- end_s: z.ZodNumber;
166
- caption: z.ZodOptional<z.ZodString>;
252
+ key_frame_s: z.ZodNumber;
167
253
  }, z.core.$strict>>;
168
- duration_s: z.ZodNumber;
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>;
169
262
  width: z.ZodNumber;
170
263
  height: z.ZodNumber;
171
- fps: z.ZodNumber;
172
- frame_sheet: z.ZodObject<{
173
- columns: z.ZodNumber;
174
- rows: z.ZodNumber;
175
- times_s: z.ZodArray<z.ZodNumber>;
176
- key: z.ZodString;
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>>;
177
272
  }, z.core.$strict>;
178
- cost_usd: z.ZodNumber;
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
+ }>>;
179
319
  }, z.core.$strict>;
180
- export type ReferenceDataStored = z.infer<typeof referenceDataStored>;
320
+ export type ReferenceAnalysisQuery = z.infer<typeof referenceAnalysisQuery>;
181
321
  export declare const referenceAnalysis: z.ZodObject<{
182
322
  analysis_id: z.ZodString;
183
323
  asset_id: z.ZodString;
@@ -346,6 +486,43 @@ export declare const referenceAnalysis: z.ZodObject<{
346
486
  reacting: "reacting";
347
487
  speaking: "speaking";
348
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>>>;
349
526
  }, z.core.$strict>>;
350
527
  captions: z.ZodObject<{
351
528
  present: z.ZodBoolean;
@@ -363,6 +540,12 @@ export declare const referenceAnalysis: z.ZodObject<{
363
540
  punch: "punch";
364
541
  }>;
365
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>>;
366
549
  }, z.core.$strict>;
367
550
  pacing: z.ZodObject<{
368
551
  layer_change_every_s: z.ZodNumber;
@@ -375,12 +558,6 @@ export declare const referenceAnalysis: z.ZodObject<{
375
558
  beat_index: z.ZodNumber;
376
559
  suggested_substitute: z.ZodString;
377
560
  }, z.core.$strict>>;
378
- analysis: z.ZodObject<{
379
- models: z.ZodArray<z.ZodString>;
380
- cost_usd: z.ZodOptional<z.ZodNumber>;
381
- latency_ms: z.ZodNumber;
382
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
- }, z.core.$strict>;
384
561
  voice: z.ZodOptional<z.ZodObject<{
385
562
  version: z.ZodLiteral<"voice-profile-v1">;
386
563
  method: z.ZodObject<{
@@ -577,13 +754,13 @@ export declare const referenceAnalysis: z.ZodObject<{
577
754
  height: z.ZodNumber;
578
755
  }, z.core.$strict>>;
579
756
  rect_method: z.ZodOptional<z.ZodEnum<{
580
- "cv-before-after/v1": "cv-before-after/v1";
581
- "cv-cells/v1": "cv-cells/v1";
582
- "cv-parallax/v1": "cv-parallax/v1";
583
- "cv-template/v1": "cv-template/v1";
584
- "vision-still": "vision-still";
585
- "vision-video": "vision-video";
586
- "yunet-native/v1": "yunet-native/v1";
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";
587
764
  }>>;
588
765
  rects: z.ZodOptional<z.ZodArray<z.ZodObject<{
589
766
  t_s: z.ZodNumber;
@@ -628,13 +805,13 @@ export declare const referenceAnalysis: z.ZodObject<{
628
805
  displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
629
806
  scale_from: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
630
807
  method: z.ZodOptional<z.ZodEnum<{
631
- "cv-before-after/v1": "cv-before-after/v1";
632
- "cv-cells/v1": "cv-cells/v1";
633
- "cv-parallax/v1": "cv-parallax/v1";
634
- "cv-template/v1": "cv-template/v1";
635
- "vision-still": "vision-still";
636
- "vision-video": "vision-video";
637
- "yunet-native/v1": "yunet-native/v1";
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";
638
815
  }>>;
639
816
  }, z.core.$strict>>;
640
817
  exit: z.ZodOptional<z.ZodObject<{
@@ -670,13 +847,13 @@ export declare const referenceAnalysis: z.ZodObject<{
670
847
  duration_s: z.ZodOptional<z.ZodNumber>;
671
848
  displacement: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
672
849
  method: z.ZodOptional<z.ZodEnum<{
673
- "cv-before-after/v1": "cv-before-after/v1";
674
- "cv-cells/v1": "cv-cells/v1";
675
- "cv-parallax/v1": "cv-parallax/v1";
676
- "cv-template/v1": "cv-template/v1";
677
- "vision-still": "vision-still";
678
- "vision-video": "vision-video";
679
- "yunet-native/v1": "yunet-native/v1";
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";
680
857
  }>>;
681
858
  }, z.core.$strict>>;
682
859
  layer: z.ZodOptional<z.ZodObject<{
@@ -688,13 +865,13 @@ export declare const referenceAnalysis: z.ZodObject<{
688
865
  unknown: "unknown";
689
866
  }>;
690
867
  method: z.ZodEnum<{
691
- "cv-before-after/v1": "cv-before-after/v1";
692
- "cv-cells/v1": "cv-cells/v1";
693
- "cv-parallax/v1": "cv-parallax/v1";
694
- "cv-template/v1": "cv-template/v1";
695
- "vision-still": "vision-still";
696
- "vision-video": "vision-video";
697
- "yunet-native/v1": "yunet-native/v1";
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";
698
875
  }>;
699
876
  covered_by: z.ZodArray<z.ZodEnum<{
700
877
  body: "body";
@@ -797,11 +974,70 @@ export declare const referenceAnalysis: z.ZodObject<{
797
974
  end_s: z.ZodNumber;
798
975
  speaker: z.ZodOptional<z.ZodString>;
799
976
  }, z.core.$strict>>>;
977
+ transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
978
  hook: z.ZodOptional<z.ZodObject<{
801
979
  text: z.ZodString;
802
980
  end_s: z.ZodNumber;
803
981
  caption: z.ZodOptional<z.ZodString>;
804
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>;
805
1041
  }, z.core.$strict>>;
806
1042
  data: z.ZodNullable<z.ZodObject<{
807
1043
  transcript: z.ZodArray<z.ZodObject<{
@@ -810,11 +1046,32 @@ export declare const referenceAnalysis: z.ZodObject<{
810
1046
  end_s: z.ZodNumber;
811
1047
  speaker: z.ZodOptional<z.ZodString>;
812
1048
  }, z.core.$strict>>;
1049
+ transcript_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
813
1050
  hook: z.ZodNullable<z.ZodObject<{
814
1051
  text: z.ZodString;
815
1052
  end_s: z.ZodNumber;
816
1053
  caption: z.ZodOptional<z.ZodString>;
817
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>>>;
818
1075
  duration_s: z.ZodNumber;
819
1076
  width: z.ZodNumber;
820
1077
  height: z.ZodNumber;
@@ -840,8 +1097,21 @@ export declare const referenceAnalysis: z.ZodObject<{
840
1097
  views: z.ZodNullable<z.ZodNumber>;
841
1098
  likes: z.ZodNullable<z.ZodNumber>;
842
1099
  comments: z.ZodNullable<z.ZodNumber>;
1100
+ shares: z.ZodNullable<z.ZodNumber>;
843
1101
  views_per_hour: z.ZodNullable<z.ZodNumber>;
1102
+ age_hours: z.ZodNullable<z.ZodNumber>;
1103
+ comment_rate: z.ZodNullable<z.ZodNumber>;
844
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>>;
845
1115
  author_median: z.ZodNullable<z.ZodObject<{
846
1116
  views: z.ZodNullable<z.ZodNumber>;
847
1117
  ratio: z.ZodNullable<z.ZodNumber>;
@@ -854,6 +1124,7 @@ export declare const referenceAnalysis: z.ZodObject<{
854
1124
  reels: z.ZodNumber;
855
1125
  window: z.ZodString;
856
1126
  }, z.core.$strict>>;
1127
+ comments_read: z.ZodNullable<z.ZodNumber>;
857
1128
  top_comments: z.ZodArray<z.ZodObject<{
858
1129
  text: z.ZodString;
859
1130
  likes: z.ZodNullable<z.ZodNumber>;
@@ -862,7 +1133,61 @@ export declare const referenceAnalysis: z.ZodObject<{
862
1133
  word: z.ZodString;
863
1134
  count: z.ZodNumber;
864
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>>;
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>>;
865
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>;
866
1191
  warnings: z.ZodArray<z.ZodString>;
867
1192
  error: z.ZodNullable<z.ZodObject<{
868
1193
  code: z.ZodEnum<{
@@ -878,6 +1203,31 @@ export declare const referenceAnalysis: z.ZodObject<{
878
1203
  balance_after_credits: z.ZodNullable<z.ZodNumber>;
879
1204
  created_at: z.ZodString;
880
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>;
881
1231
  }, z.core.$strict>;
882
1232
  export type ReferenceAnalysis = z.infer<typeof referenceAnalysis>;
883
1233
  export declare const analysisQuoteResponse: z.ZodObject<{
@@ -894,6 +1244,8 @@ export declare const referenceAnalysisRead: z.ZodObject<{
894
1244
  warnings: z.ZodArray<z.ZodString>;
895
1245
  created_at: z.ZodString;
896
1246
  finished_at: z.ZodNullable<z.ZodString>;
1247
+ display_markdown: z.ZodOptional<z.ZodString>;
1248
+ display_hint: z.ZodOptional<z.ZodString>;
897
1249
  state: z.ZodString;
898
1250
  reference_profile: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
1251
  error: z.ZodNullable<z.ZodObject<{
@@ -903,13 +1255,22 @@ export declare const referenceAnalysisRead: z.ZodObject<{
903
1255
  source: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
904
1256
  mode: z.ZodOptional<z.ZodString>;
905
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>>;
906
1267
  credits_reserved: z.ZodOptional<z.ZodNumber>;
907
1268
  credits_charged: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
908
1269
  balance_after_credits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
1270
  }, z.core.$strict>;
910
1271
  export type ReferenceAnalysisRead = z.infer<typeof referenceAnalysisRead>;
911
1272
  /** Rule 3: every element we cannot draw is said in `warnings[]` too, not only inside the profile. */
912
- export declare function referenceAnalysisWarnings(profile: ReferenceProfile): string[];
1273
+ export declare function referenceAnalysisWarnings(profile: Pick<ReferenceProfileAnswer, "unmapped" | "analysis">): string[];
913
1274
  export declare const ANALYZE_REFERENCE_DESCRIPTION: string;
914
1275
  export declare const GET_REFERENCE_ANALYSIS_DESCRIPTION: string;
915
1276
  export declare const QUOTE_ANALYSIS_DESCRIPTION: string;