Skip to content

Commit 17572f0

Browse files
Merge pull request #235 from apivideo/ai-summary-updates
Update Summary endpoints
2 parents 928b1fd + 0d3a17d commit 17572f0

16 files changed

+81
-30
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [2.6.8] - 2024-11-06
5+
- AI summary updates
6+
47
## [2.6.7] - 2024-11-04
58
- Analytics updates (ccv, views, ...)
69

docs/api/SummariesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All URIs are relative to *https://ws.api.video*
1515
## **`create()` - Generate video summary**
1616

1717

18-
Generate a title, abstract, and key takeaways for a video.
18+
Generate an abstract and key takeaways for a video.
1919

2020
### Parameters
2121

@@ -37,7 +37,7 @@ Promise<[**Summary**](../model/Summary.md)>.
3737
## **`update()` - Update summary details**
3838

3939

40-
Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`.
40+
Update details for a summary.
4141

4242
### Parameters
4343

docs/model/SummaryCreationPayload.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**videoId** | **string** | Create a summary of a video using the video ID. |
99
**origin** | [**SummaryCreationPayloadOriginEnum**](#SummaryCreationPayloadOriginEnum) | Use this parameter to define how the API generates the summary. The only allowed value is &#x60;auto&#x60;, which means that the API generates a summary automatically. If you do not set this parameter, **the API will not generate a summary automatically**. In this case, &#x60;sourceStatus&#x60; will return &#x60;missing&#x60;, and you have to manually add a summary using the &#x60;PATCH /summaries/{summaryId}/source&#x60; endpoint operation. | [optional]
10+
**attributes** | [**Array&lt;SummaryCreationPayloadAttributesEnum&gt;**](#Array&lt;SummaryCreationPayloadAttributesEnum&gt;) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
1011

1112

1213

@@ -18,3 +19,12 @@ Auto | &#39;auto&#39;
1819

1920

2021

22+
## Enum: Array&lt;SummaryCreationPayloadAttributesEnum&gt;
23+
24+
Name | Value
25+
---- | -----
26+
Abstract | &#39;abstract&#39;
27+
Takeaways | &#39;takeaways&#39;
28+
29+
30+

docs/model/SummarySource.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**title** | **string** | A video title, based on the contents of the video. | [optional]
98
**_abstract** | **string** | A short outline of the contents of the video. The length of an &#x60;abstract&#x60; depends on the amount of content in a video that can be transcribed. The API condenses the contents into minimum 20, maximum 300 words. | [optional]
109
**takeaways** | **Array&lt;string&gt;** | A list of 3 key points from the video, in chronological order. | [optional]
1110

docs/model/SummaryUpdatePayload.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**title** | **string** | A video title, based on the contents of the video. | [optional]
98
**_abstract** | **string** | A short outline of the contents of the video. | [optional]
109
**takeaways** | **Array&lt;string&gt;** | A list of 3 key points from the video, in chronological order. | [optional]
1110

docs/model/VideoCreationPayload.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**language** | [**VideoCreationPayloadLanguageEnum**](#VideoCreationPayloadLanguageEnum) | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. &#x60;language&#x60; is a permanent attribute of the video. You can update it to another language using the [&#x60;PATCH /videos/{videoId}&#x60;](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional]
2020
**transcript** | **boolean** | Use this parameter to enable transcription. - When &#x60;true&#x60;, the API generates a transcript for the video. - The default value is &#x60;false&#x60;. - If you define a video language using the &#x60;language&#x60; parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional]
2121
**transcriptSummary** | **boolean** | Use this parameter to enable summarization. We recommend using this parameter together with &#x60;transcript: true&#x60;. - When &#x60;true&#x60;, the API generates a summary for the video, based on the transcription. - The default value is &#x60;false&#x60;. - If you define a video language using the &#x60;language&#x60; parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional]
22+
**transcriptSummaryAttributes** | [**Array&lt;VideoCreationPayloadTranscriptSummaryAttributesEnum&gt;**](#Array&lt;VideoCreationPayloadTranscriptSummaryAttributesEnum&gt;) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
2223

2324

2425

@@ -62,3 +63,12 @@ Zh | &#39;zh&#39;
6263

6364

6465

66+
## Enum: Array&lt;VideoCreationPayloadTranscriptSummaryAttributesEnum&gt;
67+
68+
Name | Value
69+
---- | -----
70+
Abstract | &#39;abstract&#39;
71+
Takeaways | &#39;takeaways&#39;
72+
73+
74+

docs/model/VideoUpdatePayload.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**language** | [**VideoUpdatePayloadLanguageEnum**](#VideoUpdatePayloadLanguageEnum) | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. &#x60;language&#x60; is a permanent attribute of the video. You can update it to another language using the [&#x60;PATCH /videos/{videoId}&#x60;](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional]
1717
**transcript** | **boolean** | Use this parameter to enable transcription. - When &#x60;true&#x60;, the API generates a transcript for the video. - The default value is &#x60;false&#x60;. - If you define a video language using the &#x60;language&#x60; parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional]
1818
**transcriptSummary** | **boolean** | Use this parameter to enable summarization. - When &#x60;true&#x60;, the API generates a summary for the video, based on the transcription. - The default value is &#x60;false&#x60;. - If you define a video language using the &#x60;language&#x60; parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video. | [optional]
19+
**transcriptSummaryAttributes** | [**Array&lt;VideoUpdatePayloadTranscriptSummaryAttributesEnum&gt;**](#Array&lt;VideoUpdatePayloadTranscriptSummaryAttributesEnum&gt;) | Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. | [optional]
1920

2021

2122

@@ -59,3 +60,12 @@ Zh | &#39;zh&#39;
5960

6061

6162

63+
## Enum: Array&lt;VideoUpdatePayloadTranscriptSummaryAttributesEnum&gt;
64+
65+
Name | Value
66+
---- | -----
67+
Abstract | &#39;abstract&#39;
68+
Takeaways | &#39;takeaways&#39;
69+
70+
71+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api.video/nodejs-client",
3-
"version": "2.6.7",
3+
"version": "2.6.8",
44
"description": "api.video nodejs API client",
55
"keywords": [
66
"api.video",

src/HttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class HttpClient {
5959
this.chunkSize = params.chunkSize;
6060
this.headers = new AxiosHeaders({
6161
Accept: 'application/json, */*;q=0.8',
62-
'AV-Origin-Client': 'nodejs:2.6.7',
62+
'AV-Origin-Client': 'nodejs:2.6.8',
6363
Authorization: this.apiKey ? `Basic ${encode(`${this.apiKey}:`)}` : '',
6464
...(params.applicationName && params.applicationVersion
6565
? {

src/ObjectSerializer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ const enumsMap: Set<string> = new Set<string>([
128128
'SummaryOriginEnum',
129129
'SummarySourceStatusEnum',
130130
'SummaryCreationPayloadOriginEnum',
131+
'SummaryCreationPayloadAttributesEnum',
131132
'VideoLanguageOriginEnum',
132133
'VideoCreationPayloadLanguageEnum',
134+
'VideoCreationPayloadTranscriptSummaryAttributesEnum',
133135
'VideoStatusIngestStatusEnum',
134136
'VideoUpdatePayloadLanguageEnum',
137+
'VideoUpdatePayloadTranscriptSummaryAttributesEnum',
135138
]);
136139

137140
const typeMap: { [index: string]: any } = {

0 commit comments

Comments
 (0)