@boldvideo/bold-js 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +2 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @boldvideo/bold-js
|
|
2
2
|
|
|
3
|
+
## 1.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ccd71c9: Add slug field to Video type
|
|
8
|
+
|
|
9
|
+
## 1.11.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0428b78: Add `cited` boolean field to Segment type for stable citation ordering
|
|
14
|
+
|
|
3
15
|
## 1.11.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -62,8 +62,9 @@ console.log(recs.guidance);
|
|
|
62
62
|
// List latest videos
|
|
63
63
|
const videos = await bold.videos.list();
|
|
64
64
|
|
|
65
|
-
// Get a single video
|
|
65
|
+
// Get a single video by ID or slug
|
|
66
66
|
const video = await bold.videos.get('video-id');
|
|
67
|
+
const videoBySlug = await bold.videos.get('my-video-slug');
|
|
67
68
|
|
|
68
69
|
// Search videos
|
|
69
70
|
const results = await bold.videos.search('pricing strategies');
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ type Video = {
|
|
|
32
32
|
description: string | null;
|
|
33
33
|
duration: number;
|
|
34
34
|
id: string;
|
|
35
|
+
slug?: string;
|
|
35
36
|
importedFrom: string | null;
|
|
36
37
|
legacyVideoUrl: string | null;
|
|
37
38
|
playbackId: string;
|
|
@@ -190,6 +191,7 @@ interface Segment {
|
|
|
190
191
|
timestampEnd: number;
|
|
191
192
|
playbackId: string;
|
|
192
193
|
speaker?: string;
|
|
194
|
+
cited?: boolean;
|
|
193
195
|
}
|
|
194
196
|
/**
|
|
195
197
|
* @deprecated Use Segment instead
|