-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb634b2
commit 5f1c809
Showing
30 changed files
with
1,109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
# SummariesApi | ||
|
||
All URIs are relative to *https://ws.api.video* | ||
|
||
| Method | Description | HTTP request | | ||
| ------------- | ------------- | ------------- | | ||
| [**create()**](SummariesApi.md#create) | Generate video summary | **POST** /summaries | | ||
| [**update()**](SummariesApi.md#update) | Update summary details | **PATCH** /summaries/{summaryId}/source | | ||
| [**delete()**](SummariesApi.md#delete) | Delete video summary | **DELETE** /summaries/{summaryId} | | ||
| [**list()**](SummariesApi.md#list) | List summaries | **GET** /summaries | | ||
| [**getSummarySource()**](SummariesApi.md#getSummarySource) | Get summary details | **GET** /summaries/{summaryId}/source | | ||
|
||
|
||
<a name="create"></a> | ||
## **`create()` - Generate video summary** | ||
|
||
|
||
Generate a title, abstract, and key takeaways for a video. | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **summaryCreationPayload** | [**SummaryCreationPayload**](../model/SummaryCreationPayload.md)| **yes**| | | ||
|
||
|
||
### Return type | ||
|
||
Promise<[**Summary**](../model/Summary.md)>. | ||
|
||
|
||
|
||
|
||
--- | ||
|
||
<a name="update"></a> | ||
## **`update()` - Update summary details** | ||
|
||
|
||
Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`. | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **summaryId** | **string**| **yes**| The unique identifier of the summary source you want to update. | | ||
| **summaryUpdatePayload** | [**SummaryUpdatePayload**](../model/SummaryUpdatePayload.md)| **yes**| | | ||
|
||
|
||
### Return type | ||
|
||
Promise<[**SummarySource**](../model/SummarySource.md)>. | ||
|
||
|
||
|
||
|
||
--- | ||
|
||
<a name="delete"></a> | ||
## **`delete()` - Delete video summary** | ||
|
||
|
||
Delete a summary tied to a video. | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **summaryId** | **string**| **yes**| The unique identifier of the summary you want to delete. | | ||
|
||
|
||
### Return type | ||
|
||
Promise<[**void**](../model/.md)>. | ||
|
||
|
||
|
||
|
||
--- | ||
|
||
<a name="list"></a> | ||
## **`list()` - List summaries** | ||
|
||
|
||
List all summarries for your videos in a project. | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **sortBy** | **string**| no| Allowed: createdAt. You can search by the time watermark were created at. | | ||
| **sortOrder** | **string**| no| Allowed: asc, desc. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to A. | | ||
| **currentPage** | **number**| no| Choose the number of search results to return per page. Minimum value: 1 | | ||
| **pageSize** | **number**| no| Results per page. Allowed values 1-100, default is 25. | | ||
|
||
|
||
### Return type | ||
|
||
Promise<[**SummariesListResponse**](../model/SummariesListResponse.md)>. | ||
|
||
|
||
|
||
|
||
--- | ||
|
||
<a name="getSummarySource"></a> | ||
## **`getSummarySource()` - Get summary details** | ||
|
||
|
||
Get all details for a summary. | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| **summaryId** | **string**| **yes**| The unique identifier of the summary source you want to retrieve. | | ||
|
||
|
||
### Return type | ||
|
||
Promise<[**SummarySource**](../model/SummarySource.md)>. | ||
|
||
|
||
|
||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# ConflictError | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **string** | A link to the error documentation. | [optional] | ||
**title** | **string** | A description of the error that occurred. | [optional] | ||
**name** | **string** | The name of the parameter that caused the error. | [optional] | ||
**status** | **number** | The HTTP status code. | [optional] | ||
**detail** | **string** | A solution for the error. | [optional] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# SummariesListResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**Array<Summary>**](Summary.md) | An array of summary objects. | | ||
**pagination** | [**Pagination**](Pagination.md) | | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
# Summary | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**summaryId** | **string** | The unique identifier of the summary object. | [optional] | ||
**createdAt** | **Date** | Returns the date and time when the summary was created in ATOM date-time format. | [optional] | ||
**updatedAt** | **Date** | Returns the date and time when the summary was last updated in ATOM date-time format. | [optional] | ||
**videoId** | **string** | The unique identifier of the video object. | [optional] | ||
**origin** | [**SummaryOriginEnum**](#SummaryOriginEnum) | Returns the origin of how the summary was created. - `api` means that no summary was generated automatically. You can add summary manually using the `PATCH /summaries/{summaryId}/source` endpoint operation. Until this happens, `sourceStatus` returns `missing`. - `auto` means that the API generated the summary automatically. | [optional] | ||
**sourceStatus** | [**SummarySourceStatusEnum**](#SummarySourceStatusEnum) | Returns the current status of summary generation. `missing`: the input for a summary is not present. `waiting` : the input video is being processed and a summary will be generated. `failed`: a technical issue prevented summary generation. `completed`: the summary is generated. `unprocessable`: the API rules the source video to be unsuitable for summary generation. An example for this is an input video that has no audio. | [optional] | ||
|
||
|
||
|
||
## Enum: SummaryOriginEnum | ||
|
||
Name | Value | ||
---- | ----- | ||
Api | 'api' | ||
Auto | 'auto' | ||
|
||
|
||
|
||
## Enum: SummarySourceStatusEnum | ||
|
||
Name | Value | ||
---- | ----- | ||
Missing | 'missing' | ||
Waiting | 'waiting' | ||
Failed | 'failed' | ||
Completed | 'completed' | ||
Unprocessable | 'unprocessable' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# SummaryCreationPayload | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**videoId** | **string** | Create a summary of a video using the video ID. | | ||
**origin** | [**SummaryCreationPayloadOriginEnum**](#SummaryCreationPayloadOriginEnum) | 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] | ||
|
||
|
||
|
||
## Enum: SummaryCreationPayloadOriginEnum | ||
|
||
Name | Value | ||
---- | ----- | ||
Auto | 'auto' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# SummarySource | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**title** | **string** | A video title, based on the contents of the video. | [optional] | ||
**_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] | ||
**takeaways** | **Array<string>** | A list of 3 key points from the video, in chronological order. | [optional] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# SummaryUpdatePayload | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**title** | **string** | A video title, based on the contents of the video. | [optional] | ||
**_abstract** | **string** | A short outline of the contents of the video. | [optional] | ||
**takeaways** | **Array<string>** | A list of 3 key points from the video, in chronological order. | [optional] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.