@nivaro/react 0.2.24 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -205,12 +205,6 @@ declare interface Annotation {
205
205
  * a `spotlight` dims the whole frame except its rect. */
206
206
  declare type AnnotationType = 'callout' | 'arrow' | 'box' | 'ripple' | 'step' | 'spotlight';
207
207
 
208
- /**
209
- * Admin-authored announcement banners ("maintenance Friday 6pm") — polled
210
- * every minute, role/window-filtered server-side, dismiss = acknowledge
211
- * (stays gone for that user, admins see ack counts). Mount once per app
212
- * shell; renders nothing when there is nothing to say.
213
- */
214
208
  export declare function AnnouncementBanner(): JSX.Element | null;
215
209
 
216
210
  declare interface AnomalyDefinition {
@@ -527,6 +521,10 @@ export declare interface BaseMapPin {
527
521
  * holders count; the mode ends when the last one releases. */
528
522
  export declare function beginCleanRecording(): () => void;
529
523
 
524
+ /** Marks the page as being recorded until the returned release runs
525
+ * (idempotent; nested holders count, like beginCleanRecording). */
526
+ export declare function beginRecordingScreen(): () => void;
527
+
530
528
  declare type BinaryOp = '+' | '-' | '*' | '/' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '&&' | '||';
531
529
 
532
530
  declare interface Blur {
@@ -620,6 +618,37 @@ declare interface Caption {
620
618
  text: string;
621
619
  }
622
620
 
621
+ /** The automatic-captions job of the draft version (#1520), as GET
622
+ * /help-videos/:id/captions/generate answers it. Mirrors
623
+ * api/src/services/help-video-captions.ts. */
624
+ declare interface CaptionJob {
625
+ version_id: string;
626
+ video_id: string;
627
+ status: 'queued' | 'running' | 'done' | 'failed';
628
+ requested_by: string | null;
629
+ requested_at: string;
630
+ started_at?: string;
631
+ finished_at?: string;
632
+ phase?: 'extracting' | 'transcribing' | 'grouping';
633
+ provider?: 'gateway' | 'local';
634
+ model?: string;
635
+ /** The pending suggestion set (done only), in source time. */
636
+ captions?: Caption[];
637
+ words?: number;
638
+ audio_ms?: number;
639
+ error?: string;
640
+ }
641
+
642
+ declare interface CaptionJobStatus {
643
+ job: CaptionJob | null;
644
+ /** Which transcriber this server would use, or why none. */
645
+ provider: {
646
+ kind: 'gateway' | 'local' | 'none';
647
+ model: string | null;
648
+ reason: string | null;
649
+ };
650
+ }
651
+
623
652
  /** How captions look in the player (#1529), remembered per person. */
624
653
  declare interface CaptionStyle {
625
654
  size: 's' | 'm' | 'l' | 'xl';
@@ -1099,6 +1128,33 @@ declare interface ClientAction {
1099
1128
  itemId: string;
1100
1129
  }
1101
1130
 
1131
+ /** A short clip or GIF of a video (#1562), as GET /help-videos/:id/clips lists it. */
1132
+ declare interface ClipDto {
1133
+ id: string;
1134
+ video_id: string;
1135
+ version_id: string | null;
1136
+ kind: ClipKind;
1137
+ status: ClipStatus;
1138
+ progress: number | null;
1139
+ error: string | null;
1140
+ /** Edited time of the version it was cut from. */
1141
+ start_ms: number;
1142
+ end_ms: number;
1143
+ label: string | null;
1144
+ bytes: number | null;
1145
+ width: number | null;
1146
+ height: number | null;
1147
+ /** The ticketed file, relative to the API origin, once ready (add
1148
+ * `&download=1` to save it); null until then. */
1149
+ url: string | null;
1150
+ created_by: string | null;
1151
+ created_at: string;
1152
+ }
1153
+
1154
+ declare type ClipKind = 'mp4' | 'gif';
1155
+
1156
+ declare type ClipStatus = 'queued' | 'rendering' | 'ready' | 'failed';
1157
+
1102
1158
  export declare function CloneDialog({ collection, itemId, fields, relations, currentValues, onSuccess }: CloneDialogProps): JSX.Element;
1103
1159
 
1104
1160
  declare interface CloneDialogProps {
@@ -1394,6 +1450,13 @@ export declare function CronBuilder({ value, onChange, disabled }: {
1394
1450
  disabled?: boolean;
1395
1451
  }): JSX.Element;
1396
1452
 
1453
+ /** The cursor switches (#1517): only `{ show: true }` (plus `shortcuts: true`)
1454
+ * is ever stored; off = the key is absent. */
1455
+ declare interface CursorEdits {
1456
+ show: true;
1457
+ shortcuts?: true;
1458
+ }
1459
+
1397
1460
  export declare function CustomActionButtons({ collection, itemId, draft }: {
1398
1461
  collection: string;
1399
1462
  itemId: string;
@@ -1780,6 +1843,40 @@ declare interface DownloadUrls {
1780
1843
  captions_srt: string | null;
1781
1844
  }
1782
1845
 
1846
+ /**
1847
+ * One suggestion of the AI first draft (#1487, POST /help-videos/:id/draft/
1848
+ * suggest). Ids are stable for the same content; nothing is applied until
1849
+ * the author accepts it in the editor. Mirrors api/src/services/help-video-draft.ts.
1850
+ */
1851
+ declare type DraftSuggestion = {
1852
+ id: string;
1853
+ kind: 'title';
1854
+ text: string;
1855
+ } | {
1856
+ id: string;
1857
+ kind: 'description';
1858
+ text: string;
1859
+ } | {
1860
+ id: string;
1861
+ kind: 'chapter';
1862
+ chapter: Chapter;
1863
+ } | {
1864
+ id: string;
1865
+ kind: 'callout';
1866
+ annotation: Annotation;
1867
+ click_index: number;
1868
+ } | {
1869
+ id: string;
1870
+ kind: 'context';
1871
+ context: HelpVideoContext;
1872
+ label: string;
1873
+ };
1874
+
1875
+ declare interface DraftSuggestions {
1876
+ suggestions: DraftSuggestion[];
1877
+ model: string | null;
1878
+ }
1879
+
1783
1880
  declare type DrawerRelationConfig = string | {
1784
1881
  field: string;
1785
1882
  hint?: {
@@ -2582,6 +2679,19 @@ export declare interface HeaderWidgetInfo {
2582
2679
  inputBindings: InputBinding[];
2583
2680
  }
2584
2681
 
2682
+ /** GET /help-videos/:id/analytics (authors). */
2683
+ declare interface HelpVideoAnalytics {
2684
+ views: number;
2685
+ unique_viewers: number;
2686
+ completion_rate: number;
2687
+ /** Share of viewers who reached each 5% section (20 values). */
2688
+ drop_off: number[];
2689
+ watched_hours: number;
2690
+ /** Absent on older servers. */
2691
+ ratings?: HelpVideoRatingSummary;
2692
+ questions?: HelpVideoQuestion[];
2693
+ }
2694
+
2585
2695
  /** Every mutation, as plain functions over the client. */
2586
2696
  export declare function helpVideoApi(client: NivaroClient): {
2587
2697
  create: (body: {
@@ -2630,13 +2740,30 @@ export declare function helpVideoApi(client: NivaroClient): {
2630
2740
  completed: boolean;
2631
2741
  };
2632
2742
  } | undefined>;
2633
- analytics: (id: string) => Promise<{
2634
- views: number;
2635
- unique_viewers: number;
2636
- completion_rate: number;
2637
- drop_off: number[];
2638
- watched_hours: number;
2743
+ analytics: (id: string) => Promise<HelpVideoAnalytics>;
2744
+ /** "Was this helpful?" — one vote per person per video, changeable. 403
2745
+ * HELP_VIDEO_MASQUERADE while viewing as someone else. */
2746
+ rate: (id: string, helpful: boolean) => Promise<{
2747
+ helpful: boolean;
2639
2748
  }>;
2749
+ /** This person's questions on the video (authors: everyone's, with who
2750
+ * asked) and their own vote (null = none yet). */
2751
+ questions: (id: string) => Promise<{
2752
+ questions: HelpVideoQuestion[];
2753
+ my_rating: boolean | null;
2754
+ }>;
2755
+ /** Asks a question at a moment (edited time); text ≤ 1000 characters
2756
+ * (400 HELP_VIDEO_QUESTION_INVALID). The authors are notified. */
2757
+ ask: (id: string, body: {
2758
+ at_ms: number;
2759
+ text: string;
2760
+ }) => Promise<HelpVideoQuestion>;
2761
+ /** Authors: answers a question (≤ 2000 characters); the asker is notified. */
2762
+ answer: (id: string, questionId: string, answer: string) => Promise<HelpVideoQuestion>;
2763
+ /** Up to five published videos to watch after this one: what people in
2764
+ * this person's role watched next, then anyone, then the same screen;
2765
+ * never one this person has finished. */
2766
+ next: (id: string) => Promise<HelpVideoDto[]>;
2640
2767
  openUpload: (mime: string) => Promise<{
2641
2768
  id: string;
2642
2769
  next_part: number;
@@ -2672,6 +2799,14 @@ export declare function helpVideoApi(client: NivaroClient): {
2672
2799
  * `i * 100` ms. Null without a microphone.
2673
2800
  * - `activity` (optional): `{ kind: 'typing' | 'idle', start_ms, end_ms }`
2674
2801
  * spans on the recorded tab — never what was typed. Null when not captured.
2802
+ * - `pointer` (optional, #1517): `{ samples: [{ t_ms, x, y }], shortcuts:
2803
+ * [{ t_ms, keys }] }` — where the pointer went (sampled ~20 times a
2804
+ * second while it moved) and the keyboard shortcuts pressed (`Meta+S`,
2805
+ * `Ctrl+K`, `Enter`…), never text typed into a field. Null when not captured.
2806
+ * - `script` and `marks` (optional, #1491): the steps the author wrote
2807
+ * before recording (≤ 60 of ≤ 200 chars) and `{ t_ms, step }` per Next
2808
+ * press, in recording time; the first draft gets a chapter per marked
2809
+ * step (the first at 0) and keeps the script for a re-record.
2675
2810
  * Matches `HelpVideoVersion.clicks` / `.levels` in @nivaro/sdk.
2676
2811
  * 422 UPLOAD_TOO_LONG past 31 minutes, 409 UPLOAD_CLOSED when finished.
2677
2812
  */
@@ -2680,6 +2815,9 @@ export declare function helpVideoApi(client: NivaroClient): {
2680
2815
  clicks: RecordedClick[] | null;
2681
2816
  levels: number[] | null;
2682
2817
  activity?: ActivitySpan[] | null;
2818
+ pointer?: PointerPath | null;
2819
+ script?: string[] | null;
2820
+ marks?: RecordedMark[] | null;
2683
2821
  }) => Promise<{
2684
2822
  file_id: string;
2685
2823
  duration_ms: number | null;
@@ -2703,7 +2841,38 @@ export declare function helpVideoApi(client: NivaroClient): {
2703
2841
  /** Imports an Openverse track as this video's music (the same track twice
2704
2842
  * is kept once). 422 OPENVERSE_LICENSE when it is no longer CC0. */
2705
2843
  importOpenverse: (id: string, openverseId: string) => Promise<UploadedMusic>;
2706
- registerPage: (key: string, label: string, app?: string) => Promise<unknown>;
2844
+ /** `labels` (optional): the click targets seen on the page, for the
2845
+ * nightly "may be out of date" check (#1495); at most 300. */
2846
+ registerPage: (key: string, label: string, app?: string, labels?: string[]) => Promise<unknown>;
2847
+ /** Dismisses "may be out of date" (#1495). 409 HELP_VIDEO_NOT_STALE when
2848
+ * there is nothing to dismiss. Authors only. */
2849
+ dismissStale: (id: string) => Promise<HelpVideoDto>;
2850
+ /** AI first draft of the edit (#1487): suggestions only, nothing applied.
2851
+ * 409 HELP_VIDEO_NO_DRAFT, 503 HELP_VIDEO_AI_NOT_CONFIGURED, 502
2852
+ * HELP_VIDEO_DRAFT_UNREADABLE when the model's answer was not JSON. */
2853
+ suggestDraft: (id: string) => Promise<DraftSuggestions>;
2854
+ /** The draft's automatic-captions job (#1520) and which transcriber would run. */
2855
+ captionJob: (id: string) => Promise<CaptionJobStatus>;
2856
+ /** Starts transcribing the draft's sound in the background (202). 409
2857
+ * HELP_VIDEO_NO_DRAFT / HELP_VIDEO_CAPTIONS_BUSY, 503
2858
+ * HELP_VIDEO_CAPTIONS_NOT_CONFIGURED with what an administrator must set up. */
2859
+ generateCaptions: (id: string) => Promise<CaptionJob>;
2860
+ /** Forgets a finished or failed caption set (409 while one runs). */
2861
+ discardCaptionJob: (id: string) => Promise<unknown>;
2862
+ /** The video's clips, with ticketed links for the ready ones. */
2863
+ clips: (id: string) => Promise<ClipDto[]>;
2864
+ /** Queues a clip (#1562): `start_ms`/`end_ms` in edited time of the
2865
+ * published version (or the draft with `draft`), at most 30 s. 422
2866
+ * HELP_VIDEO_CLIP_RANGE, 409 HELP_VIDEO_CLIP_LIMIT past 20 clips, 503
2867
+ * HELP_VIDEO_CLIP_NO_FFMPEG. Poll `clips` until it is ready. */
2868
+ createClip: (id: string, body: {
2869
+ kind: ClipKind;
2870
+ start_ms: number;
2871
+ end_ms: number;
2872
+ label?: string;
2873
+ draft?: boolean;
2874
+ }) => Promise<ClipDto>;
2875
+ deleteClip: (id: string, clipId: string) => Promise<unknown>;
2707
2876
  authorRoles: () => Promise<string[]>;
2708
2877
  setAuthorRoles: (ids: string[]) => Promise<unknown>;
2709
2878
  };
@@ -2765,6 +2934,11 @@ export declare interface HelpVideoDto {
2765
2934
  transcript_url?: string | null;
2766
2935
  /** What changed since this person last watched (#1497), else null. */
2767
2936
  whats_new?: HelpVideoWhatsNew | null;
2937
+ /** The screen changed since this was published (#1495): a layout version,
2938
+ * a renamed or removed pipeline step, or a recorded click label gone from
2939
+ * the page. Null when nothing was found or an author dismissed it;
2940
+ * publishing clears it. Optional: older servers. */
2941
+ stale?: HelpVideoStale | null;
2768
2942
  }
2769
2943
 
2770
2944
  export declare function HelpVideoEditor({ videoId, onClose }: {
@@ -2780,6 +2954,16 @@ export declare const helpVideoKeys: {
2780
2954
  required: readonly ["help-videos", "required"];
2781
2955
  pages: readonly ["help-videos", "pages"];
2782
2956
  walk: (id: string) => readonly ["help-videos", "walk", string];
2957
+ /** This person's questions on a video and their vote (#1505). */
2958
+ questions: (id: string) => readonly ["help-videos", "questions", string];
2959
+ /** "Up next" suggestions for a video (#1530). */
2960
+ next: (id: string) => readonly ["help-videos", "next", string];
2961
+ /** Learning paths (#1508): the author list and this person's own. */
2962
+ paths: readonly ["help-videos", "paths"];
2963
+ myPaths: readonly ["help-videos", "paths", "mine"];
2964
+ /** The changelog's videos (#1528b). */
2965
+ releases: readonly ["help-videos", "releases"];
2966
+ clips: (id: string) => readonly ["help-videos", "clips", string];
2783
2967
  /** The editor's draft load. Outside the `all` prefix on purpose: GET
2784
2968
  * /draft/edits creates a missing draft, so a broad invalidation must
2785
2969
  * never refetch it. `n` bumps on Reload. */
@@ -2812,6 +2996,8 @@ declare type HelpVideoPlayerProps = {
2812
2996
  /** Play the draft (authors in the editor). */
2813
2997
  useDraft?: boolean;
2814
2998
  onTime?: (sourceMs: number, editedMs: number) => void;
2999
+ /** The finished video ended (after the end card when there is one). */
3000
+ onEnded?: () => void;
2815
3001
  trackProgress?: boolean;
2816
3002
  autoPlay?: boolean;
2817
3003
  handleRef?: MutableRefObject<PlayerHandle | null>;
@@ -2831,6 +3017,33 @@ declare interface HelpVideoProgress {
2831
3017
  percent: number;
2832
3018
  }
2833
3019
 
3020
+ /** A question asked at a moment of the video (#1505; GET /help-videos/:id/questions).
3021
+ * `text` and `answer` are what people wrote — data, shown as is. */
3022
+ declare interface HelpVideoQuestion {
3023
+ id: string;
3024
+ video_id: string;
3025
+ version_id: string | null;
3026
+ /** Where it was asked, in the finished video (edited time). */
3027
+ at_ms: number;
3028
+ text: string;
3029
+ /** Asked by this person. */
3030
+ mine: boolean;
3031
+ /** Authors only: who asked. */
3032
+ asked_by_name?: string | null;
3033
+ answer: string | null;
3034
+ answered_at: string | null;
3035
+ answered_by_name: string | null;
3036
+ created_at: string;
3037
+ }
3038
+
3039
+ /** Thumbs up / down counts (#1505). */
3040
+ declare interface HelpVideoRatingSummary {
3041
+ up: number;
3042
+ down: number;
3043
+ /** up / (up + down), 3 places; 0 with no votes. */
3044
+ helpful_rate: number;
3045
+ }
3046
+
2834
3047
  /**
2835
3048
  * Records this tab, a window or the whole screen with optional microphone
2836
3049
  * narration. Parts upload every five seconds and are kept in this browser
@@ -2842,8 +3055,14 @@ declare interface HelpVideoProgress {
2842
3055
  * During recording only a small control bar shows. It portals into the
2843
3056
  * hosting [role="dialog"] when the recorder sits inside one (a modal sheet
2844
3057
  * makes everything outside it unclickable), else into document.body.
3058
+ *
3059
+ * Two more ways to record: with a script (#1491), the steps show on the bar
3060
+ * as a teleprompter and Next marks where each one starts; and in a recording
3061
+ * window (#1516), a popup of a fixed size opened from the setup panel, which
3062
+ * runs this same recorder with `handoff` set while the opener shows its
3063
+ * status (the `remote` stage) and opens the editor when it is done.
2845
3064
  */
2846
- export declare function HelpVideoRecorder({ open, onClose, onDone, videoId, contexts, defaultTitle, barHost: hostOverride }: {
3065
+ export declare function HelpVideoRecorder({ open, onClose, onDone, videoId, contexts, defaultTitle, barHost: hostOverride, handoff }: {
2847
3066
  open: boolean;
2848
3067
  onClose: () => void;
2849
3068
  onDone: (video: HelpVideoDto) => void;
@@ -2854,6 +3073,10 @@ export declare function HelpVideoRecorder({ open, onClose, onDone, videoId, cont
2854
3073
  * modal the recording was started from) while it is connected; document.body
2855
3074
  * after it goes. Without it the recorder follows its own place in the tree. */
2856
3075
  barHost?: HTMLElement | null;
3076
+ /** Set inside a recording window (#1516): the setup the opener handed over.
3077
+ * The recorder then records this tab, reports to the opener and closes the
3078
+ * window when it is done. */
3079
+ handoff?: RecordingHandoff | null;
2857
3080
  }): JSX.Element | null;
2858
3081
 
2859
3082
  /**
@@ -2875,7 +3098,8 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
2875
3098
  videoId: string | null;
2876
3099
  open: boolean;
2877
3100
  onOpenChange: (open: boolean) => void;
2878
- /** Other videos for the same screen, offered under the player. */
3101
+ /** Other videos for the same screen, offered under the player when the
3102
+ * server has nothing better (#1530). */
2879
3103
  upNext?: HelpVideoDto[];
2880
3104
  onPick?: (id: string) => void;
2881
3105
  /** Where focus goes on close when the opener unmounts while the sheet is
@@ -2889,6 +3113,15 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
2889
3113
  showMe?: boolean;
2890
3114
  }): JSX.Element;
2891
3115
 
3116
+ /** Why a video may be out of date (#1495). */
3117
+ declare interface HelpVideoStale {
3118
+ kind: 'layout' | 'state' | 'label';
3119
+ /** One sentence naming the change. */
3120
+ detail: string;
3121
+ /** When the change happened (ISO). */
3122
+ since: string;
3123
+ }
3124
+
2892
3125
  /**
2893
3126
  * Draws the guided walk ("Show me on this page") when one is running. Mount
2894
3127
  * it once per host; several may be mounted (the recording provider, every
@@ -2915,6 +3148,16 @@ declare interface HelpVideoWhatsNew {
2915
3148
  whole: boolean;
2916
3149
  }
2917
3150
 
3151
+ /** A held frame (#1537): the edited timeline freezes on the source frame at
3152
+ * `at_ms` for `hold_ms` (edited time, 0.2–10 s). Extra edited time with no
3153
+ * source advance, like 0.5x slow motion; everything on screen at that moment
3154
+ * stays up for the hold. A hold has to sit inside a kept piece. */
3155
+ declare interface Hold {
3156
+ id: string;
3157
+ at_ms: number;
3158
+ hold_ms: number;
3159
+ }
3160
+
2918
3161
  /** The house style (#1551): defaults every new help video starts from.
2919
3162
  * Administrators only. */
2920
3163
  export declare function HouseStyleButton(): JSX.Element | null;
@@ -4106,6 +4349,16 @@ export declare interface LeaderSocketHandle {
4106
4349
  destroy(): void;
4107
4350
  }
4108
4351
 
4352
+ /**
4353
+ * "Your learning path" (#1508): the paths for this person's role (and the
4354
+ * New User paths while their account is new), each with its progress and a
4355
+ * Continue button into the next unfinished video. Sits beside the Required
4356
+ * videos card on My Work. Nothing is shown when there is no path.
4357
+ */
4358
+ export declare function LearningPathCard({ className }: {
4359
+ className?: string;
4360
+ }): JSX.Element;
4361
+
4109
4362
  export declare function listFieldInterfaces(): string[];
4110
4363
 
4111
4364
  /**
@@ -5420,12 +5673,19 @@ export declare type PlayerHandle = {
5420
5673
  seekSource(ms: number): void;
5421
5674
  play(): void;
5422
5675
  pause(): void;
5676
+ /** Playing now (the recording or a card's clock). */
5677
+ isPlaying(): boolean;
5423
5678
  sourceMs(): number;
5424
5679
  editedMs(): number;
5680
+ /** The finished video's length (edited time); 0 while unknown. */
5681
+ totalMs(): number;
5425
5682
  frame(): {
5426
5683
  width: number;
5427
5684
  height: number;
5428
5685
  } | null;
5686
+ /** Measures the picture again — after the player's DOM moved to another
5687
+ * window or box (the mini player, #1500). */
5688
+ remeasure(): void;
5429
5689
  };
5430
5690
 
5431
5691
  /** Play the configured notification sound. No-op for 'off'/unknown/unavailable audio. */
@@ -5436,6 +5696,20 @@ declare type Point = {
5436
5696
  y: number;
5437
5697
  };
5438
5698
 
5699
+ /** The pointer path and shortcuts of a recording of the author's own tab. */
5700
+ declare type PointerPath = {
5701
+ samples: PointerSample[];
5702
+ shortcuts: RecordedShortcut[];
5703
+ };
5704
+
5705
+ /** One sample of the pointer path (#1517): source time and frame fractions
5706
+ * (0–1) of the captured frame, like a click. */
5707
+ declare type PointerSample = {
5708
+ t_ms: number;
5709
+ x: number;
5710
+ y: number;
5711
+ };
5712
+
5439
5713
  declare function pollProposal(opts: {
5440
5714
  fetchResult: () => Promise<ProposalPollAnswer>;
5441
5715
  onRunning?: (documentName?: string) => void;
@@ -6162,6 +6436,21 @@ export declare type RecordedClick = {
6162
6436
  origin?: string;
6163
6437
  };
6164
6438
 
6439
+ /** One "Next" press while recording with a script (#1491): step `step`
6440
+ * (0-based) starts at `t_ms` of the recording. */
6441
+ declare type RecordedMark = {
6442
+ t_ms: number;
6443
+ step: number;
6444
+ };
6445
+
6446
+ /** A keyboard shortcut pressed while recording (#1517): source time and the
6447
+ * keys as `Meta+S`, `Ctrl+K`, `Shift+Tab`, `Enter`, `ArrowDown` (modifiers
6448
+ * first, letters upper-case). Never text typed into a field. */
6449
+ declare type RecordedShortcut = {
6450
+ t_ms: number;
6451
+ keys: string;
6452
+ };
6453
+
6165
6454
  export declare function RecordGraphExplorer({ collection, itemId, className }: {
6166
6455
  collection: string;
6167
6456
  itemId: string;
@@ -6282,8 +6571,33 @@ export declare function RecordGridWidgetBody({ widget }: {
6282
6571
  widget: PageRendererWidget;
6283
6572
  }): JSX.Element;
6284
6573
 
6574
+ /** On <html> from the countdown to the stop of EVERY recording, clean screen
6575
+ * or not. `data-nvr-recording-hide="always"` hides an element while it is
6576
+ * set (a masquerade bar: never part of a video, whatever the setting). */
6577
+ export declare const RECORDING_ATTR = "data-nvr-recording";
6578
+
6285
6579
  export declare const RECORDING_HIDE_ATTR = "data-nvr-recording-hide";
6286
6580
 
6581
+ /** What the opener hands the popup. */
6582
+ declare type RecordingHandoff = {
6583
+ v: 1;
6584
+ token: string;
6585
+ /** Date.now() when written. */
6586
+ at: number;
6587
+ size: Size;
6588
+ videoId?: string;
6589
+ contexts?: HelpVideoContext[];
6590
+ defaultTitle?: string;
6591
+ options: {
6592
+ useMic: boolean;
6593
+ micId: string;
6594
+ captureClicks: boolean;
6595
+ cleanScreen: boolean;
6596
+ /** The script's text (#1491), one step per line. */
6597
+ script: string;
6598
+ };
6599
+ };
6600
+
6287
6601
  export declare function RecordReadView({ collection, itemId, layoutData, flush, renderSlot, integrityMarks, renderGrid, onEditSection, gridCounts }: {
6288
6602
  collection: string;
6289
6603
  itemId: string;
@@ -7009,6 +7323,11 @@ declare interface SignalThreshold {
7009
7323
  max?: number;
7010
7324
  }
7011
7325
 
7326
+ declare type Size = {
7327
+ w: number;
7328
+ h: number;
7329
+ };
7330
+
7012
7331
  declare type SkipCondition = {
7013
7332
  type: 'no_owners';
7014
7333
  } | {
@@ -7114,6 +7433,18 @@ export declare function splitMessageTokens(text: string, entityPattern: string):
7114
7433
 
7115
7434
  declare type SpreadPreset = 'even' | 'front' | 'back' | 'shape';
7116
7435
 
7436
+ /** A thumbnail sprite sheet: `count` tiles of `tile_w`×`tile_h`, `cols` to a
7437
+ * row, tile i showing source time i × interval_ms. `url` is ticketed and
7438
+ * relative to the API origin. */
7439
+ declare interface SpriteSheet {
7440
+ url: string;
7441
+ tile_w: number;
7442
+ tile_h: number;
7443
+ cols: number;
7444
+ count: number;
7445
+ interval_ms: number;
7446
+ }
7447
+
7117
7448
  /**
7118
7449
  * Idempotent; safe from an effect that runs more than once, and safe to call
7119
7450
  * from several components — only the first call arms the timer.
@@ -8108,6 +8439,7 @@ export declare function useRelationOptions(client: NivaroClient | null, relatedC
8108
8439
  error: Error | null;
8109
8440
  };
8110
8441
 
8442
+ /** The single required videos (the same fetch as useRequiredList). */
8111
8443
  export declare function useRequiredVideos(): UseQueryResult<NoInfer<HelpVideoDto[]>, Error>;
8112
8444
 
8113
8445
  export declare function useRoomMembership(): {
@@ -8297,6 +8629,26 @@ declare interface VersionDto {
8297
8629
  * idle (no input for 3 s+) on the recorded tab, in source time. Null for
8298
8630
  * uploaded files and recordings made without it. */
8299
8631
  activity?: ActivitySpan[] | null;
8632
+ /** Draft load only (#1517): where the pointer went on the recorded tab and
8633
+ * which shortcuts were pressed. Null for uploaded files and recordings
8634
+ * made without it (the cursor switches then have nothing to show). */
8635
+ pointer?: PointerPath | null;
8636
+ /** Retention removed this version's files (#1531): the Versions tab says
8637
+ * so and restore answers 409 HELP_VIDEO_VERSION_FILES_REMOVED. Optional:
8638
+ * older servers. */
8639
+ files_removed_at?: string | null;
8640
+ /** Draft, re-record and restore results only (#1491): the steps the author
8641
+ * wrote before recording, so a re-record can reuse them. Null for a
8642
+ * recording made without a script and for every uploaded file. */
8643
+ script?: string[] | null;
8644
+ /** Draft load only (#1560): the server's audio peaks, 0–1 per 100 ms of
8645
+ * source time (the shape of `levels`), built from the recording itself —
8646
+ * so an uploaded video has a waveform. Null until built or without sound. */
8647
+ peaks?: number[] | null;
8648
+ /** Draft load only (#1560): the thumbnail sprite sheet (a ticketed JPEG of
8649
+ * small frames, one every `interval_ms`). Null until built, or when the
8650
+ * recording was too large for one. */
8651
+ sprite?: SpriteSheet | null;
8300
8652
  }
8301
8653
 
8302
8654
  export declare interface VideoEdits {
@@ -8340,6 +8692,12 @@ export declare interface VideoEdits {
8340
8692
  /** How captions look to viewers who have not chosen their own (#1551);
8341
8693
  * only the keys that differ from the default look are stored. */
8342
8694
  caption_style?: Partial<CaptionStyle>;
8695
+ /** The recorded cursor (#1517): a highlighted pointer drawn over the
8696
+ * picture along the recorded pointer path, and with `shortcuts` a badge
8697
+ * for each keyboard shortcut pressed. Stored only while on. */
8698
+ cursor?: CursorEdits;
8699
+ /** Held frames (#1537), sorted by `at_ms`; stored only when there are any. */
8700
+ holds?: Hold[];
8343
8701
  }
8344
8702
 
8345
8703
  export declare function viewAs(person: {
@@ -8415,8 +8773,20 @@ declare interface Zoom {
8415
8773
  id: string;
8416
8774
  start_ms: number;
8417
8775
  end_ms: number;
8776
+ /** The area shown; with keyframes, always the first keyframe's area. */
8418
8777
  rect: Rect;
8419
8778
  ease_ms: number;
8779
+ /** A zoom that moves (#1539): the area pans and resizes straight-line
8780
+ * between these stops (the first held before it, the last after it).
8781
+ * Stored only with two or more stops, sorted, inside the zoom's span. */
8782
+ keyframes?: ZoomKeyframe[];
8783
+ }
8784
+
8785
+ /** One stop of a moving zoom (#1539): the area shown at `at_ms` (source
8786
+ * time), a square in frame fractions like `Zoom.rect`. */
8787
+ declare interface ZoomKeyframe {
8788
+ at_ms: number;
8789
+ rect: Rect;
8420
8790
  }
8421
8791
 
8422
8792
  export { }