Skip to content

Commit ffda5ac

Browse files
Merge pull request #147 from apivideo/ai-summary-updates
Update Summary endpoints
2 parents ba6a3a2 + ffea0fe commit ffda5ac

17 files changed

+55
-43
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
589578120105165c9f58683fbe2fb917dabfaf9392187865f30956f8e4964d5a
1+
f2258a85e4233a4243aa1514697cbb72ab9568d8bc147a0ba046e979c1e7bcf9

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+
## [1.6.7] - 2024-11-06
5+
- AI summary updates
6+
47
## [1.6.6] - 2024-11-04
58
- Analytics updates (ccv, views, ...)
69

docs/SummariesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717
1818
Generate video summary
1919

20-
Generate a title, abstract, and key takeaways for a video.
20+
Generate an abstract and key takeaways for a video.
2121

2222
### Example
2323
```csharp
@@ -84,7 +84,7 @@ Name | Type | Description | Notes
8484
8585
Update summary details
8686

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

8989
### Example
9090
```csharp

docs/SummaryCreationPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**VideoId** | **string** | Create a summary of a video using the video ID. |
88
**Origin** | **string** | Use this parameter to define how the API generates the summary. The only allowed value is `auto`, 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, `sourceStatus` will return `missing`, and you have to manually add a summary using the `PATCH /summaries/{summaryId}/source` endpoint operation. | [optional]
9+
**Attributes** | **List<string>** | 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]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/SummarySource.md

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

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Title** | **string** | A video title, based on the contents of the video. | [optional]
87
**Abstract** | **string** | A short outline of the contents of the video. The length of an `abstract` 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]
98
**Takeaways** | **List<string>** | A list of 3 key points from the video, in chronological order. | [optional]
109

docs/SummaryUpdatePayload.md

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

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Title** | **string** | A video title, based on the contents of the video. | [optional]
87
**Abstract** | **string** | A short outline of the contents of the video. | [optional]
98
**Takeaways** | **List<string>** | A list of 3 key points from the video, in chronological order. | [optional]
109

docs/VideoCreationPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**Language** | **string** | 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. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](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]
1919
**Transcript** | **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` 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]
2020
**TranscriptSummary** | **bool** | Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` 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]
21+
**TranscriptSummaryAttributes** | **List<string>** | 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]
2122

2223
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2324

docs/VideoUpdatePayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**Language** | **string** | 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. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](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]
1616
**Transcript** | **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` 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]
1717
**TranscriptSummary** | **bool** | Use this parameter to enable summarization. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` 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]
18+
**TranscriptSummaryAttributes** | **List<string>** | 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]
1819

1920
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2021

src/Api/SummariesApi.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public SummariesApi(ApiClient apiClient)
4141
}
4242

4343
/// <summary>
44-
/// Generate video summary Generate a title, abstract, and key takeaways for a video.
44+
/// Generate video summary Generate an abstract and key takeaways for a video.
4545
/// </summary>
4646
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
4747
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation. (optional)</param>
@@ -56,7 +56,7 @@ public Task<Summary> createAsync(SummaryCreationPayload summaryCreationPayload,
5656
}
5757

5858
/// <summary>
59-
/// Generate video summary Generate a title, abstract, and key takeaways for a video.
59+
/// Generate video summary Generate an abstract and key takeaways for a video.
6060
/// </summary>
6161
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
6262
/// <param name="summaryCreationPayload"></param>
@@ -70,7 +70,7 @@ public Summary create(SummaryCreationPayload summaryCreationPayload)
7070

7171

