@nivaro/sdk 0.1.20 → 0.1.21

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 (2) hide show
  1. package/dist/index.d.ts +32 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4539,6 +4539,22 @@ interface HelpVideoVersion {
4539
4539
  clicks?: HelpVideoClick[] | null;
4540
4540
  /** Microphone loudness 0–1, one value per 100 ms of source time. */
4541
4541
  levels?: number[] | null;
4542
+ /** The steps the author wrote before recording (script mode), so a
4543
+ * re-record can reuse them; null without one. */
4544
+ script?: string[] | null;
4545
+ /** Draft load only (#1560): the server's audio peaks, 0–1 per 100 ms of
4546
+ * source time, built from the recording itself; null until built. */
4547
+ peaks?: number[] | null;
4548
+ /** Draft load only (#1560): the thumbnail sprite sheet (a ticketed JPEG of
4549
+ * `count` tiles, `cols` to a row, one every `interval_ms`); null until built. */
4550
+ sprite?: {
4551
+ url: string;
4552
+ tile_w: number;
4553
+ tile_h: number;
4554
+ cols: number;
4555
+ count: number;
4556
+ interval_ms: number;
4557
+ } | null;
4542
4558
  }
4543
4559
  /**
4544
4560
  * One recorded click. Recorded on the author's own tab, a click also says
@@ -4660,6 +4676,12 @@ interface HelpVideoFinalizedUpload {
4660
4676
  has_audio: boolean;
4661
4677
  clicks: unknown;
4662
4678
  levels: unknown;
4679
+ /** Script mode: the steps and where each was marked (`[{ t_ms, step }]`). */
4680
+ script: string[] | null;
4681
+ marks: Array<{
4682
+ t_ms: number;
4683
+ step: number;
4684
+ }> | null;
4663
4685
  }
4664
4686
  declare function listHelpVideos(params?: {
4665
4687
  search?: string;
@@ -4802,6 +4824,16 @@ declare function finalizeHelpVideoUpload(id: string, meta?: {
4802
4824
  duration_ms?: number;
4803
4825
  clicks?: unknown;
4804
4826
  levels?: unknown;
4827
+ activity?: unknown;
4828
+ /** Script mode: the steps (≤ 60 of ≤ 200 chars) and `[{ t_ms, step }]` marks. */
4829
+ script?: string[] | null;
4830
+ marks?: Array<{
4831
+ t_ms: number;
4832
+ step: number;
4833
+ }> | null;
4834
+ /** The pointer path and shortcuts of a tab recording (#1517):
4835
+ * `{ samples: [{ t_ms, x, y }], shortcuts: [{ t_ms, keys }] }`. */
4836
+ pointer?: unknown;
4805
4837
  }): Command<{
4806
4838
  data: HelpVideoFinalizedUpload;
4807
4839
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/sdk",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "TypeScript SDK for Nivaro CMS — typed REST client, GraphQL, realtime subscriptions, and presence.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",