@nivaro/react 0.2.23 → 0.2.25

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
@@ -79,6 +79,14 @@ declare interface ActiveFilter {
79
79
  not?: boolean;
80
80
  }
81
81
 
82
+ /** A stretch of the recording where the author was typing in a text field,
83
+ * or touched nothing at all (#1518). Never what was typed. */
84
+ declare type ActivitySpan = {
85
+ kind: 'typing' | 'idle';
86
+ start_ms: number;
87
+ end_ms: number;
88
+ };
89
+
82
90
  export declare function AddendumPanel({ collection, item, addendumLayoutId, canCreate, onActiveCountChange, onApplied, onCreated, defaultExpanded }: {
83
91
  collection: string;
84
92
  item: string;
@@ -193,14 +201,10 @@ declare interface Annotation {
193
201
  tone: Tone;
194
202
  }
195
203
 
196
- declare type AnnotationType = 'callout' | 'arrow' | 'box' | 'ripple';
204
+ /** A `step` is a callout with a number badge (numbered in timeline order);
205
+ * a `spotlight` dims the whole frame except its rect. */
206
+ declare type AnnotationType = 'callout' | 'arrow' | 'box' | 'ripple' | 'step' | 'spotlight';
197
207
 
198
- /**
199
- * Admin-authored announcement banners ("maintenance Friday 6pm") — polled
200
- * every minute, role/window-filtered server-side, dismiss = acknowledge
201
- * (stays gone for that user, admins see ack counts). Mount once per app
202
- * shell; renders nothing when there is nothing to say.
203
- */
204
208
  export declare function AnnouncementBanner(): JSX.Element | null;
205
209
 
206
210
  declare interface AnomalyDefinition {
@@ -517,6 +521,10 @@ export declare interface BaseMapPin {
517
521
  * holders count; the mode ends when the last one releases. */
518
522
  export declare function beginCleanRecording(): () => void;
519
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
+
520
528
  declare type BinaryOp = '+' | '-' | '*' | '/' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '&&' | '||';
521
529
 
522
530
  declare interface Blur {
@@ -610,6 +618,44 @@ declare interface Caption {
610
618
  text: string;
611
619
  }
612
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
+
652
+ /** How captions look in the player (#1529), remembered per person. */
653
+ declare interface CaptionStyle {
654
+ size: 's' | 'm' | 'l' | 'xl';
655
+ background: 'none' | 'shaded' | 'solid';
656
+ position: 'bottom' | 'top';
657
+ }
658
+
613
659
  /**
614
660
  * Grab the replay link for an error being reported right now. Resolves null
615
661
  * when no recorder is active (both settings off, recording failed, or the
@@ -1082,6 +1128,33 @@ declare interface ClientAction {
1082
1128
  itemId: string;
1083
1129
  }
1084
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
+
1085
1158
  export declare function CloneDialog({ collection, itemId, fields, relations, currentValues, onSuccess }: CloneDialogProps): JSX.Element;
1086
1159
 
1087
1160
  declare interface CloneDialogProps {
@@ -1377,6 +1450,13 @@ export declare function CronBuilder({ value, onChange, disabled }: {
1377
1450
  disabled?: boolean;
1378
1451
  }): JSX.Element;
1379
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
+
1380
1460
  export declare function CustomActionButtons({ collection, itemId, draft }: {
1381
1461
  collection: string;
1382
1462
  itemId: string;
@@ -1763,6 +1843,40 @@ declare interface DownloadUrls {
1763
1843
  captions_srt: string | null;
1764
1844
  }
1765
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
+
1766
1880
  declare type DrawerRelationConfig = string | {
1767
1881
  field: string;
1768
1882
  hint?: {
@@ -2565,6 +2679,19 @@ export declare interface HeaderWidgetInfo {
2565
2679
  inputBindings: InputBinding[];
2566
2680
  }
2567
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
+
2568
2695
  /** Every mutation, as plain functions over the client. */
2569
2696
  export declare function helpVideoApi(client: NivaroClient): {
2570
2697
  create: (body: {
@@ -2594,7 +2721,7 @@ export declare function helpVideoApi(client: NivaroClient): {
2594
2721
  /** 409 HELP_VIDEO_EDITS_CONFLICT (with `current_hash`) when `base_hash` is stale;
2595
2722
  * 422 HELP_VIDEO_EDITS_INVALID when the edits keep under a second. */
2596
2723
  saveDraft: (id: string, edits: VideoEdits, base_hash?: string) => Promise<VersionDto>;
2597
- publish: (id: string, watch_again: boolean) => Promise<HelpVideoDto>;
2724
+ publish: (id: string, watch_again: boolean, note?: string) => Promise<HelpVideoDto>;
2598
2725
  rerecord: (id: string, upload_id: string) => Promise<VersionDto>;
2599
2726
  versions: (id: string) => Promise<(VersionDto & {
2600
2727
  is_published: boolean;
@@ -2613,13 +2740,30 @@ export declare function helpVideoApi(client: NivaroClient): {
2613
2740
  completed: boolean;
2614
2741
  };
2615
2742
  } | undefined>;
2616
- analytics: (id: string) => Promise<{
2617
- views: number;
2618
- unique_viewers: number;
2619
- completion_rate: number;
2620
- drop_off: number[];
2621
- 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;
2622
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[]>;
2623
2767
  openUpload: (mime: string) => Promise<{
2624
2768
  id: string;
2625
2769
  next_part: number;
@@ -2653,6 +2797,16 @@ export declare function helpVideoApi(client: NivaroClient): {
2653
2797
  * - `levels`: microphone loudness, one number from 0 (silence) to 1 every
2654
2798
  * 100 ms of recording time (10 per second), so `levels[i]` covers
2655
2799
  * `i * 100` ms. Null without a microphone.
2800
+ * - `activity` (optional): `{ kind: 'typing' | 'idle', start_ms, end_ms }`
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.
2656
2810
  * Matches `HelpVideoVersion.clicks` / `.levels` in @nivaro/sdk.
2657
2811
  * 422 UPLOAD_TOO_LONG past 31 minutes, 409 UPLOAD_CLOSED when finished.
2658
2812
  */
@@ -2660,6 +2814,10 @@ export declare function helpVideoApi(client: NivaroClient): {
2660
2814
  duration_ms: number;
2661
2815
  clicks: RecordedClick[] | null;
2662
2816
  levels: number[] | null;
2817
+ activity?: ActivitySpan[] | null;
2818
+ pointer?: PointerPath | null;
2819
+ script?: string[] | null;
2820
+ marks?: RecordedMark[] | null;
2663
2821
  }) => Promise<{
2664
2822
  file_id: string;
2665
2823
  duration_ms: number | null;
@@ -2683,7 +2841,38 @@ export declare function helpVideoApi(client: NivaroClient): {
2683
2841
  /** Imports an Openverse track as this video's music (the same track twice
2684
2842
  * is kept once). 422 OPENVERSE_LICENSE when it is no longer CC0. */
2685
2843
  importOpenverse: (id: string, openverseId: string) => Promise<UploadedMusic>;
2686
- 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>;
2687
2876
  authorRoles: () => Promise<string[]>;
2688
2877
  setAuthorRoles: (ids: string[]) => Promise<unknown>;
2689
2878
  };
@@ -2739,6 +2928,17 @@ export declare interface HelpVideoDto {
2739
2928
  download_urls: DownloadUrls | null;
2740
2929
  updated_at: string;
2741
2930
  my_progress: HelpVideoProgress | null;
2931
+ /** Ticketed plain-text transcript (captions under chapter headings) for
2932
+ * anyone who can watch, whatever the "Allow downloads" switch says. Null
2933
+ * when the published version has no captions. Optional: older servers. */
2934
+ transcript_url?: string | null;
2935
+ /** What changed since this person last watched (#1497), else null. */
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;
2742
2942
  }
2743
2943
 
2744
2944
  export declare function HelpVideoEditor({ videoId, onClose }: {
@@ -2754,14 +2954,28 @@ export declare const helpVideoKeys: {
2754
2954
  required: readonly ["help-videos", "required"];
2755
2955
  pages: readonly ["help-videos", "pages"];
2756
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];
2757
2967
  /** The editor's draft load. Outside the `all` prefix on purpose: GET
2758
2968
  * /draft/edits creates a missing draft, so a broad invalidation must
2759
2969
  * never refetch it. `n` bumps on Reload. */
2760
2970
  draftEdits: (id: string, n: number) => readonly ["help-video-draft", string, number];
2761
2971
  };
2762
2972
 
2763
- export declare function HelpVideoLibrary({ watchId, editId, onWatch, onEdit, headerExtra }: {
2973
+ export declare function HelpVideoLibrary({ watchId, editId, onWatch, onEdit, headerExtra, watchAt, watchChapter }: {
2764
2974
  watchId: string | null;
2975
+ /** A moment link's `t` (whole seconds) for watchId, as read from the URL. */
2976
+ watchAt?: string | null;
2977
+ /** A moment link's `c` (chapter id); wins over `t` when the chapter exists. */
2978
+ watchChapter?: string | null;
2765
2979
  editId: string | null;
2766
2980
  onWatch: (id: string | null) => void;
2767
2981
  onEdit: (id: string | null) => void;
@@ -2782,6 +2996,8 @@ declare type HelpVideoPlayerProps = {
2782
2996
  /** Play the draft (authors in the editor). */
2783
2997
  useDraft?: boolean;
2784
2998
  onTime?: (sourceMs: number, editedMs: number) => void;
2999
+ /** The finished video ended (after the end card when there is one). */
3000
+ onEnded?: () => void;
2785
3001
  trackProgress?: boolean;
2786
3002
  autoPlay?: boolean;
2787
3003
  handleRef?: MutableRefObject<PlayerHandle | null>;
@@ -2801,6 +3017,33 @@ declare interface HelpVideoProgress {
2801
3017
  percent: number;
2802
3018
  }
2803
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
+
2804
3047
  /**
2805
3048
  * Records this tab, a window or the whole screen with optional microphone
2806
3049
  * narration. Parts upload every five seconds and are kept in this browser
@@ -2812,8 +3055,14 @@ declare interface HelpVideoProgress {
2812
3055
  * During recording only a small control bar shows. It portals into the
2813
3056
  * hosting [role="dialog"] when the recorder sits inside one (a modal sheet
2814
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.
2815
3064
  */
2816
- 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 }: {
2817
3066
  open: boolean;
2818
3067
  onClose: () => void;
2819
3068
  onDone: (video: HelpVideoDto) => void;
@@ -2824,6 +3073,10 @@ export declare function HelpVideoRecorder({ open, onClose, onDone, videoId, cont
2824
3073
  * modal the recording was started from) while it is connected; document.body
2825
3074
  * after it goes. Without it the recorder follows its own place in the tree. */
2826
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;
2827
3080
  }): JSX.Element | null;
2828
3081
 
2829
3082
  /**
@@ -2841,11 +3094,12 @@ export declare function HelpVideoRecordingProvider({ children }: {
2841
3094
  children: ReactNode;
2842
3095
  }): JSX.Element;
2843
3096
 
2844
- export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, onPick, returnFocusRef, startAtMs, showMe }: {
3097
+ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, onPick, returnFocusRef, startAtMs, startChapterId, showMe }: {
2845
3098
  videoId: string | null;
2846
3099
  open: boolean;
2847
3100
  onOpenChange: (open: boolean) => void;
2848
- /** 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). */
2849
3103
  upNext?: HelpVideoDto[];
2850
3104
  onPick?: (id: string) => void;
2851
3105
  /** Where focus goes on close when the opener unmounts while the sheet is
@@ -2853,10 +3107,21 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
2853
3107
  returnFocusRef?: RefObject<HTMLElement | null>;
2854
3108
  /** Start the player here (edited time), e.g. a walk's "Watch this step". */
2855
3109
  startAtMs?: number | null;
3110
+ /** Start at this chapter (a moment link's `c`); wins over startAtMs when it exists. */
3111
+ startChapterId?: string | null;
2856
3112
  /** Offer "Show me on this page" when the video has steps for this screen. */
2857
3113
  showMe?: boolean;
2858
3114
  }): JSX.Element;
2859
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
+
2860
3125
  /**
2861
3126
  * Draws the guided walk ("Show me on this page") when one is running. Mount
2862
3127
  * it once per host; several may be mounted (the recording provider, every
@@ -2865,6 +3130,38 @@ export declare function HelpVideoSheet({ videoId, open, onOpenChange, upNext, on
2865
3130
  */
2866
3131
  export declare function HelpVideoWalkHost(): JSX.Element | null;
2867
3132
 
3133
+ /** `updated`: a newer version than the one watched is published; `again`: the
3134
+ * author asked everyone to watch the same version again. */
3135
+ declare interface HelpVideoWhatsNew {
3136
+ kind: 'updated' | 'again';
3137
+ watched_version: number | null;
3138
+ version: number;
3139
+ /** The author's note for this version (system notes left out). */
3140
+ note: string | null;
3141
+ /** Where "Jump to what changed" starts (edited time); null = nothing to jump to. */
3142
+ jump_ms: number | null;
3143
+ chapter: {
3144
+ id: string;
3145
+ title: string;
3146
+ } | null;
3147
+ /** The recording itself was replaced: watch it from the start. */
3148
+ whole: boolean;
3149
+ }
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
+
3161
+ /** The house style (#1551): defaults every new help video starts from.
3162
+ * Administrators only. */
3163
+ export declare function HouseStyleButton(): JSX.Element | null;
3164
+
2868
3165
  /** Always-visible horizontal scrollbar proxy for the table scroller —
2869
3166
  * overlay-OS scrollbars hide, so wide tables get a persistent draggable
2870
3167
  * track pinned above the pagination footer. */
@@ -3824,7 +4121,11 @@ export declare type ItemLinkTarget = {
3824
4121
  query?: Record<string, string> | null;
3825
4122
  };
3826
4123
 
3827
- export declare function ItemLockBanner({ lockHolder, onTakeOver, takingOver, isAdmin, onRequestLock, requesting, queue, myPosition, onJoinQueue, onLeaveQueue, joining }: {
4124
+ export declare function ItemLockBanner({ lockHolder, onTakeOver, takingOver, isAdmin, onRequestLock, requesting, queue, myPosition, onJoinQueue, onLeaveQueue, joining, noun, readOnlyText }: {
4125
+ /** What is being edited ("this video"). */
4126
+ noun?: string;
4127
+ /** What being locked out means here ("the editor is read-only"). */
4128
+ readOnlyText?: string;
3828
4129
  lockHolder: LockHolder | null;
3829
4130
  onTakeOver: () => void;
3830
4131
  takingOver: boolean;
@@ -4048,6 +4349,16 @@ export declare interface LeaderSocketHandle {
4048
4349
  destroy(): void;
4049
4350
  }
4050
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
+
4051
4362
  export declare function listFieldInterfaces(): string[];
4052
4363
 
4053
4364
  /**
@@ -5362,12 +5673,19 @@ export declare type PlayerHandle = {
5362
5673
  seekSource(ms: number): void;
5363
5674
  play(): void;
5364
5675
  pause(): void;
5676
+ /** Playing now (the recording or a card's clock). */
5677
+ isPlaying(): boolean;
5365
5678
  sourceMs(): number;
5366
5679
  editedMs(): number;
5680
+ /** The finished video's length (edited time); 0 while unknown. */
5681
+ totalMs(): number;
5367
5682
  frame(): {
5368
5683
  width: number;
5369
5684
  height: number;
5370
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;
5371
5689
  };
5372
5690
 
5373
5691
  /** Play the configured notification sound. No-op for 'off'/unknown/unavailable audio. */
@@ -5378,6 +5696,20 @@ declare type Point = {
5378
5696
  y: number;
5379
5697
  };
5380
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
+
5381
5713
  declare function pollProposal(opts: {
5382
5714
  fetchResult: () => Promise<ProposalPollAnswer>;
5383
5715
  onRunning?: (documentName?: string) => void;
@@ -6104,6 +6436,21 @@ export declare type RecordedClick = {
6104
6436
  origin?: string;
6105
6437
  };
6106
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
+
6107
6454
  export declare function RecordGraphExplorer({ collection, itemId, className }: {
6108
6455
  collection: string;
6109
6456
  itemId: string;
@@ -6224,8 +6571,33 @@ export declare function RecordGridWidgetBody({ widget }: {
6224
6571
  widget: PageRendererWidget;
6225
6572
  }): JSX.Element;
6226
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
+
6227
6579
  export declare const RECORDING_HIDE_ATTR = "data-nvr-recording-hide";
6228
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
+
6229
6601
  export declare function RecordReadView({ collection, itemId, layoutData, flush, renderSlot, integrityMarks, renderGrid, onEditSection, gridCounts }: {
6230
6602
  collection: string;
6231
6603
  itemId: string;
@@ -6409,6 +6781,9 @@ export declare type RenderFieldProps = {
6409
6781
  requiredParentLabel?: string | null;
6410
6782
  };
6411
6783
 
6784
+ /** How help-video renders are encoded (#1561). Administrators only. */
6785
+ export declare function RenderSettingsButton(): JSX.Element | null;
6786
+
6412
6787
  declare type RenderStatus = 'none' | 'queued' | 'rendering' | 'ready' | 'failed' | 'unavailable';
6413
6788
 
6414
6789
  export declare function ReportView({ reportId, showFilterBar, dateRange, initialEntityFilters, refetchInterval, className, emptyState, reportUrl }: ReportViewProps & {
@@ -6948,6 +7323,11 @@ declare interface SignalThreshold {
6948
7323
  max?: number;
6949
7324
  }
6950
7325
 
7326
+ declare type Size = {
7327
+ w: number;
7328
+ h: number;
7329
+ };
7330
+
6951
7331
  declare type SkipCondition = {
6952
7332
  type: 'no_owners';
6953
7333
  } | {
@@ -7047,12 +7427,24 @@ export declare function SnoozeMenu({ signal, signalLabel, rowKey, group, default
7047
7427
  compact?: boolean;
7048
7428
  }): JSX.Element;
7049
7429
 
7050
- declare type Speed = 1 | 1.5 | 2 | 4;
7430
+ declare type Speed = 0.5 | 1 | 1.5 | 2 | 4;
7051
7431
 
7052
7432
  export declare function splitMessageTokens(text: string, entityPattern: string): MessageToken[];
7053
7433
 
7054
7434
  declare type SpreadPreset = 'even' | 'front' | 'back' | 'shape';
7055
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
+
7056
7448
  /**
7057
7449
  * Idempotent; safe from an effect that runs more than once, and safe to call
7058
7450
  * from several components — only the first call arms the timer.
@@ -7100,6 +7492,12 @@ export declare function startRum(opts?: {
7100
7492
  apiBase?: string;
7101
7493
  }): void;
7102
7494
 
7495
+ /** How every step badge looks (stored only when not STEP_STYLE_DEFAULTS). */
7496
+ declare interface StepStyle {
7497
+ shape: 'circle' | 'square';
7498
+ size: 'small' | 'medium' | 'large';
7499
+ }
7500
+
7103
7501
  export declare function SubmissionRow({ sub, onRetry, retrying, onShowPath, initialOpen }: {
7104
7502
  sub: ErpSubmission;
7105
7503
  onRetry: (id: number) => void;
@@ -8041,6 +8439,7 @@ export declare function useRelationOptions(client: NivaroClient | null, relatedC
8041
8439
  error: Error | null;
8042
8440
  };
8043
8441
 
8442
+ /** The single required videos (the same fetch as useRequiredList). */
8044
8443
  export declare function useRequiredVideos(): UseQueryResult<NoInfer<HelpVideoDto[]>, Error>;
8045
8444
 
8046
8445
  export declare function useRoomMembership(): {
@@ -8226,6 +8625,30 @@ declare interface VersionDto {
8226
8625
  /** Draft load only: 'upload' when the source is a video file someone picked
8227
8626
  * (it has no clicks and no microphone levels), else 'recording'. */
8228
8627
  source_kind?: 'recording' | 'upload';
8628
+ /** Draft load only (#1518): when the author was typing in a text field or
8629
+ * idle (no input for 3 s+) on the recorded tab, in source time. Null for
8630
+ * uploaded files and recordings made without it. */
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;
8229
8652
  }
8230
8653
 
8231
8654
  export declare interface VideoEdits {
@@ -8252,6 +8675,29 @@ export declare interface VideoEdits {
8252
8675
  poster_card?: 'intro' | 'outro';
8253
8676
  /** Background music (stored only while switched on). */
8254
8677
  music?: MusicBed;
8678
+ /** What viewers see of the recording (frame fractions); stored only when
8679
+ * smaller than the whole frame. Other rects stay relative to the whole
8680
+ * recorded frame; cards are always full frame. */
8681
+ crop?: Rect;
8682
+ /** Step badge look; stored only when not STEP_STYLE_DEFAULTS. */
8683
+ step_style?: StepStyle;
8684
+ /** Narration cleanup (#1519): loudness levelling + noise reduction in the
8685
+ * render. Stored only while on; live playback plays the recording as is. */
8686
+ audio?: {
8687
+ improve: true;
8688
+ };
8689
+ /** Text size in callouts, boxes and steps (#1551); stored only when not
8690
+ * 'medium'. */
8691
+ callout_text?: 'small' | 'large';
8692
+ /** How captions look to viewers who have not chosen their own (#1551);
8693
+ * only the keys that differ from the default look are stored. */
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[];
8255
8701
  }
8256
8702
 
8257
8703
  export declare function viewAs(person: {
@@ -8327,8 +8773,20 @@ declare interface Zoom {
8327
8773
  id: string;
8328
8774
  start_ms: number;
8329
8775
  end_ms: number;
8776
+ /** The area shown; with keyframes, always the first keyframe's area. */
8330
8777
  rect: Rect;
8331
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;
8332
8790
  }
8333
8791
 
8334
8792
  export { }