7272
/// <summary>
73-
/// Generate video summary Generate a title, abstract, and key takeaways for a video.
73+
/// Generate video summary Generate an abstract and key takeaways for a video.
7474
/// </summary>
7575
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
7676
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation. (optional)</param>
@@ -85,7 +85,7 @@ public Task<ApiResponse<Summary>> createWithHttpInfoAsync(SummaryCreationPayload
8585
if (summaryCreationPayload != null && summaryCreationPayload.videoid == null) {
8686
throw new ApiException(400,"Missing required parameter 'summaryCreationPayload.VideoId' when calling SummariesApi->create");
8787
}
88-
88+
8989
// verify the required parameter 'summaryCreationPayload' is set
9090
if (summaryCreationPayload == null)
9191
throw new ApiException(400, "Missing required parameter 'summaryCreationPayload' when calling SummariesApi->create");
@@ -143,7 +143,7 @@ public Task<ApiResponse<Summary>> createWithHttpInfoAsync(SummaryCreationPayload
143143

144144

145145
/// <summary>
146-
/// Generate video summary Generate a title, abstract, and key takeaways for a video.
146+
/// Generate video summary Generate an abstract and key takeaways for a video.
147147
/// </summary>
148148
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
149149
/// <param name="summaryCreationPayload"></param>
@@ -157,7 +157,7 @@ public ApiResponse<Summary> createWithHttpInfo(SummaryCreationPayload summaryCre
157157
if (summaryCreationPayload != null && summaryCreationPayload.videoid == null) {
158158
throw new ApiException(400,"Missing required parameter 'summaryCreationPayload.VideoId' when calling SummariesApi->create");
159159
}
160-
160+
161161
// verify the required parameter 'summaryCreationPayload' is set
162162
if (summaryCreationPayload == null)
163163
throw new ApiException(400, "Missing required parameter 'summaryCreationPayload' when calling SummariesApi->create");
@@ -211,7 +211,7 @@ public ApiResponse<Summary> createWithHttpInfo(SummaryCreationPayload summaryCre
211211

212212

213213
/// <summary>
214-
/// Update summary details Update details for a summary. Note that this operation is only allowed for summary objects where &#x60;sourceStatus&#x60; is &#x60;missing&#x60;.
214+
/// Update summary details Update details for a summary.
215215
/// </summary>
216216
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
217217
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation. (optional)</param>
@@ -227,7 +227,7 @@ public Task<SummarySource> updateAsync(string summaryId, SummaryUpdatePayload su
227227
}
228228

229229
/// <summary>
230-
/// Update summary details Update details for a summary. Note that this operation is only allowed for summary objects where &#x60;sourceStatus&#x60; is &#x60;missing&#x60;.
230+
/// Update summary details Update details for a summary.
231231
/// </summary>
232232
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
233233
/// <param name="summaryId">The unique identifier of the summary source you want to update.</param>
@@ -242,7 +242,7 @@ public SummarySource update(string summaryId, SummaryUpdatePayload summaryUpdate
242242

243243

244244
/// <summary>
245-
/// Update summary details Update details for a summary. Note that this operation is only allowed for summary objects where &#x60;sourceStatus&#x60; is &#x60;missing&#x60;.
245+
/// Update summary details Update details for a summary.
246246
/// </summary>
247247
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
248248
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation. (optional)</param>
@@ -255,11 +255,11 @@ public Task<ApiResponse<SummarySource>> updateWithHttpInfoAsync(string summaryId
255255
if (summaryUpdatePayload == null)
256256
throw new ApiException(400,"Missing required parameter 'summaryUpdatePayload' when calling SummariesApi->update");
257257

258-
258+
259259
if (summaryUpdatePayload == null)
260260
throw new ApiException(400,"Missing required parameter 'summaryUpdatePayload' when calling SummariesApi->update");
261261

262-
262+
263263
// verify the required parameter 'summaryId' is set
264264
if (summaryId == null)
265265
throw new ApiException(400, "Missing required parameter 'summaryId' when calling SummariesApi->update");
@@ -321,7 +321,7 @@ public Task<ApiResponse<SummarySource>> updateWithHttpInfoAsync(string summaryId
321321

322322

323323
/// <summary>
324-
/// Update summary details Update details for a summary. Note that this operation is only allowed for summary objects where &#x60;sourceStatus&#x60; is &#x60;missing&#x60;.
324+
/// Update summary details Update details for a summary.
325325
/// </summary>
326326
/// <exception cref="ApiVideo.Client.ApiException">Thrown when fails to make API call</exception>
327327
/// <param name="summaryId">The unique identifier of the summary source you want to update.</param>
@@ -333,11 +333,11 @@ public ApiResponse<SummarySource> updateWithHttpInfo(string summaryId, SummaryUp
333333
if (summaryUpdatePayload == null)
334334
throw new ApiException(400,"Missing required parameter 'summaryUpdatePayload' when calling SummariesApi->update");
335335

336-
336+
337337
if (summaryUpdatePayload == null)
338338
throw new ApiException(400,"Missing required parameter 'summaryUpdatePayload' when calling SummariesApi->update");
339339

340-
340+
341341
// verify the required parameter 'summaryId' is set
342342
if (summaryId == null)
343343
throw new ApiException(400, "Missing required parameter 'summaryId' when calling SummariesApi->update");

src/Api/VideosApi.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Task<ApiResponse<Video>> createWithHttpInfoAsync(VideoCreationPayload vid
8585
if (videoCreationPayload != null && videoCreationPayload.title == null) {
8686
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
8787
}
88-
88+
8989
// verify the required parameter 'videoCreationPayload' is set
9090
if (videoCreationPayload == null)
9191
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");
@@ -157,7 +157,7 @@ public ApiResponse<Video> createWithHttpInfo(VideoCreationPayload videoCreationP
157157
if (videoCreationPayload != null && videoCreationPayload.title == null) {
158158
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
159159
}
160-
160+
161161
// verify the required parameter 'videoCreationPayload' is set
162162
if (videoCreationPayload == null)
163163
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");
@@ -1242,11 +1242,11 @@ public Task<ApiResponse<Video>> updateWithHttpInfoAsync(string videoId, VideoUpd
12421242
if (videoUpdatePayload == null)
12431243
throw new ApiException(400,"Missing required parameter 'videoUpdatePayload' when calling VideosApi->update");
12441244

1245-
1245+
12461246
if (videoUpdatePayload == null)
12471247
throw new ApiException(400,"Missing required parameter 'videoUpdatePayload' when calling VideosApi->update");
12481248

1249-
1249+
12501250
// verify the required parameter 'videoId' is set
12511251
if (videoId == null)
12521252
throw new ApiException(400, "Missing required parameter 'videoId' when calling VideosApi->update");
@@ -1326,11 +1326,11 @@ public ApiResponse<Video> updateWithHttpInfo(string videoId, VideoUpdatePayload
13261326
if (videoUpdatePayload == null)
13271327
throw new ApiException(400,"Missing required parameter 'videoUpdatePayload' when calling VideosApi->update");
13281328

1329-
1329+
13301330
if (videoUpdatePayload == null)
13311331
throw new ApiException(400,"Missing required parameter 'videoUpdatePayload' when calling VideosApi->update");
13321332

1333-
1333+
13341334
// verify the required parameter 'videoId' is set
13351335
if (videoId == null)
13361336
throw new ApiException(400, "Missing required parameter 'videoId' when calling VideosApi->update");

0 commit comments

Comments
 (0)